[kwlug-disc] RedHat yum dependency handling

Khalid Baheyeldin kb at 2bits.com
Thu Feb 11 16:24:01 EST 2010


> 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.
>

# 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)%";'
perl(RRDs)|perl-rrdtool|1.3.7|1.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.3.8|1.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.2.18|1.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.2.30|1.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.2.29|1.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.2.23|1.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.0.50|3.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.2.28|2.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.3.8|2.el5.rf|x86_64
perl(RRDs)|perl-rrdtool|1.2.28|1.el5.rf|x86_64



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

1.7TB free. So not an issue.


> 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.
>

I tried this, and it made no difference. Same dependency errors.


> 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
>

Does any of the above apply when sqlite was able to query the file?

And finally, thank you so much for your help and for your patience.
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20100211/c77d2e0f/attachment.htm>


More information about the kwlug-disc mailing list