On 07/12/2018 08:32 PM, Ed Greshko wrote: > On 07/13/18 11:16, Samuel Sieb wrote: >> # dnf provides xeyes >> xorg-x11-apps-7.7-20.fc28.x86_64 : X.Org X11 applications >> Repo : fedora >> Matched from: >> Provide : xeyes = 1.1.1 >> >> You want to know why "search" won't find it? This is why: >> >> # dnf info xorg-x11-apps >> Available Packages >> Name : xorg-x11-apps >> Version : 7.7 >> Release : 20.fc28 >> Arch : x86_64 >> Size : 330 k >> Source : xorg-x11-apps-7.7-20.fc28.src.rpm >> Repo : fedora >> Summary : X.Org X11 applications >> URL : https://www.x.org >> License : MIT >> Description : A collection of common X Window System applications. >> >> The package isn't about xeyes, so that "word" isn't anywhere in the provided >> info. >> However, for spyder: > > > IMO, an even better way to demonstrate what "search" does is to issue the > command.... > > dnf search "x window" > > I think this demonstrates *where* search looks for the keywords. It is more > than > just the package name but as the man page states... > > Search package metadata for the keywords. Keywords are matched > as > case-insensitive substrings, globbing is supported. By > *default* the > command will *only* look at package names and summaries, > failing > that (or whenever all was given as an argument) it will > match > against package *descriptions* and *URLs*. The result is > sorted from > the most relevant results to the least. > > It, as you've already pointed out, doesn't look for filenames contained > within the rpm.
Correct. That's what "provides" is for...searching the list of files provided by the RPM. And again, if using wildcards in the "provides" options, protect the wildcard from shell expansion by enclosing the wildcard expression in quotes: dnf provides "*xeyes*" ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ri...@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - "Men occasionally stumble over the truth, but most of them pick" - - themselves up and hurry off as if nothing had happened." - - -- Winston Churchill - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/I3ZINP6DNATJLAR7NKUUZJKC6X6FC5WN/