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.
--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.