Fat fingered the usr dir.

Barry Brimer lists at brimer.org
Mon Feb 19 22:27:19 UTC 2007


What about something like booting into rescue mode from a Disc 1 allowing 
it to mount your system (r/w) and set up access to install media, 
preferably with all current updates as well and then use
rpm --root /mnt/sysimage -Fvh --replacefiles

You might need --oldpackage as well, but I tend to think that it wouldn't 
be needed.  If that fails, you could do rpm --root /mnt/sysimage -qa and 
find those specific RPMs and then use
rpm --root /mnt/sysimage -Uvh --replacefiles <name of RPM>

Of course, the first thing you should do is backup what you do have to 
avoid losing what you have left.

Hope this helps.

Barry

On Mon, 19 Feb 2007, Jim Canfield wrote:

> Here's a fun one...
>
> I have a test machine (Centos 4) that I just rm -Rf'd the /usr/bin dir 
> (...long story).  What is the best approach to restoring it?
>
> Jim
>
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> !DSPAM:45da0951280346357513817!
>
>




More information about the redhat-list mailing list