How to tell yum to exclude updating a package

JD jd1008 at gmail.com
Thu Apr 14 17:27:33 UTC 2011


On 04/14/2011 08:50 AM, Robert Nichols wrote:
> On 04/14/2011 09:06 AM, Aaron Konstam wrote:
>> On Wed, 2011-04-13 at 20:02 -0700, JD wrote:
>>> I ran yum update as follows:
>>>
>>>
>>> # yum -y -x=libmad -x=libmad-devel -x=vcdimager -x=vcdimager-libs
>>> update
>>>
>>> but it still tried to update vcdimager, vcdimager-libs libmad and
>>> libmad-devel
>> To me the syntax od the yum -x option is unclear. Is -x=package-name the
>> right form . I am not sure.
> No, that's not right.  With the long form of the option, you can use either
> "--exclude=libmad" or "--exclude libmad", but "-x=libmad" is equivalent to
> a series of short flags "-x -= -l -i -b -m -a -d", and I'd rather not think
> about what that's going to do.
>
What's interesting is that yum did not complain about the command args 
syntax
at all. if -x=pkg is not correct, then yum should err out, but it does not.
Maybe yum maintainer will see this and do something about it :)



More information about the users mailing list