[kwlug-disc] RedHat yum dependency handling

john at netdirect.ca john at netdirect.ca
Thu Feb 11 14:50:02 EST 2010


kwlug-disc-bounces at kwlug.org wrote on 02/11/2010 02:38:03 PM:
> 
> You mean:
> 
> yum --... install package?

Yup, good catch.
 
> I did this and got the following message for each:
> 
> No package PACKAGENAME available 

Here is one to try:

sqlite3 /var/cache/yum/rpmforge/primary.xml.gz.sqlite 'select pr.name, 
pa.name, pa.version, pa.release, pa.arch from provides pr left join 
packages pa on pr.pkgKey = pa.pkgKey where pr.name like "perl(RRDs)%";'

This does a query on the yum database that relates to the rpmforge repo. 
This will look for the packages that provide the "perl(RRDs)" function. 
Mine returned about a dozen various versions of the perl-rrdtool package.

Your rpmforge cached database may be corrupt. Check disk space on /var.

You can safely remove /var/cache/yum/rpmforge or rename if you like. Then 
rerun:

        yum --enablerepo=base,updates,rpmforge install munin

Yum will re-download the repo information.

Here are the perms on that structure on my system in case there is a 
permission problem:

ls -ld /var /var/cache /var/cache/yum /var/cache/yum/rpmforge 
/var/cache/yum/rpmforge/*
drwxr-xr-x 26 root root     4096 Dec 21 16:06 /var
drwxr-xr-x 13 root root     4096 Nov 30 12:26 /var/cache
drwxr-xr-x 13 root root     4096 Feb 11 14:45 /var/cache/yum
drwxr-xr-x  3 root root     4096 Feb 11 14:46 /var/cache/yum/rpmforge
-rw-r--r--  1 root root        0 Feb 11 14:45 
/var/cache/yum/rpmforge/cachecookie
-rw-r--r--  1 root root      824 Feb 11 14:45 
/var/cache/yum/rpmforge/mirrorlist.txt
drwxr-xr-x  2 root root     4096 Feb 11 14:45 
/var/cache/yum/rpmforge/packages
-rw-r--r--  1 root root  3814765 Feb  5 00:08 
/var/cache/yum/rpmforge/primary.xml.gz
-rw-r--r--  1 root root 29839360 Feb 11 14:46 
/var/cache/yum/rpmforge/primary.xml.gz.sqlite
-rw-r--r--  1 root root     1095 Feb  5 00:08 
/var/cache/yum/rpmforge/repomd.xml

John Van Ostrand
Net Direct Inc.
 
CTO, co-CEO
564 Weber St. N. Unit 12
map
 
Waterloo, ON N2L 5C6
 
john at netdirect.ca
Ph: 866-883-1172
ext.5102
Linux Solutions / IBM Hardware
Fx: 519-883-8533
 






More information about the kwlug-disc mailing list