Is it possible to group these three commands into one?

yum install emacs
yum groupinstall "Virtualization"
yum localinstall /tmp/hello.rpm

I'd like to install a number of packages using all three methods above in a script but would like it to be a single operation so that the user only has to answer y one time.


Ok, I have worked around this by listing what packages are installed by the Virtualization Yum group with yum group info "Virtualization". Then, the localinstall subcommand has actually been deprecated and the regular install command works for installing local RPMs. Thus, I managed to specify all packages in a single yum install command.

| improve this answer | |
yum shell

is the generic way to do this. But "install" itself can install local files and/or groups (yum install @grp).

| improve this answer | |

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.