You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+92-99Lines changed: 92 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -88,12 +88,13 @@ Available options:
88
88
makeflags: Enable makeflags (MAKEFLAGS).
89
89
90
90
### pkgbuild
91
-
`pkgbuild` is a tool to build package from ports. Is will source `spkgbuild` to get build information before creating package. Package is created into `<name>-<version>-<release>.spkg.txz` format. To build package, you need `cd` into port directory before run `pkgbuild` command.
91
+
`pkgbuild` is a tool to build package from ports. Is will source `spkgbuild` to get build information before creating package. Package is created into `<name>-<version>-<release>.spkg.xz` format. To build package, you need `cd` into port directory before run `pkgbuild` command.
92
92
93
93
Usage:
94
94
pkgbuild [ <options> <arguments> ]
95
95
96
96
Options:
97
+
-q --quiet show only status messages and errors
97
98
-i, --install install package into system
98
99
-u, --upgrade upgrade package
99
100
-r, --reinstall reinstall package
@@ -104,23 +105,19 @@ Available options:
104
105
-g, --genmdsum generate md5sum
105
106
-o, --download download only source file
106
107
-x, --extract extract only source file
108
+
-p, --pkgfiles generate list files in package
107
109
-w, --keep-work keep working directory
108
-
-l, --log log build process
109
110
-h, --help show this help message
111
+
--clean remove downloaded sources and prebuilt packages
110
112
--config=<config> use custom config file
111
113
--srcdir=<path> override directory path for sources
112
114
--pkgdir=<path> override directory path for compiled package
113
-
--logdir=<path> override directory path for build logs
114
115
--workdir=<path> override directory path for working dir
115
-
--no-preinstall skip preinstall script before install package
116
-
--no-postinstall skip postinstall script after install package
117
-
--no-preupgrade skip preupgrade script before upgrade package
118
-
--no-postupgrade skip postupgrade script after upgrade package
119
116
--no-backup skip backup configuration file when upgrading package
120
-
--redownload re-download source file
117
+
121
118
122
119
Example:
123
-
pkgbuild -iw this will build, install package and keep working directory
120
+
pkgbuild -iw this will build, install package and keep working directory
124
121
125
122
Note:
126
123
* use pkgbuild without any options will only download source and build package by using other default options
@@ -129,29 +126,26 @@ Available options:
129
126
130
127
### pkgadd
131
128
`pkgadd` is a tool to install and upgrade package created by `pkgbuild`. Install package is simply extract
132
-
`<name>-<version>-<release>.spkg.txz` by using tar into real system then save list extracted file into package `PKGDB_DIR`.
129
+
`<name>-<version>-<release>.spkg.xz` by using tar into real system then save list extracted file into package `PKGDB_DIR`.
133
130
Upgrading package is also using same extract as install, it will replace old files then compare list file from old and new
134
131
package and remove old file which not exist in new package (like Slackware pkgtool does).
135
132
136
133
Usage:
137
-
pkgadd package.spkg.txz <options>
134
+
pkgadd [ <options> <package.spkg.txz> ]
138
135
139
136
Options:
140
137
-u, --upgrade upgrade package
141
138
-r, --reinstall reinstall package
142
139
-c, --ignore-conflict ignore conflict when installing package
143
140
-v, --verbose print files installed
144
141
-h, --help show this help message
145
-
--no-preinstall skip preinstall script before build/install package
146
-
--no-postinstall skip postinstall script after install package
147
-
--no-preupgrade skip preupgrade script before upgrade package
148
-
--no-postupgrade skip postupgrade script after upgrade package
149
142
--no-backup skip backup when upgrading package
150
-
--root=<path> install to custom root directory
143
+
--print-dbdir print package database path
144
+
--root=<path> install to custom root directory
151
145
152
146
Example:
153
-
pkgadd foobar-1.0-1.spkg.txz -uc --no-backup upgrade package foobar-1.0-1 without backup its
154
-
old configuration files and skip conflict check
147
+
pkgadd foobar-1.0-1.spkg.txz -uc --no-backup upgrade package foobar-1.0-1 without backup its
148
+
old configuration files and skip conflict check
155
149
156
150
### pkgdel
157
151
`pkgdel` is a tool to remove package from system. It will read file listed in package `PKGDB_DIR` and remove it.
@@ -162,8 +156,6 @@ package and remove old file which not exist in new package (like Slackware pkgto
162
156
Options:
163
157
-h, --help show this help message
164
158
-v, --verbose print removed files
165
-
--no-preremove don't run pre-remove script
166
-
--no-postremove don't run post-remove script
167
159
--root=<path> remove package from custom root directory
168
160
169
161
Example:
@@ -175,78 +167,74 @@ pkgadd to install package into system. Its also has some extra functions like se
175
167
orphan package, duplicate ports, list installed package and etc. Run `scratch help` to see available functions.
176
168
177
169
Usage:
178
-
scratch [ mode ] [ <pkgname> <options> ]
179
-
180
-
mode:
181
-
install <packages> install packages and its dependencies
182
-
upgrade <packages> upgrade packages and install new dependencies (if any)
183
-
build <package> build only packages
184
-
remove <packages> remove packages in system
185
-
depends <package> show depends of a package
186
-
deplist <packages> show list dependencies of a package
187
-
search <pattern> search packages in port's repos
188
-
lock <packages> lock packages from upgrade
189
-
unlock <packages> unlock packages from upgrade
190
-
listport <repo> list ports of a repo
191
-
cat <package> view a package build scripts
192
-
dependent <package> show package's dependent
193
-
own <file> show package's owner of file
194
-
pkgtree <package> show list files of installed package
195
-
path <package> show package's buildscripts path
196
-
sync update port's repo
197
-
sysup full system update
198
-
dup print duplicate ports in repo
199
-
readme print readme file if exist
200
-
listinst list installed package in system
201
-
listorphan list orphan package
202
-
integrity check integrity of package's files
203
-
outdate check for outdate packages
204
-
cache print leftover cache
205
-
rmcache remove leftover cache
206
-
missingdep check for mising dependency of installed package
207
-
foreignpkg print package installed without port in repo
208
-
listlocked print locked packages
209
-
help print this help message
210
-
211
-
options for:
212
-
build
213
-
-f, --force-rebuild force rebuild
214
-
-m, --skip-mdsum skip md5sum check for sources
215
-
-d, --no-dep skip dependency check
216
-
-e, --extract extract only
217
-
-w, --keep-work keep woring directory
218
-
-o, --download download source files only
219
-
--redownload re-download source files
220
-
--srcdir=<path> override default SOURCE_DIR
221
-
--pkgdir=<path> override default PACKAGE_DIR
222
-
--no-preinstall skip pre-install script
223
-
224
-
install
225
-
-d, --no-dep skip installing dependencies
226
-
-c, --ignore-conflict skip file conflict check
227
-
-r, --reinstall reinstall installed package
228
-
-v, --verbose print install process
229
-
--no-preinstall skip pre-install script
230
-
--no-postinstall skip post-install script
231
-
232
-
upgrade
233
-
-d, --no-dep skip installing dependencies (new dependencies)
locate <file> print location of file in ports repo
213
+
isinstalled <port> check whether port is installed (status 0=installed, 1=not installed)
214
+
purge [ports] remove installed ports and its orphan dependencies
215
+
world [ports] print/add/remove world list
216
+
sync update ports database
217
+
outdate print outdated ports
218
+
cache print and clear old pkg and src caches
219
+
integrity check installed port integrity
220
+
dup print duplicate ports in repo
221
+
installed print all installed ports
222
+
missingdep print missing dependencies
223
+
orphan print orphan installed ports
224
+
foreign print foreign ports
225
+
printconfig <opts> print scratchpkg configs
226
+
help print this help msg
227
+
228
+
Global options:
229
+
--append-repo=<repo path> append custom local repo path (can use multiple times)
230
+
--prepend-repo=<repo path> prepend custom local repo path (can use multiple times)
231
+
--override-repo=<repo path> override repo in /etc/scratchpkg.repo with custom local repo (can use multiple times)
232
+
--repo-file=<repo file> use custom repo file (default: /etc/scratchpkg.repo)
233
+
--config-file=<config file> use custom config file (default: /etc/scratchpkg.conf)
234
+
--alias-file=<alias file> use custom alias file (default: /etc/scratchpkg.alias)
235
+
--mask-file=<mask file> use custom mask file (default: /etc/scratchpkg.mask)
236
+
--nocolor disable colour for output
237
+
250
238
Example:
251
239
scratch install firefox gvfs -cv build and install required dependencies and target package itself,
252
240
ignore file conflict check and be verbose.
@@ -258,8 +246,8 @@ orphan package, duplicate ports, list installed package and etc. Run `scratch he
258
246
Extra tools is some scripts come with scratchpkg to help users do things more easier. More extra scripts may added from time to
259
247
time.
260
248
261
-
*`vchroot`: Chroot script.
262
-
*`pkglibdepends`: Script to list package depends by shared libraries.
249
+
*`xchroot`: Chroot script.
250
+
*`pkgdepends`: Script to list package depends by shared libraries.
263
251
*`portcreate`: Script to create template port.
264
252
*`updateconf`: Script to update configuration files (*.spkgnew).
265
253
*`revdep`: A reverse dependency script (like in Gentoo and CRUX, but my version), need to run after upgrade and remove package to check broken package(s). Specify package name if want to check single package only.
@@ -315,11 +303,16 @@ Example of install script for `dbus`:
0 commit comments