  | | | How to reinstall rpm - solved I think | How to reinstall rpm - solved I think 2003-12-04 - By Craig White
Back On Thu, 2003-12-04 at 01:46, Matthias Saou wrote: > Craig White wrote : > > > OK - I have no problem booting from rescue disk and chrooting to the > > hard drive root directory but the problem that I don't get ... > > > > how do you install rpm when you can't run rpm? > > > > which rpm > > > > nowhere in path... > > > > reinstall the rpm package? How? > > I guess you could try : > - Copying the "rpm2cpio" binary from another machine > - Copying the rpm package locally > - Running something like : > cd / > rpm2cpio /path/to/rpm-4 (See http://rpm-4.ora-code.com).*.rpm | cpio -dimv > > Then you could clean up what you just did (in case it's a different version > of rpm, mainly) : > rpm -e --justdb --nodeps rpm > rpm -Uvh /path/to/rpm-4 (See http://rpm-4.ora-code.com).*.rpm > > YMMV... > Matthias ---- Dude - you are the best...
rpm -ql rpm-4 (See http://rpm-4.ora-code.com).0.4-7x.18
scp -r root@(protected):/var/lib/rpm /var/lib/ scp root@(protected):/usr/bin/gendiff /usr/bin/ scp root@(protected):/usr/bin/rpm* /usr/bin/rpm* scp root@(protected):/usr/lib/librpm* /usr/lib/ scp -r root@(protected):/etc/rpm /etc/lib/ scp -r root@(protected):/usr/share/doc/rpm* /usr/share/doc/
Thanks,
Craig
|
|
 |