Comment on Why don't most distros support listing packages and system settings in text file(s)?
programmer_belch@lemmy.dbzer0.com 2 weeks ago
If you only want a text file with installed packages, a simple
sudo apt list > packages.txt
Should work. Using this file, it is possible to reinstall all packages as
sudo apt install $(cat packages.txt)