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.

I want to install packages automatically by running a script

I can write yum install php, but I want it to install another package once installation of the php package is completed.

Is there any solution to make it automatic?

I have around 20 packages which are to be downloaded from remi repository.

share|improve this question
1  
Welcome to unix.se! In questions that require distribution-specific answers, please always include information about the distribution you are using. Judging from yum, I assume you are using Fedora. –  rozcietrzewiacz Aug 27 '12 at 10:15

1 Answer 1

You can give more than one package name per call:

yum install php httpd this that andtheother win8

(but your repository probably won't have win8 ;) )

share|improve this answer
    
but the issue would be , it will prompt for user input , I want it to install automatically . Is there any package management tool? –  meWantToLearn Aug 27 '12 at 6:46
    
You can add '-y' which will assume 'yes' as input to all prompts. –  akid Aug 27 '12 at 7:32

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.