Re: shoehorning rpm onto a stripped system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Dusek wrote :

> i trashed my fedora 5 system in a spectacular way - i ran
> 
>    yum -y kernel-<version>. *
> 
> notice the extra space in between the version and the star - i now am
> completely without packages! i'm thinking the best thing to do is get
> rpm back on the system and then put yum on (python survived the whole
> mess, suprisingly).
> 
> when i simply copied the rpm binary from another fedora system to
> another, however, i run into a bunch of library dependency problems -
> some of the libraries got trashed in the process. after tracking them
> down by hand for awhile, i have thrown in the towel. i would like to
> compile a statically linked version of rpm. how do it do it? i don't
> know enough about the gnu autoconf family of tools to even hazard a
> guess.

Assuming you still have some basic things working (ssh and/or
rpm2cpio), the easiest might be to copy over the missing libraries from
another FC5 system until you get rpm and yum working again, or to go to
"/" and "brute force" extract binary packages there (using rpm2cpio)
until you get rpm working again, and can install them cleanly again.

The other option is to backup all of the important data
(/etc, /home, /var and possibly /usr/local, usually) and reinstall the
system. Might be quicker, and will definitely be cleaner! Remember to
keep your yum.log file so that you can easily extract the list of
packages that got removed so that you know what you need to reinstall.

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 5.90 (Test) - Linux kernel 2.6.17-1.2293_FC6
Load : 0.13 0.24 0.26

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux