1

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.

1

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.

1
yum shell

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

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.