summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg.conf.5
blob: 199665f3df77b7025e3bb1f26226ba0087f6c23c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.\"	$OpenBSD: pkg.conf.5,v 1.3 2010/10/25 21:04:49 espie Exp $
.\"
.\" Copyright (c) 2010 Marc Espie
.\"
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: October 25 2010 $
.Dt PKG.CONF 5
.Os
.Sh NAME
.Nm pkg.conf
.Nd system-wide package system configuration
.Sh DESCRIPTION
The file
.Pa /etc/pkg.conf
contains system-wide options related to package handling, as a list of
.Sq keyword=value
lines.
.Pp
In particular, the base system
.Dq installation-and-update
shell scripts record the URL used for the installation as
.Ar installpath .
.Xr pkg_add 1
can then add or replace packages from the same location straight after
the install.
.Pp
Currently defined options are as follows:
.Pp
.Bl -tag -width fullkeyword -compact
.It Ar fullwidth
Set to
.Ar yes
if you really want to use the full width of the terminal for the progressmeter.
.It Ar installpath
URL to package repository updated during installation.
Used for accessing packages if the environment variable
.Ev PKG_PATH
is not defined and no further options are defined.
.It Ar nochecksum
Set to
.Ar yes
to waive MD5 checksums during package deletions.
.It Ar ntogo
Set to
.Ar yes
to display (done/total) number of package messages.
.El
.Pp
Each option uses a separate line, and follows the following template:
.Bd -literal -offset indent
keyword = value
.Ed
.Pp
A list of values can also be specified over several lines using the variation:
.Bd -literal -offset indent
keyword += value
keyword += value
\&...
.Ed
.Pp
Keywords are case-insensitive.
.Pp
Blank lines and comment lines (introduced by a #) are ignored.
.Pp
Unknown keywords are ignored.
.Sh FILES
.Pa /etc/pkg.conf
.Sh SEE ALSO
.Xr pkg_add 1 ,
.Xr pkg_create 1 ,
.Xr pkg_delete 1 ,
.Xr pkg_info 1 ,
.Xr pkg_check 8
.Sh HISTORY
The
.Nm
mechanism and format first appeared in
.Ox 4.8 .