a2p
accept
access
acct
addftinfo
addr2line
adjtime
afmtodit
after
aio_cancel
aio_error
aio_read
aio_return
aio_suspend
aio_waitcomplete
aio_write
alias
aliases
alloc
anvil
append
apply
apropos
ar
array
as
asa
asn1parse
at
atq
atrm
attemptckalloc
attemptckrealloc
authlib
authtest
autopoint
awk
b64decode
b64encode
basename
batch
bc
bdes
bell
bg
bgerror
biff
big5
binary
bind
bindkey
bindtags
bindtextdomain
bio
bitmap
blowfish
bn
bootparams
bootptab
bounce
brandelf
break
breaksw
brk
bsdiff
bsdtar
bsnmpd
bspatch
bthost
btsockstat
buffer
builtin
builtins
bunzip2
button
byacc
bzcat
bzegrep
bzfgrep
bzgrep
bzip2
c2ph
c89
c99
ca
cal
calendar
canvas
cap_mkdb
case
cat
catch
catman
cc
cd
cdcontrol
chdir
checkbutton
checknr
chflags
chfn
chgrp
chio
chkey
chmod
chown
chpass
chroot
chsh
ci
ciphers
ckalloc
ckdist
ckfree
ckrealloc
cksum
cleanup
clear
clipboard
clock
clock_getres
clock_gettime
clock_settime
close
cmp
co
col
colcrt
colldef
colors
colrm
column
comm
command
compile_et
complete
compress
concat
config
connect
console
continue
core
courierlogger
couriertcpd
cp
cpan
cpio
cpp
creat
crl
crontab
crunchgen
crunchide
crypt
crypto
csh
csplit
ctags
ctm
ctm_dequeue
ctm_rmail
ctm_smail
cu
cursor
cursors
cut
cvs
date
dbiprof
dbiproxy
dc
dcgettext
dcngettext
dd
dde
default
defer
deliverquota
des
destroy
devfs
df
dgettext
dgst
dh
dhparam
dialog
diff
diff3
dig
dir
dirent
dirname
dirs
discard
disktab
dngettext
do
domainname
done
dprofpp
dsa
dsaparam
dtmfdecode
du
dup
dup2
eaccess
ec
ecdsa
echo
echotc
ecparam
ed
edit
editrc
ee
egrep
elf
elfdump
elif
else
enc
enc2xs
encoding
end
endif
endsw
engine
enigma
entry
env
envsubst
eof
eqn
err
errno
error
errstr
esac
ethers
euc
eui64
eval
event
evp
ex
exec
execve
exit
expand
export
exports
expr
extattr
extattr_delete_fd
extattr_delete_file
extattr_get_fd
extattr_get_file
extattr_set_fd
extattr_set_file
f77
false
famm
famx
fblocked
fbtab
fc
fchdir
fchflags
fchmod
fchown
fcntl
fconfigure
fcopy
fdescfs
fdformat
fdread
fdwrite
fetch
fg
fgrep
fhopen
fhstat
fhstatfs
fi
file
file2c
fileevent
filename
filetest
find
find2perl
finger
flex
flock
flush
fmt
focus
fold
font
fontedit
for
foreach
fork
format
forward
fpathconf
frame
from
fs
fstab
fstat
fstatfs
fsync
ftp
ftpchroot
ftpusers
ftruncate
futimes
g711conv
gb2312
gb18030
gbk
gcc
gcore
gcov
gdb
gencat
gendsa
genrsa
gensnmptree
getconf
getdents
getdirentries
getdtablesize
getegid
geteuid
getfacl
getfh
getfsstat
getgid
getgroups
getitimer
getlogin
getopt
getopts
getpeername
getpgid
getpgrp
getpid
getppid
getpriority
getresgid
getresuid
getrlimit
getrusage
gets
getsid
getsockname
getsockopt
gettext
gettextize
gettimeofday
gettytab
getuid
glob
global
gmake
goto
gperf
gprof
grab
grep
grid
grn
grodvi
groff
groff_font
groff_out
groff_tmac
grog
grolbp
grolj4
grops
grotty
group
groups
gunzip
gzcat
gzexe
gzip
h2ph
h2xs
hash
hashstat
hd
head
help2man
hesinfo
hexdump
history
host
hostname
hosts
hosts_access
hosts_options
hpftodit
http
hup
i386_get_ioperm
i386_get_ldt
i386_set_ioperm
i386_set_ldt
i386_vm86
iconv
id
ident
idprio
if
ifnames253
ifnames259
image
imapd
incr
indent
indxbib
info
infokey
inode
install
instmodsh
interp
intro
introduction
ioctl
ipcrm
ipcs
ipf
ipftest
ipnat
ippool
ipresend
issetugid
jail
jail_attach
jobid
jobs
join
jot
kbdcontrol
kbdmap
kcon
kdestroy
kdump
kenv
kevent
keycap
keylogin
keylogout
keymap
keysyms
kgdb
kill
killall
killpg
kinit
kldfind
kldfirstmod
kldload
kldnext
kldstat
kldsym
kldunload
klist
kpasswd
kqueue
kse
kse_create
kse_exit
kse_release
kse_switchin
kse_thr_interrupt
kse_wakeup
ktrace
label
labelframe
lam
lappend
last
lastcomm
lastlog
lchflags
lchmod
lchown
ld
ldap
ldapadd
ldapcompare
ldapdelete
ldapmodify
ldapmodrdn
ldappasswd
ldapsearch
ldapwhoami
ldd
leave
less
lesskey
lex
lgetfh
lhash
libnetcfg
library
limit
limits
lindex
link
linprocfs
linsert
lint
lio_listio
list
listbox
listen
lj4_font
lkbib
llength
lmtp
ln
load
loadfont
local
locale
locate
lock
lockf
log
logger
login
logins
logname
logout
look
lookbib
lorder
lower
lp
lpq
lpr
lprm
lptest
lrange
lreplace
ls
lsearch
lseek
lset
lsort
lstat
lsvfs
lutimes
lynx
m4
madvise
magic
mail
maildiracl
maildirkw
maildirmake
mailq
mailx
make
makeinfo
makewhatis
man
manpath
master
mc
mcedit
mcview
md2
md4
md5
mdc2
memory
menu
menubar
menubutton
merge
mesg
message
mincore
minherit
minigzip
mkdep
mkdir
mkfifo
mkimapdcert
mklocale
mknod
mkpop3dcert
mkstr
mktemp
mlock
mlockall
mmap
mmroff
modfind
modfnext
modnext
modstat
moduli
more
motd
mount
mprotect
mptable
msdos
msdosfs
msgattrib
msgcat
msgcmp
msgcomm
msgconv
msgen
msgexec
msgfilter
msgfmt
msggrep
msginit
msgmerge
msgs
msgunfmt
msguniq
mskanji
msql2mysql
msync
mt
munlock
munlockall
munmap
mv
myisamchk
myisamlog
myisampack
mysql
mysqlaccess
mysqladmin
mysqlbinlog
mysqlcheck
mysqld
mysqldump
mysqld_multi
mysqld_safe
mysqlhotcopy
mysqlimport
mysqlshow
mysql_config
mysql_fix_privilege_tables
mysql_zap
namespace
nanosleep
nawk
nc
ncal
ncplist
ncplogin
ncplogout
neqn
netconfig
netgroup
netid
netstat
networks
newaliases
newgrp
nex
nfsstat
nfssvc
ngettext
nice
nl
nm
nmount
nohup
nologin
notify
nroff
nseq
nslookup
ntp_adjtime
ntp_gettime
nvi
nview
objcopy
objdump
objformat
ocsp
od
onintr
open
openssl
opieaccess
opieinfo
opiekey
opiekeys
opiepasswd
option
options
oqmgr
pack
package
packagens
pagesize
palette
pam_auth
panedwindow
parray
passwd
paste
patch
pathchk
pathconf
pawd
pax
pbm
pcre
pcreapi
pcrebuild
pcrecallout
pcrecompat
pcrecpp
pcregrep
pcrematching
pcrepartial
pcrepattern
pcreperform
pcreposix
pcreprecompile
pcresample
pcretest
perl
perl56delta
perl58delta
perl561delta
perl570delta
perl571delta
perl572delta
perl573delta
perl581delta
perl582delta
perl583delta
perl584delta
perl585delta
perl586delta
perl587delta
perl588delta
perl5004delta
perl5005delta
perlaix
perlamiga
perlapi
perlapio
perlapollo
perlartistic
perlbeos
perlbook
perlboot
perlbot
perlbs2000
perlbug
perlcall
perlcc
perlce
perlcheat
perlclib
perlcn
perlcompile
perlcygwin
perldata
perldbmfilter
perldebguts
perldebtut
perldebug
perldelta
perldgux
perldiag
perldoc
perldos
perldsc
perlebcdic
perlembed
perlepoc
perlfaq
perlfaq1
perlfaq2
perlfaq3
perlfaq4
perlfaq5
perlfaq6
perlfaq7
perlfaq8
perlfaq9
perlfilter
perlfork
perlform
perlfreebsd
perlfunc
perlglossary
perlgpl
perlguts
perlhack
perlhist
perlhpux
perlhurd
perlintern
perlintro
perliol
perlipc
perlirix
perlivp
perljp
perlko
perllexwarn
perllinux
perllocale
perllol
perlmachten
perlmacos
perlmacosx
perlmint
perlmod
perlmodinstall
perlmodlib
perlmodstyle
perlmpeix
perlnetware
perlnewmod
perlnumber
perlobj
perlop
perlopenbsd
perlopentut
perlos2
perlos390
perlos400
perlothrtut
perlpacktut
perlplan9
perlpod
perlpodspec
perlport
perlqnx
perlre
perlref
perlreftut
perlrequick
perlreref
perlretut
perlrun
perlsec
perlsolaris
perlstyle
perlsub
perlsyn
perlthrtut
perltie
perltoc
perltodo
perltooc
perltoot
perltrap
perltru64
perltw
perlunicode
perluniintro
perlutil
perluts
perlvar
perlvmesa
perlvms
perlvos
perlwin32
perlxs
perlxstut
perror
pfbtops
pftp
pgrep
phones
photo
pic
pickup
piconv
pid
pipe
pkcs7
pkcs8
pkcs12
pkg_add
pkg_check
pkg_create
pkg_delete
pkg_info
pkg_sign
pkg_version
pkill
pl2pm
place
pod2html
pod2latex
pod2man
pod2text
pod2usage
podchecker
podselect
poll
popd
popup
posix_madvise
postalias
postcat
postconf
postdrop
postfix
postkick
postlock
postlog
postmap
postqueue
postsuper
pr
pread
preadv
printcap
printenv
printf
proc
procfs
profil
protocols
prove
proxymap
ps
psed
psroff
pstruct
ptrace
publickey
pushd
puts
pwd
pwrite
pwritev
qmgr
qmqpd
quota
quotactl
radiobutton
raise
rand
ranlib
rcp
rcs
rcsclean
rcsdiff
rcsfile
rcsfreeze
rcsintro
rcsmerge
read
readelf
readlink
readonly
readv
realpath
reboot
recv
recvfrom
recvmsg
red
ree
refer
regexp
registry
regsub
rehash
remote
rename
repeat
replace
req
reset
resolver
resource
return
rev
revoke
rfcomm_sppd
rfork
rhosts
ripemd
ripemd160
rlog
rlogin
rm
rmd160
rmdir
rpc
rpcgen
rs
rsa
rsautl
rsh
rtld
rtprio
rup
ruptime
rusers
rwall
rwho
s2p
safe
sasl
sasldblistusers2
saslpasswd2
sbrk
scache
scale
scan
sched
sched_getparam
sched_getscheduler
sched_get_priority_max
sched_get_priority_min
sched_rr_get_interval
sched_setparam
sched_setscheduler
sched_yield
scon
scp
script
scrollbar
sdiff
sed
seek
select
selection
semctl
semget
semop
send
sendbug
sendfile
sendmail
sendmsg
sendto
services
sess_id
set
setegid
setenv
seteuid
setfacl
setgid
setgroups
setitimer
setlogin
setpgid
setpgrp
setpriority
setregid
setresgid
setresuid
setreuid
setrlimit
setsid
setsockopt
settc
settimeofday
setty
setuid
setvar
sftp
sh
sha
sha1
sha256
shar
shells
shift
shmat
shmctl
shmdt
shmget
showq
shutdown
sigaction
sigaltstack
sigblock
sigmask
sigpause
sigpending
sigprocmask
sigreturn
sigsetmask
sigstack
sigsuspend
sigvec
sigwait
size
slapadd
slapcat
slapd
slapdn
slapindex
slappasswd
slaptest
sleep
slogin
slurpd
smbutil
smime
smtp
smtpd
socket
socketpair
sockstat
soelim
sort
source
spawn
speed
spinbox
spkac
splain
split
squid
squid_ldap_auth
squid_ldap_group
squid_unix_group
sscop
ssh
sshd_config
ssh_config
stab
startslip
stat
statfs
stop
string
strings
strip
stty
su
subst
sum
suspend
swapoff
swapon
switch
symlink
sync
sysarch
syscall
sysconftool
sysconftoolcheck
systat
s_client
s_server
s_time
tabs
tail
talk
tar
tbl
tclsh
tcltest
tclvars
tcopy
tcpdump
tcpslice
tcsh
tee
tell
telltc
telnet
term
termcap
terminfo
test
texindex
texinfo
text
textdomain
tfmtodit
tftp
then
threads
time
tip
tk
tkerror
tkvars
tkwait
tlsmgr
tmac
top
toplevel
touch
tput
tr
trace
trafshow
trap
troff
true
truncate
truss
tset
tsort
tty
ttys
type
tzfile
ui
ul
ulimit
umask
unalias
uname
uncomplete
uncompress
undelete
unexpand
unhash
unifdef
unifdefall
uniq
units
unknown
unlimit
unlink
unmount
unset
unsetenv
until
unvis
update
uplevel
uptime
upvar
usbhidaction
usbhidctl
users
utf8
utimes
utmp
utrace
uudecode
uuencode
uuidgen
vacation
variable
verify
version
vfork
vgrind
vgrindefs
vi
vidcontrol
vidfont
view
virtual
vis
vt220keys
vwait
w
wait
wait3
wait4
waitpid
wall
wc
wget
what
whatis
where
whereis
which
while
who
whoami
whois
window
winfo
wish
wm
write
writev
wtmp
x509
xargs
xgettext
xmlwf
xstr
xsubpp
yacc
yes
ypcat
ypchfn
ypchpass
ypchsh
ypmatch
yppasswd
ypwhich
yyfix
zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zmore
znew
_exit
__syscall
 
