On Tue, 2010-01-12 at 09:11 -0800, Bill Watson wrote:

> #On 01/11/10 18:50, Bill Watson wrote:
> #> /Regarding what files can be safely removed as the opsys gets updated,
> #> if I am running 2.6.18-128.1.16.el5PAE, can I whack /lib/modules/(not my
> #> release/*)? How about /usr/src/kernels/(not my release/*)?/
> #
> #I would use 'rpm --erase' to cleanly remove old versions of packages, 
> #rather than trying to hack through the old files one by one.
> 
> So if I have:
> [r...@helmethouse ~]# rpm -q -a|grep kernel
> kernel-PAE-2.6.18-128.1.16.el5
> kernel-PAE-2.6.18-92.1.18.el5
> kernel-PAE-devel-2.6.18-128.1.16.el5
> kernel-PAE-devel-2.6.18-128.1.6.el5
> kernel-headers-2.6.18-128.1.16.el5
> kernel-PAE-devel-2.6.18-92.1.18.el5
> kernel-PAE-2.6.18-128.1.6.el5
> 
> I can 'rpm --erase kernel-PAE-devel-2.6.18-92.1.18.el5' and the same for the
> other -92.1.18 and both the 128.1.6's as well and this is safe? And I have
> properly guessed the syntax?


Bill,

That will work. A more compact form is to use yum rather than rpm, and
the * character to remove multiple files in one command line:

        # yum erase kernel*92.1.18.el5 kernel*128.1.6.el5

I'd also suggest using yum to install the up-to-date versions of
kernel-headers and kernel-PAE-devel:

        # yum install kernel-headers kernel-PAE-devel

Using yum rather than rpm is usually easier because yum handles
dependencies automatically.

--Doc Savage
  Fairview Heights, IL
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to