[CentOS] Problem after crash during yum update
Akemi Yagi
amyagi at gmail.comThu Dec 20 18:32:46 UTC 2007
- Previous message: [CentOS] Problem after crash during yum update
- Next message: [CentOS] CentOS-announce Digest, Vol 34, Issue 12
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Dec 20, 2007 9:47 AM, Alfred von Campe <alfred at von-campe.com> wrote: > Akemi: > > > Follow this forum thread: > > > > http://www.centos.org/modules/newbb/viewtopic.php? > > topic_id=10139&forum=27&post_id=32373#forumpost32373 > > > > The command in there (note #6) may work for you as well. > > Excellent, thanks for the pointer. However, in my case I want to > clean out the older packages since already I successfully completed > the "yum update" to 4.6, right? So it's just a matter of changing > the "head" to "tail" on that command so it looks like this: > > for file in `rpm -qa --queryformat="%{NAME} %{ARCH}\n" | sort | > uniq -c | grep -v " 1 " | \ > cut -c 9- | cut -d" " -f1`; do rpm -q --last $file | tail -1 | > cut -d" " -f1; done | \ > grep -v kernel | grep -v gpg-pubkey | xargs rpm -e --justdb -- > nodeps > > Alfred Replacing the head with a tail should give you the "oldest" one, yes. Akemi
- Previous message: [CentOS] Problem after crash during yum update
- Next message: [CentOS] CentOS-announce Digest, Vol 34, Issue 12
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list