I have recently used this very neat trick within the dpkg packet manager. Have you ever started a fresh install, and forgot which applications you had installed on your old installation? It's a pain. Even when you think you have them all installed, you go to do something, and realize Damn! I forgot to install that.
If you load up a blank terminal, and run the following command:
dpkg --get-selections > apps.txt
This will store a list of every application that is currently installed to a file called apps.txt. If you are wanting to re-install your OS, then make sure that you save this file to a USB stick!
Once you are ready to install all your applications again:
dpkg --set-selections < apps.txt
dselect update
apt-get dselect-upgrade show
Now after a lot of downloading and installing, you will once have all of your applications installed again. It may be an idea before you re-install your OS to back up the /etc/apt/sources.list file, so that you are able to download the applications that you may of got else where.
If you have any questions about this methord, then please leave a comment!
That is a brilliant tip! Thanks! I'll pass it round the office tomorrow (along with a link to your blog)
ReplyDeleteThanks! This is exactly what I was looking for.
ReplyDeletethanks!
ReplyDeleteFirstly, thank you for this tip and sorry about my English (I'm Brazilian).
ReplyDeleteThis method will create a list of programs installed at the momment of this command or a list of all programs that was installed (including programs that was installed and uninstalled after)?
Hi.. just want to say if you want exchange link, tell me.. Visit me at http://how-ubuntu.blogspot.com .. Nice see your blog :-)
ReplyDeleteWow thanks for your attention, I have also save your link in my blogroll, thank you very much. Regards from Indonesia.
ReplyDeletethank you for brillinat idea really, can we save all installed programs to memory stick instead of redownloading?
ReplyDeletei mean it's pain in the neck for users with low conncetion speeds,,
THANKS@! WORKED FOR ME
ReplyDelete@Jaffar
ReplyDeleteit wont save the actual files and apps, this will only save a list of what apps you had in your last OS and tell the add/delete manager what to download and install onto your system.
hi...nice tip mate but could u plz tel me where dis file called apps.txt get stored??
ReplyDeletethank you.
@vishnubk
ReplyDeleteThe file apps.txt will be saved in the directory that you currently are in. To check what directory you are in, you can use the command: pwd
*love*
ReplyDeleteI just chowned my whole /usr (stupid), and was directed here by a very helpful IRC user.
This is probably the most helpful hint I've ever seen. EVER. Thanks for this ^_^
Very nice! Thanks!
ReplyDeleteVery nice . We are in deal with LInux services and <a href="www.itechservices.in>Thin clients</a>
ReplyDelete