As the title is pretty clear (I hope so :) ), I'm looking for an easy way to install many softwares through apt-get command, I have created a shell script where I put all software I need but it's not very clean to do that I assume. The cleanest way is to tell apt-get to read into a file like the command pip.

Thanks in advance

有帮助吗?

解决方案

Put the list of packages in a text file(say test.txt) with package names separated by spaces, like this -

python ruby foo bar

then you can just install with apt-get like this -

sudo apt-get install $(cat test.txt)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top