Originally posted by DAChristen29
is there a way to save a list of the installed packages installed from the debian repos, and that way if i reinstall ubuntu i can just refer the apt-get program to the list or config file and it will go and redownload/install all those programs again?
im wondering because there's about a hundred different programs i keep forgetting to install and i want it all done at once.
alongside this im going to create a backup script that will backup my apt sources among other things.
Use dpkg --get-selections > selections.txt
to get the list of packages then once newly installed dpkg --set-selections < selections.txt
to set the selections back in the database now use dselect update
to get both apts and the dpkg/dselect databases in sync to install use apt-get dselect-upgrade