Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
automatically installing packages

I have two virtual machines, and I want to install packages atomically from repository . Is there any specific package management software, that install packages automatically,

Lets says that I have a fresh linux, and i want to install php 5.3 , mysql , memcached , and I want them to be installed automatically by running a code or software. Is there any tool?

share|improve this question

marked as duplicate by bahamat, cjm, jasonwryan, rozcietrzewiacz, Renan Aug 27 '12 at 15:45

This question was marked as an exact duplicate of an existing question.

There are many packages managers for linux.. What do you mean fresh linux? linux from scratch? If not than you probably already have installed package manager like Synaptic, Ubuntu software center, ...

share|improve this answer
Fresh linux, I mean a new linux machine. And I have to install 20packages, Normally I type in yum install php etc but I want a tool that I run it, and it automatically installs the packages which I list it in file or through console – meWantToLearn Aug 27 '12 at 6:56
You mean a single command like yum install php5.3 mysql memcached? – bahamat Aug 27 '12 at 7:14
If you want yum to install packages which names are listed in a file or read from STDIN you can use xargs. If the packages are listed in a file the command looks like cat file_with_package-names | xargs yum or if you want to read the package names from STDIN which is very error-prone you must invoke cat | xargs yum – user1146332 Aug 27 '12 at 9:47

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