On 8/3/07, Aaron Konstam <akonstam@xxxxxxxxxxxxx> 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 -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list