Fun with dnf

Chris Adams linux at cmadams.net
Wed May 27 18:35:00 UTC 2015


Once upon a time, David Cary Hart <dc.hart at slowlyboiledfrog.com> said:
> [dch at dch-reptile ~]$ dnf list available *google*
> Last metadata expiration check performed 1 day, 4:10:28 ago on Tue
> May 26 09:56:57 2015.
> Error: No matching Packages to list

What does "ls *google*" show?  Wildcards are expanded by the shell
before being passed as arguments to the command.  If you have a file in
your directory called google-foo for example, when you type "dnf list
available *google*", the shell expands that such that the command is run
as "dnf list available google-foo".  When there's no match (i.e.
*Google* wouldn't match a file called google-foo), the shell passes the
wildcards through.

Better to quote wildcards when you don't want the shell to expand them.
So, in your case, try:

   dnf list available "*google*"

-- 
Chris Adams <linux at cmadams.net>


More information about the users mailing list