Automated merge with file:/home/pmatilai/repos/rpm-whitespace
[platform/upstream/rpm.git] / rpmpopt.in
1 #/*! \page config_rpmpopt Default configuration: @RPMCONFIGDIR@/rpmpopt-@VERSION@
2 # \verbatim
3 #
4 # @RPMCONFIGDIR@/@configure_input@
5 # $Id: rpmpopt.in,v 2.39.2.2 2005/02/16 19:05:36 jbj Exp $
6 #
7 # This file *should not be modified*. Local customizations
8 # belong in /etc/popt, not here. This file will be replaced
9 # whenever a new version of RPM is installed.
10 #
11 # Note: Not all popt aliases are documented. This is a decision on my
12 # part as to which are the more important aliases. Feel free to clip
13 # a copy of the alias/exec here and place in /etc/popt or ~/.popt with
14 # your own words added. It's easier than arguing about how many options
15 # fit on the head of an executable :-)
16 #
17
18 rpm     alias --scripts --qf '\
19 %|PRETRANS?{pretrans scriptlet\
20 %|PRETRANSPROG?{ (using %{PRETRANSPROG})}|:\n%{PRETRANS}\n}:\
21 {%|PRETRANSPROG?{pretrans program: %{PRETRANSPROG}\n}|}|\
22 \
23 %|PREIN?{preinstall scriptlet\
24 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
25 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
26 \
27 %|POSTIN?{postinstall scriptlet\
28 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
29 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
30 \
31 %|PREUN?{preuninstall scriptlet\
32 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
33 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
34 \
35 %|POSTUN?{postuninstall scriptlet\
36 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
37 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
38 \
39 %|POSTTRANS?{posttrans scriptlet\
40 %|POSTTRANSPROG?{ (using %{POSTTRANSPROG})}|:\n%{POSTTRANS}\n}:\
41 {%|POSTTRANSPROG?{posttrans program: %{POSTTRANSPROG}\n}|}|\
42 \
43 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
44 ' \
45         --POPTdesc=$"list install/erase scriptlets from package(s)"
46
47 rpm     alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
48                    --pipe "grep -v \(none\) | grep '^. -L ' | sed 's/chmod .../chmod /' | sh" \
49         --POPTdesc=$"set permissions of files in a package"
50
51 rpm     alias --setugids -q --qf \
52         '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
53         --pipe "(echo 'ch() { chown -h -- \"$1\" \"$3\";chgrp -h -- \"$2\" \"$3\"; }';grep '^ch '|grep -v \(none\))|sh" \
54         --POPTdesc=$"set user/group ownership of files in a package"
55
56 rpm     alias --conflicts       --qf \
57   "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
58         --POPTdesc=$"list capabilities this package conflicts with"
59 rpm     alias --obsoletes       --qf \
60   "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
61         --POPTdesc=$"list other packages removed by installing this package"
62 rpm     alias --provides        --qf \
63   "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
64         --POPTdesc=$"list capabilities that this package provides"
65
66 rpm     alias --requires        --qf \
67   "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
68         --POPTdesc=$"list capabilities required by package(s)"
69 rpm     alias -R --requires
70
71 rpm     alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
72 Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
73 Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
74 Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
75 Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
76 Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
77 Signature   : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\
78 %|PACKAGER?{Packager    : %{PACKAGER}\n}|\
79 %|URL?{URL         : %{URL}\n}|\
80 Summary     : %{SUMMARY}\n\
81 Description :\n%{DESCRIPTION}\n' \
82         --POPTdesc=$"list descriptive information from package(s)"
83
84 rpm     alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
85         --POPTdesc=$"list change logs for this package"
86
87 rpm     alias --xml --qf '[%{*:xml}\n]' \
88         --POPTdesc=$"list metadata in xml"
89
90 rpm     alias --triggerscripts --qf '\
91 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
92 %{TRIGGERSCRIPTS}\n]'
93 rpm     alias --triggers --triggerscripts \
94         --POPTdesc=$"list trigger scriptlets from package(s)"
95
96 rpm     alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
97         --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
98         --POPTdesc=$"list package(s) by install time, most recent first"
99
100 rpm     alias --dupes   --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \
101         --POPTdesc=$"list duplicated packages"
102
103 rpm     alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
104         --POPTdesc=$"list all files from each package"
105
106 rpm     alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
107         --POPTdesc=$"list file names with classes"
108
109 rpm     alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
110         --POPTdesc=$"list file names with colors"
111
112 rpm     alias --fscontext --qf '[%{FILENAMES}\n]' \
113         --pipe "xargs ls --scontext | awk '{printf(\"%s %s\n\", $2, $1)}'" \
114         --POPTdesc=$"list file names with security context from file system"
115
116 rpm     alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
117         --POPTdesc=$"list file names with provides"
118
119 rpm     alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
120         --POPTdesc=$"list file names with requires"
121
122 rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides \
123         --POPTdesc=$"find package name that contains a provided capability (needs rpmdb-redhat package installed)"
124
125 rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires \
126         --POPTdesc=$"find package name that contains a required capability (needs rpmdb-redhat package installed)"
127
128 # colon separated i18n domains to use as PO catalogue lookaside for
129 * retrieving header group/description/summary.
130 #
131 # For Red Hat, value should be "redhat-dist:redhat-powertools".
132 rpm alias --i18ndomains --define '_i18ndomains !#:+'
133
134 # Build policies enabled from command line. Last policy applies.
135 rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+' \
136         --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \
137         --POPTargs=$"<policy>"
138
139 # Choose db interface:
140 #       0       same as 1
141 #       1       native db1 interface (e.g. linux glibc libdb1 routines).
142 #       2       native db2 interface.
143 #       3       native db3 interface.
144 #       -1      db3 -> db2 -> db1 (as available).
145 #
146 # There are two macros so that --rebuilddb can convert db1 -> db3
147 rpm alias --dbapi                --define '_dbapi !#:+'
148
149 rpm alias --rebuilddbapi         --define '_dbapi_rebuild !#:+'
150 rpm alias --rebuilddbpath        --define '_dbapath_rebuild !#:+'
151
152 #==============================================================================
153 #       [--dbpath DIRECTORY"    "use database in DIRECTORY"
154 rpm     alias --dbpath          --define '_dbpath !#:+'
155 #       [--ftpport <port>]      "port number of ftp server (or proxy)"
156 rpm     alias --ftpport         --define '_ftpport !#:+'
157 #       [--ftpproxy <host>]     "hostname or IP of ftp proxy"
158 rpm     alias --ftpproxy        --define '_ftpproxy !#:+'
159 #       [--httpport <port>]     "port number of http server (or proxy)"
160 rpm     alias --httpport        --define '_httpport !#:+'
161 #       [--httpproxy <host>]    "hostname or IP of http proxy"
162 rpm     alias --httpproxy       --define '_httpproxy !#:+'
163
164 # set the time check to <secs>
165 rpm     alias --timecheck       --define '_timecheck !#:+'
166
167 #==============================================================================
168 # Popt glue to preserve legacy CLI behavior.
169 #
170 # XXX popt exec parsing doesn't honor POPT_ARGFLAG_ONEDASH
171 # XXX Build mode aliases, removed in rpm-4.1.
172 #rpm    exec --bp               rpmb -bp
173 #rpm    exec --bc               rpmb -bc
174 #rpm    exec --bi               rpmb -bi
175 #rpm    exec --bl               rpmb -bl
176 #rpm    exec --ba               rpmb -ba
177 #rpm    exec --bb               rpmb -bb
178 #rpm    exec --bs               rpmb -bs
179 #rpm    exec --tp               rpmb -tp
180 #rpm    exec --tc               rpmb -tc
181 #rpm    exec --ti               rpmb -ti
182 #rpm    exec --tl               rpmb -tl
183 #rpm    exec --ta               rpmb -ta
184 #rpm    exec --tb               rpmb -tb
185 #rpm    exec --ts               rpmb -ts
186 #rpm    exec --rebuild          rpmb --rebuild
187 #rpm    exec --recompile        rpmb --recompile
188 #rpm    exec --clean            rpmb --clean
189 #rpm    exec --rmsource         rpmb --rmsource
190 #rpm    exec --rmspec           rpmb --rmspec
191 #rpm    exec --target           rpmb --target
192 #rpm    exec --short-circuit    rpmb --short-circuit
193
194 rpm     exec --initdb           rpmd --initdb
195 rpm     exec --rebuilddb        rpmd --rebuilddb
196 rpm     exec --verifydb         rpmd --verifydb
197
198 rpm     exec --addsign          rpmk --addsign
199 rpm     exec -K                 rpmk -K
200 rpm     exec --checksig         rpmk --checksig
201 rpm     exec --import           rpmk --import
202 rpm     exec --resign           rpmk --resign
203
204 rpm     exec -q                 rpmq -q
205 rpm     exec --query            rpmq --query
206 rpm     exec --querytags        rpmq --querytags
207 rpm     exec -V                 rpmv -V
208 rpm     exec -y                 rpmv -y
209 rpm     exec --verify           rpmv --verify
210
211 #rpm    exec -i                 rpmi -i
212 #rpm    exec --install          rpmi --install
213 #rpm    exec -U                 rpmi -U
214 #rpm    exec --upgrade          rpmi --upgrade
215 #rpm    exec -F                 rpmi -F
216 #rpm    exec --freshen          rpmi --freshen
217 #rpm    exec -e                 rpmi -e
218 #rpm    exec --erase            rpmi --erase
219
220 rpm     alias --with            --define "_with_!#:+       --with-!#:+" \
221         --POPTdesc=$"enable configure <option> for build" \
222         --POPTargs=$"<option>"
223 rpm     alias --without         --define "_without_!#:+    --without-!#:+" \
224         --POPTdesc=$"disable configure <option> for build" \
225         --POPTargs=$"<option>"
226 #==============================================================================
227 rpmb    alias --dbpath          --define '_dbpath !#:+' \
228         --POPTdesc=$"use database in DIRECTORY" \
229         --POPTargs=$"DIRECTORY"
230 rpmb    alias --ftpport         --define '_ftpport !#:+'
231 rpmb    alias --ftpproxy        --define '_ftpproxy !#:+'
232 rpmb    alias --httpport        --define '_httpport !#:+'
233 rpmb    alias --httpproxy       --define '_httpproxy !#:+'
234 rpmb    alias --timecheck       --define '_timecheck !#:+'
235 rpmb    alias --with            --define "_with_!#:+       --with-!#:+" \
236         --POPTdesc=$"enable configure <option> for build" \
237         --POPTargs=$"<option>"
238 rpmb    alias --without         --define "_without_!#:+    --without-!#:+" \
239         --POPTdesc=$"disable configure <option> for build" \
240         --POPTargs=$"<option>"
241 #==============================================================================
242 rpmbuild        alias --dbpath          --define '_dbpath !#:+' \
243         --POPTdesc=$"use database in DIRECTORY" \
244         --POPTargs=$"DIRECTORY"
245 rpmbuild alias --ftpport                --define '_ftpport !#:+'
246 rpmbuild alias --ftpproxy       --define '_ftpproxy !#:+'
247 rpmbuild alias --httpport       --define '_httpport !#:+'
248 rpmbuild alias --httpproxy      --define '_httpproxy !#:+'
249 rpmbuild alias --timecheck      --define '_timecheck !#:+'
250 rpmbuild alias --with           --define "_with_!#:+     --with-!#:+" \
251         --POPTdesc=$"enable configure <option> for build" \
252         --POPTargs=$"<option>"
253 rpmbuild alias --without        --define "_without_!#:+  --without-!#:+" \
254         --POPTdesc=$"disable configure <option> for build" \
255         --POPTargs=$"<option>"
256 #==============================================================================
257 rpmd    alias --dbpath          --define '_dbpath !#:+' \
258         --POPTdesc=$"use database in DIRECTORY" \
259         --POPTargs=$"DIRECTORY"
260 rpmd    alias --ftpport         --define '_ftpport !#:+'
261 rpmd    alias --ftpproxy        --define '_ftpproxy !#:+'
262 rpmd    alias --httpport        --define '_httpport !#:+'
263 rpmd    alias --httpproxy       --define '_httpproxy !#:+'
264 #==============================================================================
265 rpmdb   alias --dbpath          --define '_dbpath !#:+' \
266         --POPTdesc=$"use database in DIRECTORY" \
267         --POPTargs=$"DIRECTORY"
268 rpmdb   alias --ftpport         --define '_ftpport !#:+'
269 rpmdb   alias --ftpproxy        --define '_ftpproxy !#:+'
270 rpmdb   alias --httpport        --define '_httpport !#:+'
271 rpmdb   alias --httpproxy       --define '_httpproxy !#:+'
272 #==============================================================================
273 rpme    alias --dbpath          --define '_dbpath !#:+' \
274         --POPTdesc=$"use database in DIRECTORY" \
275         --POPTargs=$"DIRECTORY"
276 rpme    alias --ftpport         --define '_ftpport !#:+'
277 rpme    alias --ftpproxy        --define '_ftpproxy !#:+'
278 rpme    alias --httpport        --define '_httpport !#:+'
279 rpme    alias --httpproxy       --define '_httpproxy !#:+'
280 #==============================================================================
281 rpmi    alias --dbpath          --define '_dbpath !#:+' \
282         --POPTdesc=$"use database in DIRECTORY" \
283         --POPTargs=$"DIRECTORY"
284 rpmi    alias --ftpport         --define '_ftpport !#:+'
285 rpmi    alias --ftpproxy        --define '_ftpproxy !#:+'
286 rpmi    alias --httpport        --define '_httpport !#:+'
287 rpmi    alias --httpproxy       --define '_httpproxy !#:+'
288 #==============================================================================
289 rpmk    alias --dbpath          --define '_dbpath !#:+' \
290         --POPTdesc=$"use database in DIRECTORY" \
291         --POPTargs=$"DIRECTORY"
292 rpmk    alias --ftpport         --define '_ftpport !#:+'
293 rpmk    alias --ftpproxy        --define '_ftpproxy !#:+'
294 rpmk    alias --httpport        --define '_httpport !#:+'
295 rpmk    alias --httpproxy       --define '_httpproxy !#:+'
296 #==============================================================================
297 rpmsign alias --dbpath          --define '_dbpath !#:+' \
298         --POPTdesc=$"use database in DIRECTORY" \
299         --POPTargs=$"DIRECTORY"
300 rpmsign alias --ftpport         --define '_ftpport !#:+'
301 rpmsign alias --ftpproxy        --define '_ftpproxy !#:+'
302 rpmsign alias --httpport        --define '_httpport !#:+'
303 rpmsign alias --httpproxy       --define '_httpproxy !#:+'
304 #==============================================================================
305 rpmq    alias --dbpath          --define '_dbpath !#:+' \
306         --POPTdesc=$"use database in DIRECTORY" \
307         --POPTargs=$"DIRECTORY"
308 rpmq    alias --ftpport         --define '_ftpport !#:+'
309 rpmq    alias --ftpproxy        --define '_ftpproxy !#:+'
310 rpmq    alias --httpport        --define '_httpport !#:+'
311 rpmq    alias --httpproxy       --define '_httpproxy !#:+'
312
313 rpmq    alias --scripts --qf '\
314 %|PREIN?{preinstall scriptlet\
315 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
316 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
317 \
318 %|POSTIN?{postinstall scriptlet\
319 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
320 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
321 \
322 %|PREUN?{preuninstall scriptlet\
323 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
324 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
325 \
326 %|POSTUN?{postuninstall scriptlet\
327 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
328 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
329 \
330 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
331 ' \
332         --POPTdesc=$"list install/erase scriptlets from package(s)"
333
334 rpmq    alias --conflicts       --qf \
335   "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
336         --POPTdesc=$"list capabilities this package conflicts with"
337 rpmq    alias --obsoletes       --qf \
338   "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
339         --POPTdesc=$"list other packages removed by installing this package"
340 rpmq    alias --provides        --qf \
341   "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
342         --POPTdesc=$"list capabilities that this package provides"
343
344 rpmq    alias --requires        --qf \
345   "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
346         --POPTdesc=$"list capabilities required by package(s)"
347 rpmq    alias -R --requires
348
349 rpmq    alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
350 Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
351 Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
352 Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
353 Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
354 Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
355 Signature   : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\
356 %|PACKAGER?{Packager    : %{PACKAGER}\n}|\
357 %|URL?{URL         : %{URL}\n}|\
358 Summary     : %{SUMMARY}\n\
359 Description :\n%{DESCRIPTION}\n' \
360         --POPTdesc=$"list descriptive information from package(s)"
361
362 rpmq    alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
363         --POPTdesc=$"list change logs for this package"
364
365 rpmq    alias --xml --qf '[%{*:xml}\n]' \
366         --POPTdesc=$"list metadata in xml"
367
368 rpmq    alias --triggerscripts --qf '\
369 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
370 %{TRIGGERSCRIPTS}\n]'
371 rpmq    alias --triggers --triggerscripts \
372         --POPTdesc=$"list trigger scriptlets from package(s)"
373
374 rpmq    alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
375         --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
376         --POPTdesc=$"list package(s) by install time, most recent first"
377
378 rpmq    alias --dupes   --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \
379         --POPTdesc=$"list duplicated packages"
380
381 rpmq    alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
382         --POPTdesc=$"list all files from each package"
383
384 rpmq    alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
385         --POPTdesc=$"list file names with classes"
386
387 rpmq    alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
388         --POPTdesc=$"list file names with colors"
389
390 rpmq    alias --filecontext --qf '[%{FILENAMES}\t%{FILECONTEXTS}\n]' \
391         --POPTdesc=$"list file names with security context"
392
393 rpmq    alias --fscontext --qf '[%{FILENAMES}\t%{FSCONTEXTS}\n]' \
394         --POPTdesc=$"list file names with security context from file system"
395
396 rpmq    alias --recontext --qf '[%{FILENAMES}\t%{RECONTEXTS}\n]' \
397         --POPTdesc=$"list file names with security context from policy RE"
398
399 rpmq    alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
400         --POPTdesc=$"list file names with provides"
401
402 rpmq    alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
403         --POPTdesc=$"list file names with requires"
404
405 #==============================================================================
406 rpmquery        alias --dbpath          --define '_dbpath !#:+' \
407         --POPTdesc=$"use database in DIRECTORY" \
408         --POPTargs=$"DIRECTORY"
409 rpmquery        alias --ftpport         --define '_ftpport !#:+'
410 rpmquery        alias --ftpproxy        --define '_ftpproxy !#:+'
411 rpmquery        alias --httpport        --define '_httpport !#:+'
412 rpmquery        alias --httpproxy       --define '_httpproxy !#:+'
413
414 rpmquery        alias --scripts --qf '\
415 %|PREIN?{preinstall scriptlet\
416 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
417 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
418 \
419 %|POSTIN?{postinstall scriptlet\
420 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
421 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
422 \
423 %|PREUN?{preuninstall scriptlet\
424 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
425 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
426 \
427 %|POSTUN?{postuninstall scriptlet\
428 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
429 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
430 \
431 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
432 ' \
433         --POPTdesc=$"list install/erase scriptlets from package(s)"
434
435 rpmquery        alias --conflicts       --qf \
436   "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
437         --POPTdesc=$"list capabilities this package conflicts with"
438 rpmquery        alias --obsoletes       --qf \
439   "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
440         --POPTdesc=$"list other packages removed by installing this package"
441 rpmquery        alias --provides        --qf \
442   "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
443         --POPTdesc=$"list capabilities that this package provides"
444
445 rpmquery        alias --requires        --qf \
446   "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
447         --POPTdesc=$"list capabilities required by package(s)"
448 rpmquery        alias -R --requires
449
450 rpmquery        alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
451 Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
452 Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
453 Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
454 Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
455 Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
456 %|PACKAGER?{Packager    : %{PACKAGER}\n}|\
457 %|URL?{URL         : %{URL}\n}|\
458 Summary     : %{SUMMARY}\n\
459 Description :\n%{DESCRIPTION}\n' \
460         --POPTdesc=$"list descriptive information from package(s)"
461
462 rpmquery        alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
463         --POPTdesc=$"list change logs for this package"
464
465 rpmquery        alias --xml --qf '[%{*:xml}\n]' \
466         --POPTdesc=$"list metadata in xml"
467
468 rpmquery        alias --triggerscripts --qf '\
469 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
470 %{TRIGGERSCRIPTS}\n]'
471 rpmquery        alias --triggers --triggerscripts \
472         --POPTdesc=$"list trigger scriptlets from package(s)"
473
474 rpmquery        alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
475         --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
476         --POPTdesc=$"list package(s) by install time, most recent first"
477
478 rpmquery        alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
479         --POPTdesc=$"list all files from each package"
480
481 rpmquery        alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
482         --POPTdesc=$"list file names with classes"
483
484 rpmquery        alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
485         --POPTdesc=$"list file names with colors"
486
487 rpmquery        alias --fscontext --qf '[%{FILENAMES}\n]' \
488         --pipe "xargs ls --scontext | awk '{printf(\"%s %s\n\", $2, $1)}'" \
489         --POPTdesc=$"list file names with security context from file system"
490
491 rpmquery        alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
492         --POPTdesc=$"list file names with provides"
493
494 rpmquery        alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
495         --POPTdesc=$"list file names with requires"
496
497 #==============================================================================
498 rpmu    alias --dbpath          --define '_dbpath !#:+' \
499         --POPTdesc=$"use database in DIRECTORY" \
500         --POPTargs=$"DIRECTORY"
501 rpmu    alias --ftpport         --define '_ftpport !#:+'
502 rpmu    alias --ftpproxy        --define '_ftpproxy !#:+'
503 rpmu    alias --httpport        --define '_httpport !#:+'
504 rpmu    alias --httpproxy       --define '_httpproxy !#:+'
505 #==============================================================================
506 rpmv    alias --dbpath          --define '_dbpath !#:+' \
507         --POPTdesc=$"use database in DIRECTORY" \
508         --POPTargs=$"DIRECTORY"
509 rpmv    alias --ftpport         --define '_ftpport !#:+'
510 rpmv    alias --ftpproxy        --define '_ftpproxy !#:+'
511 rpmv    alias --httpport        --define '_httpport !#:+'
512 rpmv    alias --httpproxy       --define '_httpproxy !#:+'
513
514 # \endverbatim
515 #*/