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

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

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


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.