-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
164 lines (120 loc) · 5.77 KB
/
index.html
File metadata and controls
164 lines (120 loc) · 5.77 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Pkgtools by pkgtools</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1>Pkgtools</h1>
<p>FreeBSD ports and packages management app</p>
<p class="view"><a href="https://github.com/pkgtools/pkgtools">View the Project on GitHub <small>pkgtools/pkgtools</small></a></p>
<ul>
<li><a href="https://github.com/pkgtools/pkgtools/zipball/master">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/pkgtools/pkgtools/tarball/master">Download <strong>TAR Ball</strong></a></li>
<li><a href="https://github.com/pkgtools/pkgtools">Fork On <strong>GitHub</strong></a></li>
</ul>
</header>
<section>
<h1>PKGTOOLS</h1>
<h2>Installation.</h2>
<p>You need to install the following ports to use these pkgtools:</p>
<ul>
<li>
<code>lang/ruby18</code> -- Ruby 1.8 interpreter, or</li>
<li>
<code>lang/ruby19</code> -- Ruby 1.9 interpreter.</li>
</ul><p>If you want to be able to run tests, you will also need to install
devel/ruby-testunit.</p>
<h2>Tools included.</h2>
<h3>portupgrade</h3>
<p>Portupgrade is a tool to upgrade installed packages via ports or
packages. It allows you to upgrade installed packages without having
to reinstall dependent/required packages by directly adjusting the
package database located under /var/db/pkg, while it can also upgrade
packages recursively.</p>
<p>Example: <code>portupgrade gtk</code>.</p>
<h3>portinstall</h3>
<p>Portinstall is equivalent to `portupgrade -N', which means it tries to
install the latest version when a specified package is not installed.
Prior to the installation of a new package, all the required packages
are upgraded.</p>
<p>Example: <code>portinstall shells/zsh</code>.</p>
<h3>portversion</h3>
<p>Portversion is a tool to compare the versions of install packages with
those in the ports tree. It is a replacement for pkg_version(1)
cooperative with portupgrade, that is, the command output is optimized
for portupgrade. Besides, it runs much faster than pkg_version(1)
because it utilizes the prebuilt ports database. (See portsdb)</p>
<p>Example: <code>portversion</code>.</p>
<h3>portsdb</h3>
<p>Portsdb generates the ports database named INDEX.db from the ports
INDEX file. It is commonly used among the tool suite and
automatically updated on demand when it gets older than the ports
INDEX file.</p>
<p>Example: <code>portsdb -Uu</code>.</p>
<h3>ports_glob</h3>
<p>Ports_glob expands ports globs. It understands wildcards and is
capable of listing the required, dependent or master ports of a given
port. It would be handy to use from within a shell script.</p>
<p>Example: <code>ports_glob '*/*firefox*'</code>.</p>
<h3>pkg_fetch</h3>
<p>Pkg_fetch is a tool to download binary packages from remote sites. It
can optionally download packages recursively through dependencies.</p>
<p>Example: <code>pkg_fetch -r sawfish</code>.</p>
<h3>pkg_glob</h3>
<p>Pkg_glob expands package globs. It understands wildcards and is
capable of listing the required or dependent packages of a package.
It would be handy to use from within a shell script.</p>
<p>Example: <code>pkg_glob -R gnome</code>.</p>
<h3>pkg_deinstall</h3>
<p>Pkg_deinstall is a wrapper/replacement of pkg_delete(1), which
understands wildcards and is capable of recursing through
dependencies. It has an option to preserve shared libraries.</p>
<p>Example: <code>pkg_deinstall -r xmms</code>.</p>
<h3>pkgdb</h3>
<p>Pkgdb creates and updates the packages database which is commonly used
among the tool suite. It keeps a hash that maps an installed file to
a package name, a hash that maps a package to an origin, and a list of
installed packages. The database file is automatically updated on
demand when any package is installed or deinstalled after the database
was last updated.</p>
<p>Example: <code>pkgdb -u</code>.</p>
<p>Pkgdb also works as an interactive tool for fixing the package
registry database when -F is specified. It helps you resolve stale
dependencies, unlink cyclic dependencies, complete stale or missing
origins, and remove duplicates. You have to run this periodically so
that portupgrade and other tools can work effectively and unfailingly.</p>
<p>Example: <code>pkgdb -Fv</code>.</p>
<h3>pkg_which</h3>
<p>Pkg_which inquires of the packages database which package each given
file came from. If you do not have permission to update the database
although it is outdated, it delegates tasks to pkg_info(1).</p>
<p>Example: <code>pkg_which patgen</code>.</p>
<h3>portsclean</h3>
<p>Portsclean is a tool to clean ports working directories, no longer
referenced distfiles, outdated package files, and/or obsolete and
orphan shared libraries.</p>
<p>Example: <code>portsclean -Di</code>.</p>
<h3>portcvsweb</h3>
<p>Portcvsweb is a tool to instantly browse a history of a given file via
CVSweb. It may be more useful than you expect. Try it with src, www,
doc, NetBSD pkgsrc, and OpenBSD ports files. :)</p>
<p>Example: <code>portcvsweb sysutils/portupgrade</code>.</p>
</section>
<footer>
<p>This project is maintained by <a href="https://github.com/pkgtools">pkgtools</a></p>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>
</body>
</html>