CentOS – find packages provided by repositories

CentOS, how-to

A quick note to myself… This is what I do when I need to find which packages are provided by a certain repository. First I update the list of the available packages:

# yum check-update

Then I do a listing of them (bold is mine):

# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.prometeus.net
* epel: fr2.rpmfind.net
* extras: mirrors.prometeus.net
* updates: mirrors.prometeus.net
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
repo id repo name status
base CentOS-5 - Base 3,612+29
epel Extra Packages for Enterprise Linux 5 - x86_64 7,241
extras CentOS-5 - Extras 266
updates CentOS-5 - Updates 95
repolist: 11,214

At this point, if I need to find what packages are provided by the EPEL repository and write that list on a file, I’ll simply digit:

# rpm -qa | grep epel > epel-list.txt
About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s