322b79471104db92cff20b7a8d70b69c489b21b9
[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 .Dd February 6, 2011
31 .Dt PKG_RADD 1
32 .Os
33 .Sh NAME
34 .Nm pkg_radd
35 .Nd installs packages
36 .Sh SYNOPSIS
37 .Nm
38 .Ar package ...
39 .Sh DESCRIPTION
40 .Nm
41 acts as a wrapper for
42 .Xr pkg_add 1 .
43 It sets the
44 .Ev PKG_PATH
45 variable to the
46 .Dx
47 default
48 .Xr pkgsrc 7
49 binary package server or uses the global
50 .Pa /etc/pkg_radd.conf
51 config file to calculate
52 .Ev PKG_PATH .
53 In
54 .Pa /etc/pkg_radd.conf ,
55 set
56 .Ev BINPKG_BASE
57 to your favorite binary packages mirror URL to allow
58 .Nm
59 to automatically retrieve the latest set of binary packages for your
60 .Dx
61 release.
62 If you want to use a specific set of packages, set
63 .Ev BINPKG_SITES
64 instead.
65 .Pp
66 All options passed to
67 .Nm
68 are passed to
69 .Xr pkg_add 1 .
70 .Sh EXAMPLES
71 The following is an example of a typical usage of the
72 .Nm
73 command:
74 .Pp
75 .Dl "# pkg_radd host"
76 .Pp
77 If you don't know which version of your desired package to install you can
78 use
79 .Xr pkg_search 1
80 to find the correct version.
81 .Pp
82 .Dl "# pkg_search fvwm2"
83 .Dl "# pkg_radd -v fvwm-2.4.20nb1"
84 .Pp
85 If you add the following line
86 .Pp
87 .Dl "BINPKG_BASE=http://mirror-master.dragonflybsd.org/packages"
88 .Pp
89 to
90 .Pa /etc/pkg_radd.conf ,
91 .Nm
92 fetches packages from the main
93 .Dx
94 server.
95 If possible, replace the entry with one of the mirrors as listed in
96 .Pa http://www.dragonflybsd.org/mirrors/ .
97 .Sh SEE ALSO
98 .Xr pkg_add 1 ,
99 .Xr pkg_create 1 ,
100 .Xr pkg_delete 1 ,
101 .Xr pkg_info 1 ,
102 .Xr pkg_search 1 ,
103 .Xr pkgsrc 7
104 .Sh HISTORY
105 The
106 .Nm
107 utility first appeared in
108 .Dx 1.11 .
109 .Sh AUTHORS
110 .Nm
111 was written by
112 .An Simon 'corecode' Schubert Aq Mt corecode@fs.ei.tum.de .