[Dclug] [Novalug] A linux question--rpm/yum info--more data
James Ewing Cottrell 3rd
JECottrell3 at Comcast.NET
Wed Sep 16 15:55:14 EDT 2009
I have found that "rm -rf /var/cache/yum/*" works nicer than trusting
yum to clean things up.
As for your libstdc++ dilemma, perhaps the thing to do is rpm -e the
package followed by a reinstall. And perhaps the '--justdb' option might
be useful if you really need those libraries to be there.
JIM
Megan Larko wrote:
> greg pryzby wrote:
>> rpm --rebuilddb (MIGHT BE ENOUGH)
>>
>> Without knowing how messed up, check out this link.
>> http://www.informatimago.com/linux/rpm-rebuilddb.html
>>
>> also, look at the repo files in /etc/yum.repos.d/* at the settings to
>> make sure they are what you expect/want.
>
> The rpm -qa >> some.file.name has a correct listing of files. So the database exists.
> Next oddity. After running the "rpm -qa" command I did another check using rpm -q:
>
> [root at crew rpm.downloads]# rpm -q libstdc++
> libstdc++-4.1.2-44.el5
> libstdc++-4.1.2-44.el5
>
> the above returns correctly while ....
>
> [root at crew rpm.downloads]# rpm -q compat-libstdc++
> package compat-libstdc++ is not installed
>
> still returns an incorrect ('not installed' response). The compat-libstdc++ package provides the
> /usr/lib/libstdc++.so.5 (i686) and /usr/lib64/libstdc++.so.5 (x86_64) files for the i686 and x86_64
> packages respectively. The libstdc++.so.5 files were both created after the rpm -ivh command.
> They don't "rpm -q" but they *do* "rpm -qa".
>
> Cue "Twilight Zone" music here.
>
> megan
>>
>> On 09/15/2009 12:34 PM, Megan Larko wrote:
>>> Hi List,
>>>
>>> A linux question. I was upgrading my yum sources in
>>> /etc/yum.repos.d/ yesterday to use a new
>>> CentOS 5.3 source. I did run the commands:
>>> >>yum clean all
>>> >>yum --disablerepo=* --enablerepo=base --enablerepo=updates update
>>> yum* rpm*
>>>
>>> I think I may have messed up my package db. I install an rpm and the
>>> system does not think the
>>> package is installed and does think the package is installed depending
>>> upon the command invoked.
>>>
>>> package compat-libstdc++-33-3.2.3-61.x86_64.rpm is not installed
>>> [root at crew rpm.downloads]# rpm -ivh
>>> compat-libstdc++-33-3.2.3-61.x86_64.rpm
>>> Preparing...
>>> ########################################### [100%]
>>> package compat-libstdc++-33-3.2.3-61.x86_64 is already installed
>>>
>>> Is there a way in which I can restore sanity to my package management
>>> system?
>>>
>>> TIA,
>>> megan
>>
>>
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.409 / Virus Database: 270.13.100/2373 - Release Date: 09/15/09 13:37:00
>
More information about the Dclug
mailing list