14

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

yum install mysql php vsftp
1
  • 8
    I just tried your command, and it works ok. Why didn't you try it out?
    – tshepang
    Feb 18, 2011 at 14:28

2 Answers 2

16

Just use the exact command from your question. yum can take multiple package names as input:

yum install mysql php vsftp
4
  • 1
    would this work? yum install -y php mysql
    – whoami
    Feb 18, 2011 at 14:39
  • 1
    Yes it works like a charm on my laptop running Fedora 14.
    – Dharmit
    Feb 18, 2011 at 16:32
  • 5
    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 Feb 18, 2011 at 19:00
  • 1
    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, 2011 at 19:30
5

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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