How to install several packages in Ubuntu

When you want to install a list of packages in Ubuntu, you can declare the list in a text file list.txt, in column format, for example :

gnomad2
build-essential
thunderbird

And then, you open a terminal and type command :
sudo apt-get install $(cat list.txt)

All packages in the file are installed with only one command !

Publié dans GNU/Linux. Étiquettes : , . Leave a Comment »