[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to disable yum update for some packages?



akonstam trinity edu wrote:
On Fri, Mar 03, 2006 at 10:10:30AM +1100, Yuandan Zhang wrote:

On 3/3/06, Daniel Silva <danielnsilva gmail com> wrote:

Hi,

In last update i had some problems with new versions of some
libraries. So i need to disable yum update for some packages? Is this
possible?


in your yum  configuration file, ie /etc/yum.conf or yum.repos.d/fedora-
updates.repo
add
exclude=packagename


/daniel

It seems to be that it is more flexible to run:
yum --exclude="packagename" update
and the in this form can contain * characters.  So you can exclude all
rpms whose name starts with kernel by using :
--exclude="kernel*"

The "--exclude" command-line option is exactly the same as the "exclude" configuration file option. Both support wildcards. So you'd use the command-line option for one-off exclusions, and the configuration file option if you always wanted to exclude certain packages.

Paul.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]