Re: Quick (I hope!) dnf question. [CLOSED]

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

 



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    ricks@xxxxxxxxxxxxxx -
- 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx/message/I3ZINP6DNATJLAR7NKUUZJKC6X6FC5WN/



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux