yum update

inode0 inode0 at gmail.com
Fri Aug 3 20:51:43 UTC 2007


On 8/3/07, Aaron Konstam <akonstam at sbcglobal.net> wrote:
> On Fri, 2007-08-03 at 15:41 +0100, Timothy Murphy wrote:
> > Aaron Konstam wrote:
> >
> > >> Use the --exclude=[package] option like
> > >> # yum update --exclude=kernel*
> >
> > > The above will not work since the * will be expanded by the shell not
> > > yum.
> >
> > Are you sure?
>
> Yes I am sure. It is like:
> find ./ -name "foo*"
> the quotes are needed if you want to find all files that start with foo
> This is explained in man find

I suggest you try

yum list kernel*
yum list "kernel*"

and I think you'll see the same behavior provided there aren't any
files in the cwd prefixed with kernel.

> > My impression is that it is only expanded if you happen to have
> > a file called kernel* in the current directory.
> > If it doesn't find anything yum does expand the argument, I think?
> No that is not how it works.
> >
> > However, I always say: yum update --exclude=kernel\*

That seems reasonable to me.

John




More information about the fedora-list mailing list