SCIENTIFIC-LINUX-USERS Archives

November 2005

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Mon, 14 Nov 2005 16:05:34 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Filianx wrote:
> Hi folks,
> 
> can anyone tell me the command to use for yum to upgrade but exclude the 
> kernel..and how to config yum.conf to  do the same?
> 
> many thanks in advance,
> 
> -- 
> Filianx

yum --exclude=kernel* update

And in /etc/yum.conf add the line
   exlude=kernel*
in the [main] section.
This is true for yum 2.0, 2.2, and 2.4.
If you want an example, you can check
/etc/yum.d/yum.cron.excludes
That is what get's put into the nightly yum.cron script.

Troy

ATOM RSS1 RSS2