Skip to content

Easy way to install all pkgs you want on an ubuntu system

This is a cool process to go through if you are testing ubuntu on a system and have to re-install a bunch of times. Found it at

dpkg –get-selections | grep -v deinstall > ubuntu-files

So now you’ve got this list and all is well, until you’re Ubuntu install either dies or has to be reinstalled for some reason. Go ahead and do the base install.Once you’ve got Ubuntu back up and running, copy your ubuntu-files back into your home directory and do the following:

sudo apt-get update

sudo apt-get upgrade

dpkg –set-selections < ubuntu-files

Now you’ve told your system what it needs to install, so let’s install it all.

sudo dselect

This will open up a dselect session. Type ‘I‘ and allow dselect to install of the the packages listed in your ubuntu-files document. When it’s finished, type ‘Q‘ and hit the ENTER key to exit dselect.

Posted in Linux.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.