FreeBSD/Linux/UNIX General Commands Manual
Hypertext Man Pages
pkg_add
 
PKG_ADD(1)		FreeBSD General Commands Manual 	    PKG_ADD(1)

NAME
     pkg_add -- a utility for installing software package distributions

SYNOPSIS
     pkg_add [-vInfrRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]
	     pkg-name [pkg-name ...]

DESCRIPTION
     The pkg_add command is used to extract packages that have been previously
     created with the pkg_create(1) command.

WARNING
     Since the pkg_add command may execute scripts or programs contained
     within a package file, your system may be susceptible to ``trojan
     horses'' or other subtle attacks from miscreants who create dangerous
     package files.

     You are advised to verify the competence and identity of those who pro-
     vide installable package files.  For extra protection, use the -M flag to
     extract the package file, and inspect its contents and scripts to ensure
     it poses no danger to your system's integrity.  Pay particular attention
     to any +INSTALL, +POST-INSTALL, +DEINSTALL, +POST-DEINSTALL, +REQUIRE or
     +MTREE_DIRS files, and inspect the +CONTENTS file for @cwd, @mode (check
     for setuid), @dirrm, @exec, and @unexec directives, and/or use the
     pkg_info(1) command to examine the package file.

OPTIONS
     The following command line arguments are supported:

     pkg-name [pkg-name ...]
	     The named packages are installed.	A package name of - will cause
	     pkg_add to read from stdin.  If the packages are not found in the
	     current working directory, pkg_add will search them in each
	     directory named by PKG_PATH.

     -v      Turn on verbose output.

     -K      Keep any downloaded package in PKGDIR if it is defined or in cur-
	     rent directory by default.

     -I      If any installation scripts (pre-install or post-install) exist
	     for a given package, do not execute them.

     -n      Do not actually install a package, just report the steps that
	     would be taken if it was.

     -R      Do not record the installation of a package.  This means that you
	     cannot deinstall it later, so only use this option if you know
	     what you are doing!

     -r      Use the remote fetching feature.  This will determine the appro-
	     priate objformat and release and then fetch and install the pack-
	     age.

     -f      Force installation to proceed even if prerequisite packages are
	     not installed or the requirements script fails.  Although pkg_add
	     will still try to find and auto-install missing prerequisite
	     packages, a failure to find one will not be fatal.

     -p prefix
	     Set prefix as the directory in which to extract files from a
	     package.  If a package has set its default directory, it will be
	     overridden by this flag.  Note that only the first @cwd directive
	     will be replaced, since pkg_add has no way of knowing which
	     directory settings are relative and which are absolute.  It is
	     rare in any case to see more than one directory transition made,
	     but when such does happen and you wish to have control over *all*
	     directory transitions, then you may then wish to look into the
	     use of MASTER and SLAVE modes (see the -M and -S options). If the
	     -p flag appears after any -P flag on the command line, it over-
	     rides it's effect, causing pkg_add not to use the given prefix
	     recursively.

     -P prefix
	     Does the same as the -p option, except that the given prefix is
	     also used recursively for the dependency packages, if any. If the
	     -P flag appears after any -p flag on the command line, it over-
	     rides it's effect, causing pkg_add to use the given prefix recur-
	     sively.

     -t template
	     Use template as the input to mktemp(3) when creating a ``staging
	     area''.  By default, this is the string /var/tmp/instmp.XXXXXX,
	     but it may be necessary to override it in the situation where
	     space in your /var/tmp directory is limited.  Be sure to leave
	     some number of `X' characters for mktemp(3) to fill in with a
	     unique ID.

	     You can get a performance boost by setting the staging area
	     template to reside on the same disk partition as target directo-
	     ries for package file installation; often this is /usr.

     -M      Run in MASTER mode.  This is a very specialized mode for running
	     pkg_add and is meant to be run in conjunction with SLAVE mode.
	     When run in this mode, pkg_add does no work beyond extracting the
	     package into a temporary staging area (see the -t option), read-
	     ing in the packing list, and then dumping it (prefaced by the
	     current staging area) to stdout where it may be filtered by a
	     program such as sed(1).  When used in conjunction with SLAVE
	     mode, it allows you to make radical changes to the package struc-
	     ture before acting on its contents.

     -S      Run in SLAVE mode.  This is a very specialized mode for running
	     pkg_add and is meant to be run in conjunction with MASTER mode.
	     When run in this mode, pkg_add expects the release contents to be
	     already extracted and waiting in the staging area, the location
	     of which is read as a string from stdin.  The complete packing
	     list is also read from stdin, and the contents then acted on as
	     normal.

     -C chrootdir
	     Before doing any operations, chroot(2) to the chrootdir directory
	     so that all package files, and the package database, are
	     installed to chrootdir.  Note that chrootdir needs to be a fairly
	     complete file system, including everything normally needed by
	     pkg_add to run.  This flag was added to help support operations
	     done by sysinstall(8) and is not expected to be useful for much
	     else.  Be careful that chrootdir is properly configured and can-
	     not be modified by normal users, versions of commands like
	     fetch(1) may be run inside chrootdir as a side effect.

     One or more pkg-name arguments may be specified, each being either a file
     containing the package (these usually end with a ``.tbz'' suffix) or a
     URL pointing at a file available on an ftp site.  Thus you may extract
     files directly from their anonymous ftp locations (e.g. pkg_add
     ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/packages/shells/bash-1.14.7.tbz).
     Note: If you wish to use passive mode ftp in such transfers, set the
     variable FTP_PASSIVE_MODE to some value in your environment.  Otherwise,
     the more standard ACTIVE mode may be used.  If pkg_add consistently fails
     to fetch a package from a site known to work, it may be because you have
     a firewall that demands the usage of passive mode ftp.

TECHNICAL DETAILS
     The pkg_add utility extracts each package's "packing list" into a special
     staging directory in /tmp (or $PKG_TMPDIR if set), parses it, and then
     runs through the following sequence to fully extract the contents of the
     package:

     1.   A check is made to determine if the package is already recorded as
	  installed.  If it is, installation is terminated.

     2.   A check is made to determine if the package conflicts (from
	  @conflicts directives, see pkg_create(1)) with an already-installed
	  package.  If it is, installation is terminated.

     3.   Scan all the package dependencies (from @pkgdep directives, see
	  pkg_create(1)) are read from the packing list.  If any of these
	  required packages is not currently installed, an attempt is made to
	  find and install it; if the missing package cannot be found or
	  installed, the installation is terminated.

     4.   Search for any @option directives which control how the package is
	  added to the system.	At the time of this writing, the only cur-
	  rently implemented option is @option extract-in-place which will
	  cause the package to be extracted directly into its prefix directory
	  without moving through a staging area in /tmp.

     5.   If @option extract-in-place is enabled, the package is now extracted
	  directly into its final location, otherwise it is extracted into the
	  staging area.

     6.   If the package contains a require file (see pkg_create(1)), then
	  execute it with the following arguments:
		pkg-name INSTALL
	  where pkg-name is the name of the package in question and the
	  INSTALL keyword denotes this as an installation requirements check
	  (useful if you want to have one script serving multiple functions).

     7.   If a pre-install script exists for the package, it is then executed
	  with the following arguments:
		script pkg-name PRE-INSTALL

	  where pkg-name is the name of the package in question and
	  PRE-INSTALL is a keyword denoting this as the preinstallation phase.

	  Note: The PRE-INSTALL keyword will not appear if separate scripts
	  for pre-install and post-install are given during package creation
	  time (using the -i and -I flags to pkg_create(1)).

     8.   If @option extract-in-place is not used, then the packing list (this
	  is the +CONTENTS file) is now used as a guide for moving (or copy-
	  ing, as necessary) files from the staging area into their final
	  locations.

     9.   If the package contains an mtreefile file (see pkg_create(1)), then
	  mtree is invoked as:
		mtree -u -f mtreefile -d -e -p prefix
	  where prefix is either the prefix specified with the -p or -P flag
	  or, if neither flag was specified, the name of the first directory
	  named by a @cwd directive within this package.

     10.  If a post-install script exists for the package, it is then executed
	  as
		script pkg-name POST-INSTALL
	  where pkg-name is the name of the package in question and
	  POST-INSTALL is a keyword denoting this as the post-installation
	  phase.

	  Note: The POST-INSTALL keyword will not appear if separate scripts
	  for pre-install and post-install are given during package creation
	  time (using the -i and -I flags to pkg_create(1)).

	  Reasoning behind passing keywords such as POST-INSTALL and
	  PRE-INSTALL is that this allows you to write a single install script
	  that does both ``before and after'' actions.	But, separating the
	  functionality is more advantageous and easier from a maintenance
	  viewpoint.

     11.  After installation is complete, a copy of the packing list,
	  deinstall script, description, and display files are copied into
	  /var/db/pkg/ for subsequent possible use by pkg_delete(1).
	  Any package dependencies are recorded in the other packages'
	  /var/db/pkg//+REQUIRED_BY file (if the environment vari-
	  able PKG_DBDIR is set, this overrides the /var/db/pkg/ path shown
	  above).

     12.  Finally, the staging area is deleted and the program terminates.

     All the scripts are called with the environment variable PKG_PREFIX set
     to the installation prefix (see the -p and -P options above).  This
     allows a package author to write a script that reliably performs some
     action on the directory where the package is installed, even if the user
     might change it with the -p or -P flags to pkg_add.

ENVIRONMENT
     The value of the PKG_PATH is used if a given package cannot be found.
     The environment variable should be a series of entries separated by
     colons.  Each entry consists of a directory name.	The current directory
     may be indicated implicitly by an empty directory name, or explicitly by
     a single period.

     The environment variable PKG_DBDIR specifies an alternative location for
     the installed package database, default location is /var/db/pkg.

     The environment variables PKG_TMPDIR and TMPDIR, in that order, are taken
     to name temporary directories where pkg_add will attempt to create its
     staging area in.  If these variables are not present or if the directo-
     ries named lack sufficient space, then pkg_add will use the first of
     /var/tmp, /tmp or /usr/tmp with sufficient space.

     The environment variable PACKAGEROOT specifies an alternate location for
     pkg_add to fetch from.  The fetch URL is built using this environment
     variable and the automatic directory logic that pkg_add uses when the -r
     option is invoked.  An example setting would be "ftp://ftp3.FreeBSD.org".

     The environment variable PACKAGESITE specifies an alternate location for
     pkg_add to fetch from.  This variable subverts the automatic directory
     logic that pkg_add uses when the -r option is invoked.  Thus it should be
     a complete URL to the remote package file(s).

     The environment variable PKGDIR specifies an alternative location to save
     downloaded packages to when -K option is used.

FILES
     /var/tmp	  Temporary directory for creating the staging area, if envi-
		  ronmental variables PKG_TMPDIR or TMPDIR do not point to a
		  suitable directory.
     /tmp	  Next choice if /var/tmp does not exist or has insufficient
		  space.
     /usr/tmp	  Last choice if /var/tmp and /tmp are not suitable for creat-
		  ing the staging area.
     /var/db/pkg  Default location of the installed package database.

SEE ALSO
     pkg_create(1), pkg_delete(1), pkg_info(1), pkg_version(1), mktemp(3),
     sysconf(3), mtree(8)

AUTHORS
     Jordan Hubbard

CONTRIBUTORS
     John Kohl 

BUGS
     Hard links between files in a distribution are only preserved if either
     (1) the staging area is on the same file system as the target directory
     of all the links to the file, or (2) all the links to the file are brack-
     eted by @cwd directives in the contents file, and the link names are
     extracted with a single tar command (not split between invocations due to
     exec argument-space limitations--this depends on the value returned by
     sysconf(_SC_ARG_MAX)).

     Sure to be others.

FreeBSD 6.1		       January 16, 2006 		   FreeBSD 6.1
=1
+1
(1)