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