kernel entries left over after YUM/GUI update

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

kernel entries left over after YUM/GUI update

Unread post by Kalimari »

When I run updates via YUM GUI, it is not uncommon for the script to timeout (as already mentioned on this forum). It seems that this is leaving older versions in the yum db on my system. If I run:

Code: Select all

rpm -q kernel
I see the following entries:

Code: Select all

kernel-2.6.9-42.EL
kernel-2.6.23.1-3.art
kernel-2.6.24.2-2.art
Would it be sensible to remove the old entries like this:

Code: Select all

rpm -e --justdb --nodeps kernel-2.6.9-42.EL
rpm -e --justdb --nodeps kernel-2.6.23.1-3.art
I have done the same with some duplicate asl, gradm & other entries in the past, but not sure if these is a reason to leave older versions of the kernel?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Are you sure those kernels are not actually installed? Yum by default leaves older kernel packages alone. You can remove them if you want (and if you're not running them at the moment) using yum remove kernel-<version> or rpm -e kernel-<version>.
Lemonbit Internet Dedicated Server Management
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

That's why I asked, I'm not sure. I have experienced some problems with older packages not being removed/updated correctly and this has led to problems that have been resolved by removing duplicate/older packages. I'll leave as is as everything is running smoothly... Thanks for the feedback :-)
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

If you want to verify wheter a package is installed correctly you can run rpm -V <packagename>. No output means: no mofications.
Lemonbit Internet Dedicated Server Management
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

I'm going to investigate that rpm command, some items had output others not... Thanks for the heads up!
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

See 'rpm -V — What Does it Do?' at http://www.rpm.org/max-rpm/ch-rpm-verify.html
Lemonbit Internet Dedicated Server Management
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

Thanks, that was the page I was just looking at... Seems everything is all right on my system, a few entries have output, but this is due to updates, Checksums or Modification Times... Thanks again, I had never looked that closely at the rpm commands.
Post Reply