Create List of Installed Packages

      by Wyatt Walter

Getting a list of packages in Ubuntu is very easy. You’ll just need to run the following command:

sudo dpkg --get-selections > package_list

Obviously, you’ll need to run it as a user with permission to sudo. The command will list the selections from dpkg and place them into a text file called “package_list” in your current directory.

Additionally, you can install the list of packages on a different system using the opposite of the dpkg command and dselect:

dpkg --set-selections < package_list
dselect

Filed under How-Tos / Tips : Comments (0) : Aug 15th, 2008