LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackpkg package search function (https://www.linuxquestions.org/questions/slackware-14/slackpkg-package-search-function-891915/)

ADX 07-15-2011 12:32 PM

Slackpkg package search function
 
Short overview; when I installed, I used the menu-driven system. For some reason or another I didn't install Mplayer, and now I need it to play my mpeg4 files. It ended up being a good opportunity to learn how to use slackpkg and other third-party package-management tools (I'm fairly new to linux, and command-line-driven programs in general) - even though there were a few problems.

Quote:

root@GPC:/var/lib/slackpkg# slackpkg search mplayer

Looking for mplayer in package list. Please wait... DONE

The list below shows all packages with name matching "mplayer".

[ installed ] - phonon-mplayer-20101213-x86_64-1
[uninstalled] - mplayerplug-in-3.55-x86_64-1
Close, but no cigar.

Okay, well, maybe the search function is still slightly buggy -how about swaret?

Quote:

swaret --search Mplayer
swaret 1.6.2-1

Listing available Packages matching Keyword: Mplayer...

No available Packages found matching Keyword: Mplayer!
A quick look inside of /var/lib/slackpkg/PACKAGES.txt reveals:

Quote:

PACKAGE NAME: MPlayer-20101218-x86_64-1.txz
PACKAGE LOCATION: ./slackware64/xap
PACKAGE SIZE (compressed): 8936 K
PACKAGE SIZE (uncompressed): 25930 K
PACKAGE DESCRIPTION:
MPlayer: MPlayer (media player)
MPlayer:
MPlayer: MPlayer is a movie player. It plays most MPEG/VOB, AVI, Ogg/OGM,
MPlayer: VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo,
MPlayer: FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim,
MPlayer: and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx,
MPlayer: DivX 3/4/5, WMV and even H.264 movies.
MPlayer:
MPlayer: Homepage for MPlayer is http://www.mplayerhq.hu/
MPlayer:
I don't understand. Am I doing something wrong? The package name is clearly used 3 times in the description alone. Is there any way to refine searches better, or is the search function buggy? :confused:

rg3 07-15-2011 12:43 PM

Maybe it's case sensitive. You didn't write MPlayer any time, according to your own logs. You used "mplayer" and "Mplayer", but not "MPlayer".

dive 07-15-2011 12:44 PM

slackpkg search MPlayer

That should work.

ADX 07-15-2011 12:49 PM

Quote:

Originally Posted by rg3 (Post 4415876)
Maybe it's case sensitive. You didn't write MPlayer any time, according to your own logs. You used "mplayer" and "Mplayer", but not "MPlayer".

Oh man, I didn't even notice that... :doh:

Quote:

root@GPC:/var/lib/slackpkg# slackpkg search MPlayer

Looking for MPlayer in package list. Please wait... DONE

The list below shows all packages with name matching "MPlayer".

[ installed ] - MPlayer-20101218-x86_64-1

You can search specific files using "slackpkg file-search file".
Thanks guys.


All times are GMT -5. The time now is 03:14 AM.