List installed packages in Ubuntu (Debian)

If you want to list all packages you have installed on your system using apt-get, it is quite easy. There are several reason you may need such a list. You may have to duplicate your system and software selection on other desktop, for example.

To get the list just run

dpkg --get-selections > current_software.txt

dpkg has all kinds of handy options available, and you can reverse this process and instruct dpkg to install packages according to list

dpkg --set-selections < current_software.txt
dselect

However, there is no guarantee that this works if the original list was made on other version. E.g if original list was made on Ubuntu Maverick and you try to use it on Ubuntu Natty, you may get unexpected results, since package names may differ, some packages may exist only in either of them etc.

Remember, this does NOT LIST any packages you have installed manually (e.g. compiled from sourcefiles, used some other installer etc.). For example, DB2 and Truecrypt have their own installer, and they will not be listed using the commands above.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

  • Enter your email address to follow this blog and receive notifications of new posts by email.

    Join 99 other followers

Follow

Get every new post delivered to your Inbox.

Join 99 other followers

%d bloggers like this: