On Jun 4, 2014, at 10:16 AM, Matthew Miller <mattdm(a)fedoraproject.org> wrote:
On Wed, Jun 04, 2014 at 04:45:16PM +0100, Gary Stainburn wrote:
> If you try to fedup and the fedup doesn't work (completed but kernel panic on
> boot) don't try to 'yum erase' the duplicate RPM's. I goes through
the
> uninstall process and removes all the GLIBC files and leaves you with a
> totally stuiffed server
Yes indeed. Instead, use `package-cleanup --cleandupes` (possibly with the
--noscripts flag if there are issues) from the yum-utils package.
I wonder if this will work booting a live cd, mounting the broken system parts [1], and
chrooting it, then running package-cleanup?
Chris Murphy
[1] grep mount /var/log/anaconda/anaconda.program.log will give an example of how to mount
the system the way the installer does it. For a btrfs system it looks like this:
14:45:00,060 INFO program: Running... mount -t btrfs -o subvol=root /dev/sda3
/mnt/sysimage
14:45:00,289 INFO program: Running... mount -t ext4 -o defaults /dev/sda2
/mnt/sysimage/boot
14:45:00,477 INFO program: Running... mount -t vfat -o umask=0077,shortname=winnt
/dev/sda1 /mnt/sysimage/boot/efi
14:45:00,700 INFO program: Running... mount -t bind -o bind,defaults /dev
/mnt/sysimage/dev
14:45:00,863 INFO program: Running... mount -t devpts -o gid=5,mode=620 devpts
/mnt/sysimage/dev/pts
14:45:01,039 INFO program: Running... mount -t tmpfs -o defaults tmpfs
/mnt/sysimage/dev/shm
14:45:01,218 INFO program: Running... mount -t btrfs -o subvol=home /dev/sda3
/mnt/sysimage/home
14:45:01,416 INFO program: Running... mount -t proc -o defaults proc /mnt/sysimage/proc
14:45:02,901 INFO program: Running... mount -t bind -o bind,defaults /run
/mnt/sysimage/run
14:45:03,072 INFO program: Running... mount -t sysfs -o defaults sysfs /mnt/sysimage/sys
14:45:03,241 INFO program: Running... mount -t selinuxfs -o defaults selinuxfs
/mnt/sysimage/sys/fs/selinux
14:45:03,429 INFO program: Running... mount -t btrfs -o subvol=var /dev/sda3
/mnt/sysimage/var