0
Thanks

A few words of thanks would be greatly appreciated.

Debian - Listing packages installed




Intro


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

Implementation


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.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
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 (ccm.net).

0 Comments