SBdocs - SlackBuilder Tutorials - pkg-get

Last updated:


Takes a single package as argument and searches for a recursive list of dependencies verifies the action to take ( install, upgrade, installed already etc... ) and askes if you wish to continue. If all packages are installed and up-to-date already it will exit.

 --> pkg-get guitarix

 root /
Dependency-Check => guitarix
Finding recursive dependencies for....guitarix
There are 9 dependencies to verify

serd will be installed
sord will be installed
lv2 will be installed
sratom will be installed
lilv will be installed
ladspa_sdk will be installed
liblrdf will be installed
jack-audio-connection-kit will be installed
guitarix will be installed

There are 9 pkgs to be installed/upgraded....
Do you wish to continue? Y/n 

* The output is color coded for easy recognition ( bright red if not installed ).

* ( Dark red for the package name and green for the status if already installed ).

Unresolved dependencies

The only unresolved dependencies are most likely going to be official slackware packages. Alternatively it could be due to a package that was built without a dependency listed in its metadata ( human error ).

If after installation a program fails to run due to a library missing, it is probably a missing slackware package. For instance, when I attempt to start the 'guitarix' application after I just installed it it complained of libraptor2 not existing.

 --> guitarix 
guitarix: error while loading shared libraries: cannot open shared object file: No such file or directory

So I used 'comparepkg' to find out...

 --> comparepkg raptor


And there it is. I could use 'pkg-get' to install this package but since I know it has no dependencies I'll use 'getpkg'.

--> getpkg raptor2
root /
%%%%%%%%%%% raptor2 install
at the location /var/pkgcache/slackware64-14.2
   300K .......... .......... .......... ...                  100% 1.99M=0.3s
Verifying package raptor2-2.0.15-x86_64-2.txz.
Installing package raptor2-2.0.15-x86_64-2.txz:
# raptor2 (RDF Parser & Serializer)
# Raptor is a free software/Open Source C library that provides a set of
# parsers and serializers that generate Resource Description Framework
# (RDF) triples by parsing syntaxes or serialize the triples into a
# syntax.  The supported parsing syntaxes are RDF/XML, N-Triples, TRiG,
# Turtle, RSS tag soup including all versions of RSS, Atom 1.0 and 0.3,
# GRDDL and microformats for HTML, XHTML and XML.
# Homepage:
Executing install script for raptor2-2.0.15-x86_64-2.txz.
Package raptor2-2.0.15-x86_64-2.txz installed.

And now the program starts up.

Removing a program

To remove a program and its recursive dependencies use 'pkg-rm'

Comment in the Forum.

© 2015 - 2018  -   SlackBuilder  -   All Rights Reserved.

By: Lance Peterson -- Slackerson