In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to back up the installed packages and restore them on the newly installed Ubuntu, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Installing the same set of packages on multiple Ubuntu systems is a time-consuming and tedious task. You don't want to take the time to install the same package repeatedly on multiple systems. When installing software packages on Ubuntu systems of similar architecture, there are many ways to make this task easier. You can easily migrate applications, settings, and data from previous Ubuntu systems to newly installed systems through Aptik and a few mouse clicks. Alternatively, you can use a package manager (such as APT) to get a complete list of installed packages that have been backed up and install them on a newly installed system. Today, I learned that there is another special tool that can do this job. Take a look at apt-clone, a simple tool that allows you to create a list of installed packages for your Debian/Ubuntu system that can be recovered on a newly installed system or container or directory.
Apt-clone will help you deal with the situation you want.
Install consistent applications on multiple systems running similar Ubuntu (and derivative versions).
The same software package is often installed on multiple systems.
Back up the complete list of installed applications and restore them whenever and wherever you need them.
In this brief guide, we will discuss how to install and use apt-clone on Debian-based systems. I tested this program on Ubuntu 18.04 LTS, but it should work for all Debian-and Ubuntu-based systems.
Back up the installed packages and restore them on the newly installed Ubuntu
Apt-clone is available in the default warehouse. To install it, simply enter the following command on the terminal:
$sudo apt install apt-clone
After installation, simply create a list of installed packages and save them in any location of your choice.
$mkdir ~ / mypackages$ sudo apt-clone clone ~ / mypackages
The above command saves all installed packages in my Ubuntu in a file named apt-clone-state-ubuntuserver.tar.gz in the ~ / mypackages directory.
To view the details of the backup file, run:
$apt-clone info mypackages/apt-clone-state-ubuntuserver.tar.gzHostname: ubuntuserverArch: amd64Distro: bionicMeta:Installed: 516 pkgs (33 automatic) Date: Sat Sep 15 10:23:05 2018
As you can see, my Ubuntu server has a total of 516 packages.
Now, copy this file to USB or an external drive and go to any other system on which you want to install the same package. Alternatively, you can transfer the backup files to a system on the network and install the package using the following command:
$sudo apt-clone restore apt-clone-state-ubuntuserver.tar.gz
Please note that this command will overwrite your existing / etc/apt/sources.list and will install / remove the package. I warned you! In addition, just make sure that the target system is the same CPU architecture and operating system. For example, if the source system is 18.04 LTS 64-bit, then the target system must also be the same.
If you don't want to restore the package on your system, you can use the-- destination / some/location option to copy the clone to this folder.
$sudo apt-clone restore apt-clone-state-ubuntuserver.tar.gz-- destination ~ / oldubuntu
In this example, the above command restores the package to ~ / oldubuntu.
For more information, see the help section:
$apt-clone-h
Or the man page:
Man apt-clone Thank you for reading this article carefully. I hope the article "how to back up installed packages and restore them on a newly installed Ubuntu" shared by the editor will be helpful to you. At the same time, I hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.