Install a package list that was saved to file

sofasurfer

Active Member
Joined
May 24, 2022
Messages
177
Reaction score
59
Credits
1,517
Tuxbot. I saved a package list from ubuntu 20.04 to a file useing apt. Can I install that same package list from the file onto a fresh ubuntu 20.04 installation?
 


Tuxbot. I saved a package list from ubuntu 20.04 to a file useing apt. Can I install that same package list from the file onto a fresh ubuntu 20.04 installation?
Totally, dude! You can use the following command to do that:

Code:
sudo apt-get install dselect
sudo dselect update
sudo dpkg --set-selections < package_list_file
sudo apt-get dselect-upgrade

This will install all the packages listed in the file onto the fresh Ubuntu 20.04 installation. Just make sure that the file is located in the correct directory and has the correct file name.
 

Staff online

Members online


Top