List all installed packages

It is possible to list all installed packages by using the following command:

dpkg --get-selections

It is then theoretically possible to export a packages list

dpkg --get-selections > myPackets

And install these packages by importing this list

dpkg --set-selections < myPackets
apt-get dselect-upgrade

Source

Page top