Merge branch 'vendor/LIBARCHIVE'
[dragonfly.git] / usr.bin / pkg_radd / pkg_radd.1
1 .\"-
2 .\" Copyright (c) 2007 The DragonFly Project.
3 .\" 
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions are met:
8 .\"
9 .\" - Redistributions of source code must retain the above copyright notice,
10 .\"   this list of conditions and the following disclaimer.
11 .\" - Redistributions in binary form must reproduce the above copyright notice,
12 .\"   this list of conditions and the following disclaimer in the documentation
13 .\"   and/or other materials provided with the distribution.
14 .\" - Neither the name of The DragonFly Project nor the names of its
15 .\"   contributors may be used to endorse or promote products derived
16 .\"   from this software without specific, prior written permission.
17 .\"
18 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 .\" PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 .\"
30 .\" $DragonFly: src/usr.bin/pkg_radd/pkg_radd.1,v 1.2 2008/02/08 10:41:43 swildner Exp $
31 .\"
32 .Dd January 3, 2008
33 .Dt PKG_RADD 1
34 .Os
35 .Sh NAME
36 .Nm pkg_radd
37 .Nd installs packages
38 .Sh SYNOPSIS
39 .Nm
40 .Ar package ...
41 .Sh DESCRIPTION
42 .Nm
43 acts as a wrapper for
44 .Xr pkg_add 1 .
45 It sets the
46 .Ev PKG_PATH
47 variable to the
48 .Dx
49 default
50 .Xr pkgsrc 7
51 binary package server or uses the global
52 .Pa /etc/settings.conf
53 config file to calculate
54 .Ev PKG_PATH .
55 In
56 .Pa /etc/settings.conf ,
57 set
58 .Ev BINPKG_BASE
59 to your favorite binary packages mirror URL to allow
60 .Nm
61 to automatically retrieve the latest set of binary packages for your
62 .Dx
63 release.
64 If you want to use a specific set of packages, set
65 .Ev BINPKG_SITES
66 instead.
67 .Pp
68 All options passed to
69 .Nm
70 are passed to
71 .Xr pkg_add 1 .
72 .Sh EXAMPLES
73 The following is an example of a typical usage of the
74 .Nm
75 command:
76 .Pp
77 .Dl "# pkg_radd host"
78 .Pp
79 If you don't know which version of your desired package to install you can
80 use
81 .Xr pkg_search 1
82 to find the correct version.
83 .Pp
84 .Dl "# pkg_search fvwm2"
85 .Dl "# pkg_radd -v fvwm-2.4.20nb1"
86 .Pp
87 Add the following line to
88 .Pa /etc/settings.conf
89 to fetch packages from the European mirror:
90 .Pp
91 .Dl "BINPKG_BASE=http://chlamydia.fs.ei.tum.de/pub/DragonFly/packages"
92 .Sh SEE ALSO
93 .Xr pkg_add 1 ,
94 .Xr pkg_create 1 ,
95 .Xr pkg_delete 1 ,
96 .Xr pkg_info 1 ,
97 .Xr pkg_search 1 ,
98 .Xr pkgsrc 7
99 .Sh AUTHORS
100 .Nm
101 was written by
102 .An Simon 'corecode' Schubert Aq corecode@fs.ei.tum.de .
103 .Sh HISTORY
104 The
105 .Nm
106 utility first appeared in
107 .Dx 1.11 .