Packages, listing installed

From Ubuntuwiki.net

Jump to: navigation, search

If you want to see a list of all packages installed on a system, the following command will do the trick:

me@box1:~$ sudo dpkg --get-selections

You can also use that list to recreate the same setup on another machine:

me@box1:~$ sudo dpkg --get-selections > installed-software.txt
me@box1:~$ scp installed-software.txt me@box2:~/
me@box1:~$ ssh me@box2
me@box2:~$ dpkg --set-selections < installed-software.txt
me@box2:~$ dselect
Personal tools