Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

yum install mysql php vsftp
share|improve this question
4  
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
add comment

2 Answers 2

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
2  
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
add comment

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
add comment

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.