please explain yum list to me...
Chris Tyler
chris at tylers.info
Sat Feb 14 14:50:41 UTC 2009
On Sat, 2009-02-14 at 06:51 -0700, Linuxguy123 wrote:
> Why is this ?
>
> $ yum list *synaptics*
It's a good idea to quote any arguments with wildcards in them, e.g.:
yum list "*synaptics*"
Otherwise, if you have a local file (or files) containing "synaptics" in
the name, the shell will substitute the name(s) into the command before
executing it, and you won't get what you want.
For example:
$ touch synaptics
$ yum list *synaptics*
Loaded plugins: fastestmirror
Installed Packages
synaptics.x86_64 0.14.6-3.fc8 installed
Bash globbed the name *synaptics* and replaced it with the filename
"synaptics". Quoting the argument gives the desired result:
$ yum list "*synaptics*"
Loaded plugins: fastestmirror
Installed Packages
synaptics.x86_64 0.14.6-3.fc8 installed
Available Packages
gsynaptics.x86_64 0.9.14-2.fc8 updates-newkey
ksynaptics.x86_64 0.3.3-5.fc8 updates-newkey
libsynaptics.i386 0.14.6c-2.fc8 fedora
libsynaptics.x86_64 0.14.6c-2.fc8 fedora
libsynaptics-devel.i386 0.14.6c-2.fc8 fedora
libsynaptics-devel.x86_64 0.14.6c-2.fc8 fedora
xfce4-gsynaptics-mcs-plugin.x86_64 1.0.0-1.fc8 updates-newkey
-Chris
More information about the fedora-list
mailing list