Re: yum update

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

 



At 4:27 PM -0500 8/3/07, Aaron Konstam wrote:
>On Fri, 2007-08-03 at 14:43 -0400, Tony Nelson wrote:
>> At 11:31 AM -0700 8/3/07, Les 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?
>> >> 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?
>> >>
>> >> However, I always say: yum update --exclude=kernel\*
>> >>
>> >In most expansion cases, the backslash is the escape character, so your
>> >commands are the same, I think.
>>
>> No, the backslash is the escape character, so "kernel*" acts differently
>> than "kernel\*".  The former will be expanded by the shell if it can, and
>> left alone otherwise.  The latter will be left alone by the shell.  When
>> yum gets the command, if it finds a name with "*" in it, it will expand it
>> appropriately, in this case as the name of a package.  If the shell already
>> managed to expand the name, the resulting exclude won't match any package
>> and won't work.
>We have some confusion here.
>--exclude=kernel\* and --exclude="kernel*" are the same. Both keep the
>shell from expanding the *

"We" are not confused.  In English or even Computer prose, quoted text is
to be read verbatim, and I used it properly.  Had I meant '"kernel\*"' was
different from '"kernel*"', I would have said so.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux