[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to reinstall rpm - solved I think
- From: Craig White <craigwhite azapple com>
- To: valhalla-list redhat com
- Subject: Re: How to reinstall rpm - solved I think
- Date: 04 Dec 2003 08:29:18 -0700
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.*.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.*.rpm
>
> YMMV...
> Matthias
----
Dude - you are the best...
rpm -ql rpm-4.0.4-7x.18
scp -r root some_other_host_with_same_version:/var/lib/rpm /var/lib/
scp root some_other_host_with_same_version:/usr/bin/gendiff /usr/bin/
scp root some_other_host_with_same_version:/usr/bin/rpm* /usr/bin/rpm*
scp root some_other_host_with_same_version:/usr/lib/librpm* /usr/lib/
scp -r root some_other_host_with_same_version:/etc/rpm /etc/lib/
scp -r root some_other_host_with_same_version:/usr/share/doc/rpm*
/usr/share/doc/
Thanks,
Craig
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]