here or in a console window dpkg --get-selections > packages.txt to re-direct a list of the installed packages to the file packages.txt in the current directory.