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

Is there a way to install 2 or more packages using one yum command

yum install mysql php vsftp
share|improve this question
I just tried your command, and it works ok. Why didn't you try it out? – Tshepang Feb 18 '11 at 14:28
I'm taking over from my college to finish our ks file, and he mentioned that he couldnt get it to work, so i presumed that he tried that. :( – whoami Feb 18 '11 at 14:41
up vote 0 down vote accepted

Check this out.

share|improve this answer
would this work? yum install -y php mysql – whoami Feb 18 '11 at 14:39
Yes it works like a charm on my laptop running Fedora 14. – Dharmit Feb 18 '11 at 16:32
It helps if you summarize the link, so the user doesn't have to click through and they're not screwed if the link breaks – Michael Mrozek Feb 18 '11 at 19:00
It just says "Yum accepts multiple arguments, so just specify all of them on the command line" in various ways. I don't think that having a link to some random forum posts that say that actually is useful. – mattdm Feb 18 '11 at 19:30

Yes, I do it all the time. Any yum command will work with multiple packages specified, just take a look at the man page.

share|improve this answer

Your Answer


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.