pkgadd(8) pkgadd(8) NAME pkgadd - install software package SYNOPSIS pkgadd [options] DESCRIPTION pkgadd is a package management utility, which installs a software pack- age. A package is an archive of files (.pkg.tar.gz). OPTIONS -u, --upgrade Upgrade/replace package with the same name as . -f, --force Force installation, overwrite conflicting files. If the package that is about to be installed contains files that are already installed this option will cause all those files to be overwrit- ten. This option should be used with care, preferably not at all. -r, --root Specify alternative installation root (default is "/"). This should not be used as a way to install software into e.g. /usr/local instead of /usr. Instead this should be used if you want to install a package on a temporary mounted partition, which is "owned" by another system. By using this option you not only specify where the software should be installed, but you also specify which package database to use. -v, --version Print version and exit. -h, --help Print help and exit. CONFIGURATION When using pkgadd in upgrade mode (i.e. option -u is used) the file /etc/pkgadd.conf will be read. This file can contain rules describing how pkgadd should behave when doing upgrades. A rule is built out of three fragments, event, pattern and action. The event describes in what kind of situation this rule applies. Currently only one type of event is supported, that is UPGRADE. The pattern is a regular expression and the action applicable to the UPGRADE event is YES and NO. More than one rule of the same event type is allowed, in which case the first rule will have the lowest priority and the last rule will have the highest priority. Example: UPGRADE ^etc/.*$ NO UPGRADE ^var/log/.*$ NO UPGRADE ^etc/X11/.*$ YES UPGRADE ^etc/X11/XF86Config$ NO The above example will cause pkgadd to never upgrade anything in /etc/ or /var/log/ (subdirectories included), except files in /etc/X11/ (sub- directories included), unless it is the file /etc/X11/XF86Config. The default rule is to upgrade everything, rules in this file are excep- tions to that rule. (NOTE! A pattern should never contain an initial "/" since you are referring to the files in the package, not the files on the disk.) If pkgadd finds that a specific file should not be upgraded it will install it under /var/lib/pkg/rejected/. The user is then free to examine/use/remove that file manually. FILES /etc/pkgadd.conf Configuration file. SEE ALSO pkgrm(8), pkginfo(8), pkgmk(8), rejmerge(8) COPYRIGHT pkgadd (pkgutils) is Copyright (c) 2000-2005 Per Liden and is licensed through the GNU General Public License. Read the COPYING file for the complete license. pkgutils 5.20 pkgadd(8)