LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2014, 03:43 PM   #1
brooko
Member
 
Registered: Nov 2009
Posts: 35

Rep: Reputation: 0
slackpkg bug or confusion?


Could someone confirm the actual usage of the slackpkg install PATTERN and slackpkg search PATTERN commands.

My understanding was that anything the search function turned up would be installed??

Some examples
Code:
root@server:~# slackpkg search doc    

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

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

[ installed ] - linuxdoc-tools-0.9.68-i486-4
[uninstalled] - kdevelop-php-docs-1.5.2-i486-1
[ installed ] - libwmf-docs-0.2.8.4-noarch-5
[ installed ] - tetex-doc-3.0-i486-8
[ installed ] - xorg-docs-1.7-noarch-1
[ installed ] - xorg-sgml-doctools-1.11-i486-1

You can search specific files using "slackpkg file-search file".
But the install equivalent yields nothing to install?
Code:
root@server:~# slackpkg install doc   

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

No packages match the pattern for install. Try:

	/usr/sbin/slackpkg reinstall|upgrade 


root@server:~#
Another example
Code:
root@server:~# slackpkg search libX  

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

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

[uninstalled] - libXfont-1.4.7-i486-1_slack14.1
[uninstalled] - libX11-1.6.2-i486-1
[uninstalled] - libXScrnSaver-1.2.2-i486-1
[uninstalled] - libXau-1.0.8-i486-1
[uninstalled] - libXaw-1.0.12-i486-1
[uninstalled] - libXaw3d-1.6.2-i486-2
[uninstalled] - libXcm-0.5.2-i486-1
[ installed ] - libXcomposite-0.4.4-i486-1
[ installed ] - libXcursor-1.1.14-i486-1
[uninstalled] - libXdamage-1.1.4-i486-1
[uninstalled] - libXdmcp-1.1.1-i486-1
[uninstalled] - libXevie-1.0.3-i486-1
[uninstalled] - libXext-1.3.2-i486-1
[uninstalled] - libXfixes-5.0.1-i486-1
[uninstalled] - libXfontcache-1.0.5-i486-1
[uninstalled] - libXft-2.3.1-i486-1
[ installed ] - libXi-1.7.2-i486-1
[ installed ] - libXinerama-1.1.3-i486-1
[uninstalled] - libXmu-1.1.2-i486-1
[uninstalled] - libXp-1.0.2-i486-1
[uninstalled] - libXpm-3.5.11-i486-1
[ installed ] - libXrandr-1.4.2-i486-1
[uninstalled] - libXrender-0.9.8-i486-1
[uninstalled] - libXres-1.0.7-i486-1
[uninstalled] - libXt-1.1.4-i486-1
[uninstalled] - libXtst-1.2.2-i486-1
[uninstalled] - libXv-1.0.10-i486-1
[uninstalled] - libXvMC-1.0.8-i486-1
[uninstalled] - libXxf86dga-1.1.4-i486-1
[uninstalled] - libXxf86misc-1.0.3-i486-1
[uninstalled] - libXxf86vm-1.1.3-i486-1

You can search specific files using "slackpkg file-search file".
But again install equivalent returns nothing
Code:
root@server:~# slackpkg install libX                                       

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

No packages match the pattern for install. Try:

	/usr/sbin/slackpkg reinstall|upgrade
Also the search function returns different results where I would expect the same
Code:
root@server:~# slackpkg search elv 

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

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

[ installed ] - elvis-2.2_0-i486-2

You can search specific files using "slackpkg file-search file".
Code:
root@server:~# slackpkg search elv* 

Looking for elv* in package list. Please wait... DONE

The list below shows all packages with name matching "elv*".

[ installed ] - elilo-3.14-i486-6
[ installed ] - elvis-2.2_0-i486-2
[ installed ] - kernel-firmware-20131008git-noarch-1
[ installed ] - kernel-generic-3.10.17-i486-3
[ installed ] - kernel-generic-smp-3.10.17_smp-i686-3
[ installed ] - kernel-huge-3.10.17-i486-3
[ installed ] - kernel-huge-smp-3.10.17_smp-i686-3
[ installed ] - kernel-modules-3.10.17-i486-3
[ installed ] - kernel-modules-smp-3.10.17_smp-i686-3
[ installed ] - mcelog-1.0pre3-i486-1
..... lines removed .......
[uninstalled] - aspell-uz-0.5_0-noarch-4
[uninstalled] - aspell-vi-0.01.1_1-noarch-4
[uninstalled] - aspell-wa-0.50_0-noarch-4
[uninstalled] - aspell-yi-0.01.1_1-noarch-4
[uninstalled] - aspell-zu-0.50_0-noarch-4

You can search specific files using "slackpkg file-search file".
Whats the difference between elv and elv* in terms of the search function? why does elv* turn up things like aspell-zu-0.50_0-noarch-4, there's no 'v' in that package name?
 
Old 02-05-2014, 03:53 PM   #2
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
the pattern is a regular expression, so elv* matches
el
elv
elvv
elvvv...

The 'search' command does a 'grep' to search
the 'install' command does a 'grep -w'
 
1 members found this post helpful.
Old 02-05-2014, 04:19 PM   #3
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Quote:
Could someone confirm the actual usage of the slackpkg install PATTERN and slackpkg search PATTERN commands.

My understanding was that anything the search function turned up would be installed??
They don't work the same. Install only accepts the name or names of packages.

Code:
root@server:~# slackpkg search elv*
First your shell expands that based on what's in your directory, so it's not a good way of searching. If nothing in your directory matches, *then* it uses the regexp "elv*" as zerouno said.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bug in slackpkg search? swatnio Slackware 9 05-27-2013 07:14 PM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
[SOLVED] beta1: slackpkg: bug, feature or "other"? zordrak Slackware 2 05-10-2010 06:55 AM
Bug in slackpkg -- fail to find installed package? grissiom Slackware 8 07-16-2009 05:26 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration