Yum/dnf Search Functionality

Stephen Morris samorris at netspace.net.au
Thu Jun 26 22:05:00 UTC 2014


On 06/27/2014 08:01 AM, Stephen Morris wrote:
> On 06/27/2014 12:35 AM, Tim wrote:
>> Allegedly, on or about 26 June 2014, Stephen Morris sent:
>>> neither yum nor dnf, both of which give the same results,
>>> didn't suggest to try a further search, but I would have thought that
>>> as a minimum they would have searched installed packages first. It is
>>> completely illogical to me for a product to do a search for specified
>>> functionality and not tell you that functionality is provided by
>>> something you already have installed.
>> For what it's worth, it searches the yum database for matches. The yum
>> database contains information on all packages, installed, or not.  If
>> the database hasn't been recently cached (the definition of recent can
>> be configured by you), then it will update the cache, first.
>>
>> I'm currently booted up on an older installation, but when I did "yum
>> search music" it returned a list of applications that have some *music*
>> keyword in some of their metadata.  And, the last line of the results
>> said:
>>
>>   Name and summary matches only, use "search all" for everything.
>>
>> And the results included things I have installed, those these results
>> don't indicate whether its results are uninstalled, or installed.  If
>> you did a subsequent yum info packagename, on anything that caught your
>> interest, that would show whether it was installed (in this example, the
>> "repo" line either shows where you can get it from, or that it's
>> installed).
>>
>> Then I did a test to search for something that will produce no results,
>> I tried the following command line, and got the following results:
>>
>>   yum search giraffe
>> Loaded plugins: langpacks, presto, refresh-packagekit
>> Warning: No matches found for: giraffe
>> No Matches found
>>
>> I'm surprised that it didn't tag on the use search all message. Perhaps
>> it would be good if it falls back on doing yum search all, for you, if
>> there was no results.  Though, that could be a nuisance, in itself.
>>
> Hi Tim,
>     I have tried the searches again with dnf and smart and as can be 
> seen from the output, dnf did not suggest to use search all, nor did 
> it show Handbrake in its list as smart did, and when I issue the info 
> command on Handbrake from dnf it showed that Handbrake is indeed 
> installed. Given that it appears that in my environment it is behaving 
> differently to your environment, am I missing something that should be 
> installed?
>
> [steve at home-desktop ~]$ dnf search bluray
> Cairo-Dock repository 22 kB/s |  33 kB     00:01
> Open source multiplatform video transcoder 6.4 kB/s | 5.7 kB 00:00
> RPM Fusion for Fedora 20 - Free - Updates 360 kB/s | 373 kB 00:01
> RPM Fusion for Fedora 20 - Nonfree - Updates 284 kB/s | 106 kB 00:00
> RPM Fusion for Fedora 20 - Free 392 kB/s | 487 kB     00:01
> Adobe Systems Incorporated 2.5 kB/s | 1.8 kB     00:00
> Adobe Systems Incorporated 2.1 kB/s | 1.8 kB     00:00
> Fedora 20 - x86_64 - Updates 562 kB/s |  24 MB     00:42
> Russian Fedora for Fedora 20 - Free - Updates 74 kB/s | 108 kB 00:01
> google-chrome 8.1 kB/s | 3.5 kB     00:00
> Russian Fedora for Fedora 20 - Free 61 kB/s |  83 kB     00:01
> RPM Fusion for Fedora 20 - Nonfree 431 kB/s | 289 kB     00:00
> RPM Sphere 320 kB/s | 6.0 MB     00:19
> ======================================================================================== 
> N/S Matched: bluray 
> ========================================================================================
> libbluray-bdj.x86_64 : BDJ support for libbluray
> libbluray-java.x86_64 : BDJ support for libbluray
> libbluray-utils.x86_64 : Test utilities for libbluray
> libbluray-devel.x86_64 : Development files for libbluray
> libbluray-devel.i686 : Development files for libbluray
> libbluray.x86_64 : Library to access Blu-Ray disks for video playback
> libbluray.i686 : Library to access Blu-Ray disks for video playback
> [steve at home-desktop ~]$ smart search bluray
> Loading cache...
> Updating cache... 
> ############################################################################################################### 
> [100%]
>
> HandBrake-cli - An open-source multiplatform video transcoder (CLI)
> HandBrake-gui - An open-source multiplatform video transcoder (GUI)
> libbluray - Library to access Blu-Ray disks for video playback
> libbluray - Library to access Blu-Ray disks for video playback
> libbluray - Library to access Blu-Ray disks for video playback
> libbluray - Library to access Blu-Ray disks for video playback
> libbluray - Library to access Blu-Ray disks for video playback
> libbluray - Library to access Blu-Ray disks for video playback
> libbluray-bdj - BDJ support for libbluray
> libbluray-bdj - BDJ support for libbluray
> libbluray-devel - Development files for libbluray
> libbluray-devel - Development files for libbluray
> libbluray-devel - Development files for libbluray
> libbluray-devel - Development files for libbluray
> libbluray-devel - Development files for libbluray
> libbluray-java - BDJ support for libbluray
> libbluray-java - BDJ support for libbluray
> libbluray-utils - Test utilities for libbluray
> libbluray-utils - Test utilities for libbluray
> serviio - A free media server
>
>
> [steve at home-desktop ~]$ dnf info HandBrake-cli
> Installed Packages
> Name        : HandBrake-cli
> Arch        : x86_64
> Epoch       : 0
> Version     : 0.9.9
> Release     : 12.fc20
> Size        : 1.4 M
> Repo        : @System
> Summary     : An open-source multiplatform video transcoder (CLI)
> URL         : http://handbrake.fr/
> License     : GPLv2+
> Description : HandBrake is a general-purpose, free, open-source, 
> cross-platform, multithreaded video transcoder software application. 
> It can process most common multimedia files and any DVD or
>             : Bluray sources that do not contain any kind of copy 
> protection.  This package contains the command line version of the 
> program.
>
> [steve at home-desktop ~]$ dnf info serviio
> Available Packages
> Name        : serviio
> Arch        : noarch
> Epoch       : 0
> Version     : 0.6.2
> Release     : 22.3
> Size        : 13 M
> Repo        : rpm-sphere
> Summary     : A free media server
> URL         : http://www.serviio.org/
> License     : Free to use
> Description : It allows you to stream your media files (music, video 
> or images) to renderer devices (e.g. a TV set, Bluray player, games 
> console or mobile phone) on your connected home network.
>
>
> regards,
> Steve
>
>
Just further to this mail, I just tried the search again with yum and it 
did suggest using search all where dnf did not. Yum also refreshed 3 of 
the repositories that dnf had refreshed as well.

regards,
Steve

>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140627/daeb8c0e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samorris.vcf
Type: text/x-vcard
Size: 130 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140627/daeb8c0e/attachment.vcf>


More information about the users mailing list