installpkg − install Slackware and Tukaani compatible packages
installpkg [−−warn] [−−quiet] [−−root /otherroot] packagename [packagename2 ...]
installpkg installs a single or multiple binary packages designed for use with the Slackware Linux and compatible distributions. Compression method used in the package is detected from filename extension:
|
.tgz |
gzip compressed tar archive |
|||
|
.tlz |
LZMA compressed tar archive |
|||
|
.tbz |
bzip2 compressed tar archive |
|||
|
.tar |
Uncompressed tar archive |
For more information of different package compression methods see makepkg(8).
If the packagename begins with http:// or ftp:// it is assumed to be an URL instead of a regular file. To use URLs with installpkg you need to have wget(1) installed.
installpkg never upgrades any packages. If a version of the package is already installed, installpkg installs the new package without removing the old package. Usually some files overlap between different versions of the same package. Overlapping files are always overwritten without warnings. To upgrade packages see upgradepkg(8). Note that upgradepkg can also install new packages, and at least for beginners it is recommended to use it for both installing and upgrading packages.
−w, −−warn
Generate a report to the standard output about which files and directories would be removed or overwritten if you install the package(s). Do not actually install it.
−q, −−quiet
Supress all status messages during installation except wget download information. Critical error messages are still shown. If you want installpkg to be really quiet, redirect the output to /dev/null.
−g, −−gpg
Force the verification of GPG signatures overriding the options set in the configuration file. Only packages that have been signed with a known valid key are installed. The signature files have .asc extension; e.g. the signature file of foo-0.12-i486-1barney.tgz is foo-0.12-i486-1barney.tgz.asc.
−G, −−no-gpg
Forcibly disable the verfication of GPG signatures overriding the settings set in the configuration file.
−b /packages, −−base /packages
Specify a directory or URL
which is prepended to every package name specified. This
option can be useful if you have a list of full package
names in a file and want to e.g. download and install all of
them:
installpkg -b http://myserver/mypacks $(cat
packagelist.txt)
−R /otherroot, −−root /otherroot
Install using a location other than / (the default) as the root of the filesystem to install on. In the example given, use /otherroot instead. Setting the ROOT environment variable does the same thing.
/etc/pkgtools/config
Configuration file. Documentation of all the configuration options have been put to pkgtool(8) section CONFIGURATION FILE.
/root/.gnupg/pubring.gpg
Trusted public keys. You can import keys with a command like gpg −−import GPG-KEY where GPG-KEY is a file containing one or more public keys that you trust.
|
ROOT |
Setting this is equivalent to using the −−root /otherroot command line parameter. |
Use upgradepkg −−install−new instead of installpkg unless you have a special reason to use installpkg. Usually the reasons are limited to installing a new kernel package (to keep the old kernel still installed) and using the −−warn option.
installpkg does not check if a package with identical name is already installed and will silently overwrite its database entry. If the old package and new package have differences in their filelists, the files that no longer exist in the newer package will vanish from the package database. This issue will not be fixed to keep Slackware compability (advanced users might even like this ‘‘feature’’ and know how to use it properly).
Original by Patrick J. Volkerding <volkerdi at slackware.com>
Revised for Tukaani Linux by Lasse Collin <lasse.collin at tukaani.org> and Ville Koskinen <w−ber at iki.fi>
pkgtool(8), installpkg(8), removepkg(8), upgradepkg(8), viewpkg(1), explodepkg(1), makepkg(1), convertpkg(1), slackrepo(1), wget(1), gpgv(1)