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