[Rpm-maint] rpm version on fc8 removed my /usr/include and /usr/bin
Jim Galarowicz
jeg at krellinst.org
Fri Apr 25 16:41:10 UTC 2008
Hi Panu,
Your comment about yum on the rescue disk is valid.
It's not there. Bummer!
Jim G
Panu Matilainen wrote:
>
> On Fri, 25 Apr 2008, Jim Galarowicz wrote:
>
>> Hi Panu, all,
>>
>> Thanks much for this information!!
>>
>> I can only get access to my system via booting in fc8 rescue
>> install.
>
> That bad... ouch again :-/
>
>> The rescue mounts my system as /mnt/sysimage.
>> Then I do a chroot /mnt/sysimage. After that I can
>> use your very helpful command to get the damaged packages.
>>
>> But yum was one of the packages that was damaged and is gone
>> from the system.
>>
>> Is there a way to update my system while using the recovery
>> system yum/rpm?
>
> Oh, the rescue image has yum these days? (Been a while since I've last
> used one :) In that case, don't chroot to /mnt/sysimage but use
> --installroot=/mnt/sysimage option for yum, something like this should
> work:
>
> # yum --installroot=/mnt/sysimage reinstall $(cat
> /mnt/sysimage/tmp/damaged-pkgs.txt)
>
> Except... there's probably an extra roadblock: if memory serves,
> reinstall wasn't implemented in the initial F8 yum version, so there are
> some extra hoops to jump through. Try the following from the rescue
> image, without chrooting:
>
> # rpm -e --justdb --root /mnt/sysimage yum
> # yum --installroot=/mnt/sysimage install yum
>
> With a little bit of luck, you should be able to chroot to /mnt/sysimage
> and have a working, new yum there that can do reinstall as described
> earlier. Or at least a working yum in the chroot so you can update to a
> newer one that can finally do the reinstall.
>
> - Panu -
More information about the Rpm-maint
mailing list