Updating pkg_radd man page, pkg_search to reflect new config file.
[dragonfly.git] / usr.bin / pkg_radd / pkg_radd.1
CommitLineData
642f1a42
MS
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.\"
a0c8e3dd 30.Dd September 25, 2010
642f1a42
MS
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
41acts as a wrapper for
42.Xr pkg_add 1 .
43It sets the
44.Ev PKG_PATH
45variable to the
46.Dx
47default
48.Xr pkgsrc 7
22904266 49binary package server or uses the global
2d6e207e 50.Pa /etc/pkg_radd.conf
22904266
SS
51config file to calculate
52.Ev PKG_PATH .
53In
2d6e207e 54.Pa /etc/pkg_radd.conf ,
22904266
SS
55set
56.Ev BINPKG_BASE
57to your favorite binary packages mirror URL to allow
58.Nm
59to automatically retrieve the latest set of binary packages for your
60.Dx
61release.
62If you want to use a specific set of packages, set
63.Ev BINPKG_SITES
64instead.
65.Pp
642f1a42
MS
66All options passed to
67.Nm
68are passed to
69.Xr pkg_add 1 .
70.Sh EXAMPLES
71The following is an example of a typical usage of the
72.Nm
73command:
74.Pp
75.Dl "# pkg_radd host"
76.Pp
77If you don't know which version of your desired package to install you can
78use
79.Xr pkg_search 1
80to find the correct version.
81.Pp
82.Dl "# pkg_search fvwm2"
83.Dl "# pkg_radd -v fvwm-2.4.20nb1"
22904266 84.Pp
a0c8e3dd
MS
85If you add the following line
86.Pp
87.Dl "BINPKG_BASE=http://mirror-master.dragonflybsd.org/packages"
22904266 88.Pp
a0c8e3dd 89to
2d6e207e 90.Pa /etc/pkg_radd.conf ,
a0c8e3dd
MS
91.Nm
92fetches packages from the main
93.Dx
94server.
95If possible, replace the entry with one of the mirrors as listed in
96.Pa http://www.dragonflybsd.org/mirrors/ .
642f1a42
MS
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
642f1a42
MS
104.Sh HISTORY
105The
106.Nm
107utility first appeared in
108.Dx 1.11 .
a68e0df0
SW
109.Sh AUTHORS
110.Nm
111was written by
112.An Simon 'corecode' Schubert Aq corecode@fs.ei.tum.de .