Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm sure I've seen instructions on how do do this unfortunately it was a few months ago and have forgotten them.

Thanks in advance to anyone who answers.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

sudo apt-get install $(cat files_to_install.txt) will work.

share|improve this answer
    
I would suggest $(< files_to_install.txt) –  enzotib Oct 18 '11 at 15:38
    
@enzotib Out of curiosity, why is that better? –  WarriorIng64 Oct 19 '11 at 4:47
1  
@WarriorIng64: it is all done with bash, without using external process. It snould be a little bit more efficient –  enzotib Oct 19 '11 at 5:41

Assuming you are using Synaptic Package Manager, in your text file, you structure it in the following format:

where package name e.g. gimp would be a space or tabs can be install, remove, purge

And obviously put each package on a new line. No need to include dependencies.

Then in Synaptic, go to File > Read Markings and point it to your file. What this does is mark all the changes to be made and then you can proceed as usual. I have not tried @Jo-erlend's method but it definitely sounds simpler

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.