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