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)
Shit, just linux.
Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts
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)
Traditional distros were born in the 'single physical server' era, prioritizing flexibility over reproducibility; NixOS emerged in the 'cloud-native' era with 'system-as-code' at its core.
If you just want to have the list of packages saved in a text file and use that file for apt/dnf/... you could just
sudo dnf install $(< list.txt)
In Slackware, just do an "ls /var/log/packages/*" and your are done.