-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathQuickHelp.txt
340 lines (256 loc) · 10.8 KB
/
QuickHelp.txt
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
---------------------------
aptU - update package and all it requires
Usage: aptU [-v] [-l] [package(s)]
Options:
-v verbose
-l print list of required packages
---------------------------
dmake [-t] [-p] - make with distcc using (distributed build)
-p run in plain mode (without pump)
-t run test compiler via ssh for build hosts
---------------------------
emkimage - run make in mkimage-profiles
Usage: emkimage [-b p7] <target>
---------------------------
estrlist developed for string list operations. See also cut, join, paste...
Usage: bin/estrlist <command> [args]
Commands:
strip_spaces [args] - remove spaces between words
filter_strip_spaces - remove spaces from words from standart input
reg_remove <PATTERN> [word list] - remove words containing a match to the given PATTERN (grep notation)
reg_wordremove <PATTERN> [word list] - remove words containing a match to the given PATTERN (grep -w notation)
exclude <list1> [list2] - print list2 words contains also in list1
reg_exclude <PATTERN> [word list] - print only words not matched with PATTERN
reg_wordexclude <PATTERN> [word list] - print only words not matched with PATTERN
has <PATTERN> string - check the string for a match to the regular expression given in PATTERN (grep notation)
match <PATTERN> string - check the string for a match to the regular expression given in PATTERN (egrep notation)
union [word list] - sort and remove duplicates
uniq [word list] - alias for union
list [word list] - just list words line by line
count [word list] - print word count
Examples:
$ bin/estrlist reg_remove "1." "11 12 21 22"
21 22
$ bin/estrlist reg_wordremove "1." "11 12 21 22"
21 22
$ bin/estrlist exclude "1 3" "1 2 3 4"
2 4
$ bin/estrlist reg_exclude "22 1." "11 12 21 22"
21
$ bin/estrlist reg_wordexclude "wo.* er" "work were more else"
were more else
$ bin/estrlist union "1 2 2 3 3" ""
1 2 3
$ bin/estrlist count "1 2 3 4 10" ""
5
$ bin/estrlist has "ex" "exactly"
TRUE
$ bin/estrlist has "exo" "exactly"
FALSE
$ bin/estrlist match "M[0-9]+" "M250"
TRUE
$ bin/estrlist match "M[0-9]+" "MI"
FALSE
---------------------------
gacl - acl control for gear repo in git.eter
Usage: gacl [GIRAR] [-b REPONAME] [package] command [params]
Options:
GIRAR git.alt or git.eter
-b REPONAME binary repository name (4.1, p5, t6 and so on) (sisyphus by default)
Commands:
add USER add new user to ACL list for package
del USER del user from ACL list for package
show show current ACL list
Examples:
gacl package add newuser
gacl package del newuser
gacl -b p6 package show
Examples for git project from current dir:
gacl add newuser
gacl -b p6 show
---------------------------
gammit - make commit with description from last changelog entry in spec
Use: gammit
---------------------------
grpmbph - multi repo rpmbsh analogue (build packages in hasher)
Usage: grpmbph [GIRAR] package1... package2...
---------------------------
grpmbs - multi repo rpmbs analogue (build packages via girar)
Run in dir contains subdirs
Usage: grpmbs [GIRAR] [-a|-u] [-f] package1... package2...
Options:
-a build all packages in one task
-u build packages separately (one package per task)
-f force set tags (see rpmbs)
---------------------------
grpmbsh - multi repo rpmbsh analogue (build packages in hasher)
Usage: grpmbsh [GIRAR] package1... package2...
---------------------------
jmake - make with ccache using and parallel build enabled
---------------------------
loginhsh - install package in hasher / take shell
Usage: [-t -i -h -r -c -b -i] [package name] [package file bin.rpm] ...
Options:
-i initialize hasher
-b REPONAME binary repository name (4.1, p5, t6 and so on)
-c cleanup hasher
-q quiet mode (don't run anything)
-r run command
-o log in as root user
-v verbose
-x allow run X program (set DISPLAY and install xauth)
-t use test hasher dir (different to usual build dir)
Extra options:
-a auto test mode for post myhsh build checking
-d print hasher dir
-M?? binary repository name (obsoleted)
---------------------------
---------------------------
myhsh - build package via hasher
Usage: [-i -c -l] src.rpm...
Options:
-i install built packages in test hasher
-c build without stuff (without previous built packages)
-l lazy cleanup (before build, not after)
---------------------------
rpmbb (Build Binary) - build binary rpm from spec or from git
Usage: rpmbb [-c -p -i -r -R] [spec]
Options:
-i skip build stage, but do install files and package it
-p packaging only stage
-r find build requires (run buildrequires)
-R find build requires during install (run buildrequires with -bi)
Ext. options:
-c start from compile stage
-d build with dmake
---------------------------
rpmbph (BackPort and Hasher) - backports spec and rebuild it
Usage: [-r -u -U -n -i -m -v -q] [-M70] [-b REPONAME] spec...
Usage: rpmbph [GIRAR] -b p7 for backport to ALT Linux p7 and so on
Options:
-u sign and upload after build
-n do not build in hasher
-i install built packages in test hasher
-b REPONAME binary repository name (4.1, p5, t6 and so on)
Ext. options:
-v more verbose
-q quiet
Examples:
$ rpmbph -b p6 -n -u - backport to p6 and ask to build it
---------------------------
rpmbs (Build Source) - run git repo build or make src.rpm from spec
Usage: [GIRAR] [-s|-t|-u|-a|-A|-c] [-o -z -n -p --nodeps] [-k [TARGETDIR]] [spec or src.rpm]...
Options:
-u sign and run gear build task after build
-a TASK | -A sign package(s)/repo, push/upload it and add to (shared) task TASK
-p POCKET build package in POCKET (supported on git.etersoft.ru only)
-b REPONAME binary repository name (4.1, p5, t6 and so on)
Ext. options:
-c only sign package(s) with checking
-f force operation (overwrite tag)
-s sign package(s) (and move it to dir ETERDESTSRPM if defined)
-t set tag with sign
-n do not check with sisyphus_check before upload
-o create nosrc.rpm package
-z create src.rpm with compatible gzip compression (obsoleted)
---------------------------
rpmbsh (Build Source in the Hasher) - build [from] source; use hasher
Usage: [-r -s -u -m -i -c] [-f] [spec or src.rpm]...
Options:
-u sign and run gear build task after build
-i install built packages in test hasher (via loginhsh -t)
-f force tag set (see rpmbs --help)
Ext. options:
-c build without stuff (without previous built packages)
-s sign (and move to dir ETERDESTSRPM if defined) after build
-t make temporary commit before build (rpmbb like behavior)
-l lazy cleanup (clean before build, not after)
---------------------------
rpmbugs - open bugs in BROWSER
rpmbugs [-t] [spec] | bug number | package name | -qf command_name | /path/to/file
Options:
-t list in text console
---------------------------
rpmcs (Cleanup Spec) - cleanup spec (like cleanup_spec command)
Usage: rpmcs [--skip-reqs] [specfile]
spec file can be autodetected from git repo
specfile - spec file (copy will be saved as specfile~)
--skip-reqs do not replace requires
---------------------------
rpmgp (Get Package) - various package download operations
Usage: rpmgp [GIRAR/remote alias] [options] [-b p7] [system] pkgname
pkgname - installed package name or src.rpm
system - name of system (ALT Linux by default if -a missed)
Options:
-a search pkgname in all known repositories
-b REPONAME binary repository name (4.1, p5, t6 and so on)
-c check if this package exists in the ALT Linux repository
-d download all matched packages
-g clone last built package repo
-gp clone last built package repo via public access
-gm remote clone repo to USER/packages and clone it locally
-m migrate to gear from spec/srpm
Ext. options:
-i install packages needed for build (use epm)
-l list packages needed for build (in local pkg system notation) (experimental)
-r refresh package list (download it again)
-p force use public access to the git repo
-s list all known remote repositories
---------------------------
rpmgs (Get Source) - get sources by spec / repository
Usage: [-a -f ] [spec] [new_version]
You can run 'rpmgs 1.2' for set new version 1.2 and download it
Options:
-a get all source (not only Source|Source0)
-f force download (remove source file before download)
---------------------------
rpmlog - update version/release and changelog
Usage: rpmlog [-q] [-r|-s|-v] [-l|-t] [-e [changelog entry]] [SPEC] [fromTAG] [toTAG]
Options:
-v increment version
-r increment release
-s increment subrelease
-l add changelog from git log (since last release tag or TAG)
-e increment and add (empty) changelog entry
Ext. options:
-t test run (without change files and repo)
-q quiet mode (do not ask anything)
Example:
$ rpmlog -v -l - typical build new version
$ rpmlog -r -l HEAD~2 - build new version with last two commit message as changelog
$ rpmlog -r -e - prepare new version build with empty changelog entry
$ rpmlog -r -e 'new build' - prepare new version build with changelog entry 'new build'
---------------------------
rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm
Usage: rpmpub [-f] [-r PROJECTVERSION ] [SPEC] [TARGETDIR]
Options:
-f force set tag
-s skip set tag
-r PROJECTVERSION set other project version (PROJECTVERSION/sources)
TARGETDIR copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)
By default used path from Source: spec field.
Also you can set default target dir in ETERDESTSRPM variable.
---------------------------
rpmrb (Re Build) - update spec to vermajor.verminor version, build %rel release
Usage: rpmrb [spec] [vermajor][.verminor] [rel]
Example:
$ rpmrb [name.spec] 22.6 alt2
$ rpmrb 1.2.3
---------------------------
rpmreqs [package(s) file(s)] - print out package requires
---------------------------
rpmunmets - tests unmets in build packages
Usage: [-M70] [-s]
Options:
-s - get all unmets
-M70 - test for distro ALT Linux M70
---------------------------
rpmurl - open package Url in the default browser
Usage: [-c -f -p -s] [spec]
Options:
-p open package page on http://packages.altlinux.org
-c check if package URL is accessible
-t just print URL
-s open package source dir in the default browser (for spec / git repo only
Ext. options:
-f print failed URL only