This is the second time on a version upgrade that I''ve been hit with the futex wait issue. Last time I hung with about 5 packages to go, this time it hung with about 50 packages on the clean up. Now I have loads of duplicate packages, any way to search and/or remove them without trying to do it manually?
Rodrigo Barbosa
2006-Mar-22 16:32 UTC
[CentOS] futex.. How to remove lots of duplicate packages
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Mar 22, 2006 at 08:12:04AM -0800, Dave wrote:> This is the second time on a version upgrade that I''ve been hit with > the futex wait issue. Last time I hung with about 5 packages to go, > this time it hung with about 50 packages on the clean up. Now I have > loads of duplicate packages, any way to search and/or remove them > without trying to do it manually?rpm -qa --qf "%{NAME}\n" | sort | uniq -d This should give us a list of duplicated packages. Unfortunately, you will have to check them yourself to make sure you remove the older version. Had to do that myself yesterday on a server of mine with messed up selinux contexts. I recomend analysing the scripts for each package, and then deciding if you will use "--noscripts" or not for removing. Things can get ugly pretty quick if you are not careful when removing duplicated packages. - -- Rodrigo Barbosa <rodrigob@suespammers.org> "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEIXwJpdyWzQ5b5ckRAiPrAJwMzu95r9tBCsvLCa72qmFY8Or2xwCgtKq9 TxT+uJ6wKeEsvo/4mHl2P0w=XfOc -----END PGP SIGNATURE-----
Joshua Baker-LePain
2006-Mar-22 16:38 UTC
[CentOS] futex.. How to remove lots of duplicate packages
On Wed, 22 Mar 2006 at 1:32pm, Rodrigo Barbosa wrote> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wed, Mar 22, 2006 at 08:12:04AM -0800, Dave wrote: >> This is the second time on a version upgrade that I''ve been hit with >> the futex wait issue. Last time I hung with about 5 packages to go, >> this time it hung with about 50 packages on the clean up. Now I have >> loads of duplicate packages, any way to search and/or remove them >> without trying to do it manually? > > rpm -qa --qf "%{NAME}\n" | sort | uniq -d > > This should give us a list of duplicated packages.Be careful with that -- it''ll give false positives on x86_64 (or any other dual arch system). Try: rpm -qa --qf "%{NAME}.%{arch}\n" | sort | uniq -d -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
On 3/22/06, Rodrigo Barbosa <rodrigob@suespammers.org> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wed, Mar 22, 2006 at 08:12:04AM -0800, Dave wrote: > > This is the second time on a version upgrade that I''ve been hit with > > the futex wait issue. Last time I hung with about 5 packages to go, > > this time it hung with about 50 packages on the clean up. Now I have > > loads of duplicate packages, any way to search and/or remove them > > without trying to do it manually? > > rpm -qa --qf "%{NAME}\n" | sort | uniq -dThanks, that makes it easier to find the dupes, unfortunately it looks worse then I first thought. rpm -qa --qf "%{NAME}\n" | sort | uniq -d | wc -l 124 Hmm, maybe a full reinstall might be less painful. I''ve been hit with this futex thing quite a few times over the past 5 or so years, twice on the upgrade for CentOS. The rest on Fedora and RH 9, etc. Anyone know why this hasn''t been fixed all this time? Is it not fixable? Anyway to insure this doesn''t happen again on an upgrade?
Adam Gibson
2006-Mar-22 19:05 UTC
[CentOS] futex.. How to remove lots of duplicate packages
Dave wrote:> This is the second time on a version upgrade that I''ve been hit with > the futex wait issue. Last time I hung with about 5 packages to go, > this time it hung with about 50 packages on the clean up. Now I have > loads of duplicate packages, any way to search and/or remove them > without trying to do it manually? > _______________________________________________ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centosI have had this happen a few times in the past too where yum failed after installing about 100 out of 125 packages. This causes the cleanup to not get done for the 100 that were installed. I tend to not use a yum update that would update all of the packages at once when I know a bunch of updates are pending like going from one release to another for that reason. I get a list of all updates and update them one by one so that if yum fails in the middle only the last update(and dependencies for that one update) would be affected. It would be nice if yum had an option to do this(perform cleanup after each package is installed). I created a script to do this(I called it safeyumupdate.sh) but I can''t seem to find it anymore.