How can I install all packages from given yum repo? Yum list contains a header and you cannot tell it to print only the first line.

  • You can install all update packages.
    – supriady
    Jan 15 '17 at 13:05

Thanks for providing a good answer. However, I find that this way is simpler and doesn't require yum-utils:

sudo yum --disablerepo=\* --enablerepo=my-cool-repo install \*

That being said, yum-utils is useful for other things.


Instead of yum, use repoquery from package yum-utils.

repoquery --disablerepo=* --enablerepo=my-cool-repo -a | xargs sudo yum -y install

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.