From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 Description of problem: When starting "rpm" after an update to the glibc packages, it would not run anymore, saying "Speicherzugriffsfehler" (german), which means "memory access error". Some functions of the rpm program work, however, for example "rpm -qa". But rpm install/update/erase won't run. The package updates (using RedHat Update Agent), probably causing the error, are - glibc-2.3.2-27.9 - glibc-common-2.3.2-27.9 - glibc-devel-2.3.2-4.80.6 The former installed versions were glibc-2.2.93-5 glibc-common-2.2.93-5 glibc-devel-2.2.93-5 Is there are way to reinstall the rpm package ? Or another repair alternative ? Version-Release number of selected component (if applicable): rpm-4.1-1.06 How reproducible: Always Steps to Reproduce: 1.type in at prompt: rpm [CR] 2. 3. Actual Results: the error message described above. Expected Results: listing of the rpm help text Additional info:
Sure you can reinstall rpm manually, as long as you have functional od/gzip/cpio. Assuming rpm packages downloaded into /var/tmp, do the following as root: mkdir -p /var/tmp/xxx cd /var/tmp/xxx for i in ../*.rpm; do /usr/lib/rpm/rpm2cpio.sh $i | cpio -dim done find . -type d -exec chmod 0755 {} \; tar cf - . | (cd /; tar xvf -) You might try /bin/rpm first, as the executable is statically linked in rpm-4.1.x (not true anymore, NPTL and TLS make static linking too expensive to distribute a statically linked binary, static link must be redone each and every time glibc changes.)
Oh yes, you might try rm -f /var/lib/rpm/__db* to remove stale locks.