Did something stupid!! help!!

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

 




> Wel I've done somthing stpid, and a I don't know how I can solve the
> problem again.
> I had som toubles with RPM, so me and my stupid head thought, why not
> reïnstall the package. So I removed the package, but didn't thought
> about the fact that I couldn't use the RPM-command anymore. 
> Is there any way, how I can get RPM back on the machine? So I can work
> with packages again. Somebody told me to use something like rpm2tgz or
> somthing like that. 
> If there is anyone who can help me with this stupid problem of me, that
> would be great!!! 
> 
You have a few options:
Grab the rpm package then extract it with:
  rpm2cpio | cpio -ivd 

This will create a directory hierarchy containing all the files. Just
move the binaries to the same place in the real /usr (or extract it at
the root filesystem if you're daring).

You can also boot with a rescue disk then reinstall with the --root
option. For example, if you mount your real disk under /mnt/sysimage,
you can do:

  rpm --root=/mnt/sysimage -iv rpm.xxxx.rpm 






[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux