How To Keep A List Of All The Installed Packages In Debian

It can be useful to have a list of installed packages in Debian when using it on multiple PCs or importing it after a fresh install.
There is a quick way to do this directly from the Terminal by using the following command :
dpkg –get-selections > installedpackages.txt
This will export the list of all installed packages and store it in a text file named installedpkgs.txt.
This...