-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg_update.1
164 lines (163 loc) · 4.26 KB
/
pkg_update.1
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
.\" $Id$
.TH PKG_UPDATE 1 "April 2017" "FreeBSD" "User Manuals"
.SH NAME
pkg_update \- Easy handling of jailed packages builds.
.SH SYNOPSIS
.TP
.B pkg_update [command] ...
.SH DESCRIPTION
.B pkg_update
is a script to handle an clean jail for package-builds.
.SH ARGUMENTS
.TP
.B update-ports
Start "make update" for the ports tree.
.TP
.B update-pkg
Force rebuild of pkg tools.
.TP
.B repo
Force rebuild of pkg repo.
.TP
.B make-packages
Builds a port and its dependencies in a clean /usr/local.
You should not run this on a server with configuration.
Existing packages are used.
Extra files in "${PREFIX}" are detected and reported.
The default list of ports is "data/make-packages.${hostname}"
.TP
.B clean-distfiles
Checks all distinfo files and moves the disfiles not found
to "/usr/ports/distfiles/Old/".
.TP
.B merge-distfiles
Copy all disfiles found that do not yet exist on the master
directory "/media/ports/distfiles/".
.TP
.B clean-packages
Find packages thar are obsolete or have changed depedencies and move them out of the way
to "/usr/ports/packages/Old/".
.TP
.B pkg_update clean-openssl-packages
Find packages that use openssl and move them out of the way
.TP
.B full-update-jail
Do full update cycle:
.br
1. "update-ports" to update the ports tree
.br
2. "clean-distfiles" to keep only good packages
.br
3. "clean-packages" to keep only good packages
.br
4. remove all old error logs
.br
5. "make-packages" to rebuild missing packages
.TP
.B full-update-jail retry
Skip "update-ports" and procced as above.
.TP
.B fetch-distfiles
Fetch distfiles for list of ports.
.TP
.B fetch-recursive-distfiles
Fetch distfiles for list of ports and their dependecies.
.TP
.B fix-moved-ports
Check installed packages for moved ports.
Then register the new dir in the old installed package.
.TP
.B add-packages
Build a missing port and its missing dpendencies
/usr/local is not deleted, on success the port is installed.
Existing packages will be used.
.TP
.B list-installed-ports
List all installed ports.
.TP
.B show-version-list
List installed packages that are not in correct version.
.TP
.B show-packages
List build packages or report missing for each port
recorded in "data/install-packages.${hostname}".
.TP
.B check-installed-ports
Compare the list of installed ports with the list
recorded in data/install-packages.${hostname}".
.TP
.B show-missing-packages
Warn if no package is found for each port
recorded in "data/install-packages.${hostname}"
.TP
.B show-missing-installed
List build packages or report missing for each port
installed on this host.
.TP
.B check-update
1. check-installed-ports
.br
2. show-missing-packages
.br
3. show-missing-installed
.TP
.B clean
Clean all cached information.
.TP
.B make-version-list
Make new list of packages that are not in correct version.
.TP
.B make-deinstall-list
Make new list of ports that are not in correct version
and create a script "deinstall.${hostname}" to deinstall
all the old ports and the dependend ports in order.
.TP
.B check-reinstall
For each package deleted by "make-deinstall-list" warn
if no new package is found.
.TP
.B reinstall
For each package deleted by "make-deinstall-list" try
to install the new package if it exists.
.TP
.B install-packages
For each port recorded in "data/install-packages.${hostname}"
try to to install the new package if it exists.
.TP
.B show-missing-reinstall
For each port recorded from "make-deinstall-list" warn
if no new package is found.
.TP
.B clean-reinstall
For each port recorded from "make-deinstall-list",
keep only the ports that have no package installed.
.TP
.B deinstall-packages
For each port recorded in "data/install-packages.${hostname}"
try to to deinstall the installed port.
.SH "IMPLEMENTATION NOTES"
This script uses only /bin/sh and it does not need an INDEX file.
.SH RETURN VALUES
undefined.
.SH "FILES"
.TP
.B /usr/ports/local/update/data/
Default location for configuration and varaible data.
.TP
.B /usr/ports/local/update/log-${hostname}
Default location for logsfiles.
.TP
.B /media/ports/distfiles/
Optional location lor a central hostng of distfiles.
.SH "EXAMPLES"
.B pkg_update full-update-jail
.SH "SEE ALSO"
.TP
.B pkg_jail(1)
The tool to create and run the jail.
.SH "HISTORY"
http://www.dinoex.net/training/package.html
.TP
http://www.dinoex.net/training/package2.html
.SH "AUTHOR"
Dirk Meyer, [email protected]