So you want to wipe your hard drive clean and reinstall a fresh Ubuntu copy. Before you do that, it might be wise to make a list of currently installed packages and reinstall them in a jiffy afterwards on the new OS:
sudo dpkg --get-selections > package_list.txt
Save the text file on a thumb drive, format the drive, reinstall Ubuntu, then to a
Tired of removing programs and apt-get autoclean or apt-get autoremove doesn't wipe them all out? dpkg --get-selections|grep deinstall will show all the list of remaining .debs. That could be a long list of files to remove individually, so here's a script I got help with to do that all at once.
So I'm new with ubuntu and so far I just love it :) I am now thinking how to perform full system backup, so that all my system settings, all my programs and packages and everything I've tweaked so far (desktop environment, window manager, etc.) is recoverable.
I could use deja dup or any other backup origram to backup the /home folder.
Sorry i found how to post in Ubuntu Forum :) , simple "new Thread" button, LOL !!!.
Anyway i can leave this question open here i think.
The following command create a list of installed packages on a machine, and then reinstall the same packages in another machine
it seems that the command work fine on Ubunt 32 Desktop , but on Ubuntu amd64 (Desktop) the
sudo apt-get dselect-upgrade
tell me t
I have long wished for the ability to install a Debian system specifying both the package list and the exact versions of the packages installed. dpkg --get-selections | ssh newhost dpkg --set-selections is useful but always chooses the latest version, and especially when using testing or unstable, it is sometimes necessary to temporarily downgrade a package from the latest version available.
I followed this procedure to restore a previously exported list of packages in a new system.
I have been using a virtual machine (Xubuntu 12.10, with VMWare on a windows host) for all my programming work, which I am trying to transition from a 32-bit install to a 64-bit install.
When I try to run sudo apt-get upgrade I get the error below.
I also get similar error when running sudo reconfigure postfix, which I relly need to run since outgoing e-mail is not working any more.
Crazy idea, but it might work for you, if you reinstall your WHOLE system permissions might get fixed, like this: Backing up and retrieving a list of installed packages
It is good practice to keep periodic backups of all pacman-installed packages.