Apt-Clone To Backup Installed Packages And Restore On Linux
Linux

Apt-Clone To Backup Installed Packages And Restore On Linux

Insight: Apt-Clone To Backup Installed Packages And Restore Them On Linux

It’s always boring to install same package again and again in fresh system. We have solution for this or in fact Linux has solution for this and the solution is apt-clone command. Apt-clone can help you to backup the installed package and restore it in freshly installed system.¬† It even let you to install same set of packages on multiple systems. It can easily backup the entire installed application and restore it on Linux.

Apt-Clone To Backup Installed Packages And Restore Them On Linux

Install the Apt-clone using the following command in your terminal:

$ sudo apt install apt-clone

After installing, Now you need to create a folder where you need to save the list of installed packages. Run the following command.

$ mkdir ~/mypackages

Now, Run the following command to save the list of installed packages.

$ sudo apt-clone clone ~/mypackages

After executing the above command, It will saved all installed packages in Ubuntu  in a file named apt-clone-state-ubuntuname.tar.gz under ~/mypackages directory.

Now, You need to tranfer this file to another system where you want to trasnfer the same packages.

Run the following command:

$ sudo apt-clone restore apt-clone-state-ubuntuname.tar.gz

Most important thing that you need to consider while performing this action is that This command will overwrite your existing /etc/apt/sources.list and will install/remove packages. Another important thing is that destination system must be running the same OS as the source one.

Let us know if there is any error in this article.

READ THIS ALSO  10+ Linux System Monitoring Tools Every SysAdmin Should Know

 



Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!