lost commands

Boris Glawe public at boris-glawe.de
Thu Apr 22 22:27:07 UTC 2010


> Just out of curiosity, how would one do that without any of the
> package management tools available? Is it with a separate instance of
> rpm/yum that is on the rescue disc? But aren't packages like yum and
> rpm not relocatable?
>
> Thanks for any clarifications.
>
>    

Actually you don't even have to boot your rescue disc, if the OS ist 
still booting.

Just navigate to the directory in the installation disc, where the rpm 
(not the src.rpms!!) are and run  the command rpm directly:

rpm -i yum.xxxxx.rpm

If rpm complains about missing packages, it's very likely, that these 
packages are also on the disc. Rerun the command with

rpm -i yum-xxx.rpm whateverismissing-xxx.rpm

The command "rpm" ist installed in /bin, as it's a very basic sysadmin 
tool. It's very unlikely, that rpm depends on yum and thus was hopefully 
not uninstalled for depency reasons.

If you don't have the installation disc, but a fast internet connection, 
you can also specify the rpm files by a URL of a fedora mirror:

rpm -i http://some.mirror.fedora.org/pub/bla/blub/yum-xxx.rpm 
http://some.mirror.fedora.org/pub/bla/blub/whateverismissing-xxx.rpm

greets Boris


More information about the users mailing list