Monday, February 27, 2012

RHEL 5 yum: Get repo package was installed from

If you need to get the source (repo) that a package was installed from:


1) yum -y install yum-utils 

2) sudo repoquery --repoid=<reponame> -a |xargs sudo yum list installed| egrep -i <packagename>


Also found:

Available:
yum --disablerepo=* --enablerepo=<repo_name> list | grep -v "installed" | grep <package_name>

Installed:
yum --disablerepo=* --enablerepo=<repo_name> list | grep "installed" | grep <package_name>

No comments:

Post a Comment