After every fresh install, I used to download all the necessary packages that I had in the previous installation. This was definitely not easy, I could hardly remember half of them and it used to take a lot of time. But by using using dpkg we can do it in a few commands. Chk it out.
Before doing a fresh install, run this command to save a list of all package selections. This is a list of the packages that you had in your previous system.
[shredder12]$ sudo dpkg --get-selections > packages.list
Now, in the freshly installed system run this command to replicate all the packages that you had in ur previous installation.
[shredder12]$ sudo dpkg --set-selections < packages.list && sudo apt-get dselect-upgrade
2 Comments
This will only work if you are installing fresh... else it will remove any packages which are already installed but not in the backup list...
Post new comment