-   Linux - Newbie (
-   -   can't login after "accidentally overzealous" cleanup... (

mifune 06-09-2011 10:14 AM

can't login after "accidentally overzealous" cleanup...

I'm new here, hope to not be obnoxious... I've been using linux systems for a long time (work in science), but have only minimal experience as administrator. And today, following insomnia, I found myself typing (as root):


yum remove `package-cleanup --leaves`
I am not usually quite so stupid... (I had intended to upgrade from fedora 12 to 15) But now I can't login at all (either as the normal user or root), though the machine seems to boot properly. Currently I'm using a live distro on a usb key. Can this be undone? Can anyone help please please please?

flamelord 06-09-2011 11:04 AM

I don't have a lot of experience with RPM based distro's but I have used the following method on both Ubuntu and Arch Linux to fix missing packages:


#mount the filesystem, I will assume it is on /mnt

mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc # or maybe mount -t proc none /mnt/proc
chroot /mnt /bin/bash

#then install the missing packages

Of course this requires knowing which packages were uninstalled that you needed, and I don't know how you can figure that out.

All times are GMT -5. The time now is 10:18 AM.