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