marinara
March 19th, 2012, 11:53 AM
Everyone knows that it's easy to install Lubuntu on a new PC.
Did you also know that it's easy to take a list of packages and install them automatically?
I based this post loosely on this. (http://www.cyberciti.biz/tips/linux-get-list-installed-software-reinstallation-restore.html)
open terminal (of course)
assuming you have a file named packages.txt that looks like this:
firefox
vim-gtk
guake
xchat-gnome
vlc
ispell
wordnet
rar
unrar
htoptext file needs to list exactly one package per line, and no extra lines!
now in the terminal, execute the following 4 lines individually: (note the parens)
sudo su
apt-get install dselect
while read line;do echo -en "$line install\n"; done <packages.txt|dpkg --set-selections
dselect (type i at the prompt)
And it starts!
what I did, was every time I installed a package, i added a line to a text file named 'packages.txt'
So, I'm not installing anything not listed in the packages.txt file
Enjoy!
another way here (http://users.telenet.be/mydotcom/howto/linux/automatic.htm)
Did you also know that it's easy to take a list of packages and install them automatically?
I based this post loosely on this. (http://www.cyberciti.biz/tips/linux-get-list-installed-software-reinstallation-restore.html)
open terminal (of course)
assuming you have a file named packages.txt that looks like this:
firefox
vim-gtk
guake
xchat-gnome
vlc
ispell
wordnet
rar
unrar
htoptext file needs to list exactly one package per line, and no extra lines!
now in the terminal, execute the following 4 lines individually: (note the parens)
sudo su
apt-get install dselect
while read line;do echo -en "$line install\n"; done <packages.txt|dpkg --set-selections
dselect (type i at the prompt)
And it starts!
what I did, was every time I installed a package, i added a line to a text file named 'packages.txt'
So, I'm not installing anything not listed in the packages.txt file
Enjoy!
another way here (http://users.telenet.be/mydotcom/howto/linux/automatic.htm)