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)
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.
all 4 comments