Operating System - Linux
1825950 Members
3054 Online
109690 Solutions
New Discussion

RPM command is not working (Segmentation fault)

 
josinjosek
Advisor

RPM command is not working (Segmentation fault)

In one of my linux box rpm command is not working.i am getting "Segmentation fault " error and i found inside /var/lib/rpm dir
__db.001 ,__db.002,__db.003 these files are missing can you please help me to resolve this issue.

#locate rpm | grep bin
/bin/rpm
/usr/bin/rpmgraph
/usr/bin/rpmbuild
/usr/bin/rpm2cpio
/usr/bin/rpmquery
/usr/bin/rpmdb
/usr/bin/rpmverify
/usr/bin/pamsharpmap
/usr/bin/rpmsign
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: RPM command is not working (Segmentation fault)

Try this first:

http://www.rpm.org/hintskinks/repairdb/

Have you updated any software package?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: RPM command is not working (Segmentation fault)

Shalom,

From the RTFM page. :-)

rpm {--initdb|--rebuilddb}


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
josinjosek
Advisor

Re: RPM command is not working (Segmentation fault)

Thanks for your replay.
Issue is resolved, we have copied the (__db.001 ,__db.002,__db.003 files ) from usr/lib/rpmdb/x86_64-redhat-linux/redhat to /var/lib/rpm and reloaded the rpm database. Now the rpm command is working fine. Thanks a lot..