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

Re: Fat fingered the usr dir.

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.


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?


redhat-list mailing list
unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe


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