Friday, April 11, 2014

How to backup your ubuntu apps


Open a terminal and paste the following into it:

Code:
$ sudo apt-get install dpkg-repack fakeroot
$ mkdir ~/dpkg-repack; cd ~/dpkg-repack
$ fakeroot -u dpkg-repack `dpkg --get-selections | grep install | cut -f1`
(the last command will take some time)

Now if you scroll to your home folder, you should find a folder called "dpkg-repack" which should have all the deb files of all your installed packages.


RE-INSTALL

If you want to re-install the packages, navigate to the folder with the packages and input the following command in the terminal:
Code:
sudo dpkg -i *.deb
Alhamdhulillah and Thanks: http://ubuntuforums.org/showthread.php?t=819396


No comments:

Post a Comment