Debian - Listing packages installed

April 2018


You can list all the packages installed using the command:
dpkg --get-selections


With this tool it is possible to export the list of installed packages, proceed as follows:
    • dpkg - get-selections> my_packages
  • Then installing them on another machine with the following command:
  • Recovering the previous list:
    • dpkg --set-selections < my_packages
  • Installing the list:
    • apt-get dselect-upgrade

The dpkg-l command returns a list of installed packages with more information. However you can't use it to install a list of packages.
Published by jak58. Latest update on March 2, 2010 at 06:37 AM by deri58.
This document, titled "Debian - Listing packages installed," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Fix Apt-get : NO_PUBKEY / GPG Error in Debian
Debian - Check if Java is installed