1 #/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/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 %|PREIN?{preinstall scriptlet\
17 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
18 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
20 %|POSTIN?{postinstall scriptlet\
21 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
22 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
24 %|PREUN?{preuninstall scriptlet\
25 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
26 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
28 %|POSTUN?{postuninstall scriptlet\
29 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
30 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
32 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
34 --POPTdesc=$"list install/erase scriptlets from package(s)"
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"
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"
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"
55 rpm alias --requires --qf \
56 "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
57 --POPTdesc=$"list capabilities required by package(s)"
58 rpm alias -R --requires
60 rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\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)"
73 rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
74 --POPTdesc=$"list change logs for this package"
76 rpm alias --triggerscripts --qf '\
77 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
79 rpm alias --triggers --triggerscripts \
80 --POPTdesc=$"list trigger scriptlets from package(s)"
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"
86 rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
87 --POPTdesc=$"list all files from each package"
89 rpm alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
90 --POPTdesc=$"list file names with classes"
92 rpm alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
93 --POPTdesc=$"list file names with colors"
95 rpm alias --filecontext --qf '[%{FILENAMES}\t%{FILECONTEXTS}\n]' \
96 --POPTdesc=$"list file names with security context from header"
98 rpm alias --fscontext --qf '[%{FILENAMES}\t%{FSCONTEXTS}\n]' \
99 --POPTdesc=$"list file names with security context from file system"
101 rpm alias --recontext --qf '[%{FILENAMES}\t%{RECONTEXTS}\n]' \
102 --POPTdesc=$"list file names with security context from policy RE"
104 rpm alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
105 --POPTdesc=$"list file names with provides"
107 rpm alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
108 --POPTdesc=$"list file names with requires"
110 rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides \
111 --POPTdesc=$"find package name that contains a provided capability (needs rpmdb-redhat package installed)"
113 rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires \
114 --POPTdesc=$"find package name that contains a required capability (needs rpmdb-redhat package installed)"
116 # colon separated i18n domains to use as PO catalogue lookaside for
117 * retrieving header group/description/summary.
119 # For Red Hat, value should be "redhat-dist:redhat-powertools".
120 rpm alias --i18ndomains --define '_i18ndomains !#:+'
122 # Build policies enabled from command line. Last policy applies.
123 rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+' \
124 --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \
125 --POPTargs=$"<policy>"
127 # Choose db interface:
129 # 1 native db1 interface (e.g. linux glibc libdb1 routines).
130 # 2 native db2 interface.
131 # 3 native db3 interface.
132 # -1 db3 -> db2 -> db1 (as available).
134 # There are two macros so that --rebuilddb can convert db1 -> db3
135 rpm alias --dbapi --define '_dbapi !#:+'
137 rpm alias --rebuilddbapi --define '_dbapi_rebuild !#:+'
138 rpm alias --rebuilddbpath --define '_dbapath_rebuild !#:+'
140 #==============================================================================
141 # [--dbpath DIRECTORY" "use database in DIRECTORY"
142 rpm alias --dbpath --define '_dbpath !#:+'
143 # [--ftpport <port>] "port number of ftp server (or proxy)"
144 rpm alias --ftpport --define '_ftpport !#:+'
145 # [--ftpproxy <host>] "hostname or IP of ftp proxy"
146 rpm alias --ftpproxy --define '_ftpproxy !#:+'
147 # [--httpport <port>] "port number of http server (or proxy)"
148 rpm alias --httpport --define '_httpport !#:+'
149 # [--httpproxy <host>] "hostname or IP of http proxy"
150 rpm alias --httpproxy --define '_httpproxy !#:+'
152 # set the time check to <secs>
153 rpm alias --timecheck --define '_timecheck !#:+'
155 #==============================================================================
156 # Popt glue to preserve legacy CLI behavior.
158 # XXX popt exec parsing doesn't honor POPT_ARGFLAG_ONEDASH
159 # XXX Build mode aliases, removed in rpm-4.1.
160 #rpm exec --bp rpmb -bp
161 #rpm exec --bc rpmb -bc
162 #rpm exec --bi rpmb -bi
163 #rpm exec --bl rpmb -bl
164 #rpm exec --ba rpmb -ba
165 #rpm exec --bb rpmb -bb
166 #rpm exec --bs rpmb -bs
167 #rpm exec --tp rpmb -tp
168 #rpm exec --tc rpmb -tc
169 #rpm exec --ti rpmb -ti
170 #rpm exec --tl rpmb -tl
171 #rpm exec --ta rpmb -ta
172 #rpm exec --tb rpmb -tb
173 #rpm exec --ts rpmb -ts
174 #rpm exec --rebuild rpmb --rebuild
175 #rpm exec --recompile rpmb --recompile
176 #rpm exec --clean rpmb --clean
177 #rpm exec --rmsource rpmb --rmsource
178 #rpm exec --rmspec rpmb --rmspec
179 #rpm exec --target rpmb --target
180 #rpm exec --short-circuit rpmb --short-circuit
182 rpm exec --initdb rpmd --initdb
183 rpm exec --rebuilddb rpmd --rebuilddb
184 rpm exec --verifydb rpmd --verifydb
186 rpm exec --addsign rpmk --addsign
188 rpm exec --checksig rpmk --checksig
189 rpm exec --import rpmk --import
190 rpm exec --resign rpmk --resign
193 rpm exec --query rpmq --query
194 rpm exec --querytags rpmq --querytags
197 rpm exec --verify rpmv --verify
200 #rpm exec --install rpmi --install
202 #rpm exec --upgrade rpmi --upgrade
204 #rpm exec --freshen rpmi --freshen
206 #rpm exec --erase rpmi --erase
208 rpm alias --with --define "_with_!#:+ --with-!#:+" \
209 --POPTdesc=$"enable configure <option> for build" \
210 --POPTargs=$"<option>"
211 rpm alias --without --define "_without_!#:+ --without-!#:+" \
212 --POPTdesc=$"disable configure <option> for build" \
213 --POPTargs=$"<option>"
214 #==============================================================================
215 rpmb alias --dbpath --define '_dbpath !#:+' \
216 --POPTdesc=$"use database in DIRECTORY" \
217 --POPTargs=$"DIRECTORY"
218 rpmb alias --ftpport --define '_ftpport !#:+'
219 rpmb alias --ftpproxy --define '_ftpproxy !#:+'
220 rpmb alias --httpport --define '_httpport !#:+'
221 rpmb alias --httpproxy --define '_httpproxy !#:+'
222 rpmb alias --timecheck --define '_timecheck !#:+'
223 rpmb alias --with --define "_with_!#:+ --with-!#:+" \
224 --POPTdesc=$"enable configure <option> for build" \
225 --POPTargs=$"<option>"
226 rpmb alias --without --define "_without_!#:+ --without-!#:+" \
227 --POPTdesc=$"disable configure <option> for build" \
228 --POPTargs=$"<option>"
229 #==============================================================================
230 rpmbuild alias --dbpath --define '_dbpath !#:+' \
231 --POPTdesc=$"use database in DIRECTORY" \
232 --POPTargs=$"DIRECTORY"
233 rpmbuild alias --ftpport --define '_ftpport !#:+'
234 rpmbuild alias --ftpproxy --define '_ftpproxy !#:+'
235 rpmbuild alias --httpport --define '_httpport !#:+'
236 rpmbuild alias --httpproxy --define '_httpproxy !#:+'
237 rpmbuild alias --timecheck --define '_timecheck !#:+'
238 rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \
239 --POPTdesc=$"enable configure <option> for build" \
240 --POPTargs=$"<option>"
241 rpmbuild alias --without --define "_without_!#:+ --without-!#:+" \
242 --POPTdesc=$"disable configure <option> for build" \
243 --POPTargs=$"<option>"
244 #==============================================================================
245 rpmd alias --dbpath --define '_dbpath !#:+' \
246 --POPTdesc=$"use database in DIRECTORY" \
247 --POPTargs=$"DIRECTORY"
248 rpmd alias --ftpport --define '_ftpport !#:+'
249 rpmd alias --ftpproxy --define '_ftpproxy !#:+'
250 rpmd alias --httpport --define '_httpport !#:+'
251 rpmd alias --httpproxy --define '_httpproxy !#:+'
252 #==============================================================================
253 rpmdb alias --dbpath --define '_dbpath !#:+' \
254 --POPTdesc=$"use database in DIRECTORY" \
255 --POPTargs=$"DIRECTORY"
256 rpmdb alias --ftpport --define '_ftpport !#:+'
257 rpmdb alias --ftpproxy --define '_ftpproxy !#:+'
258 rpmdb alias --httpport --define '_httpport !#:+'
259 rpmdb alias --httpproxy --define '_httpproxy !#:+'
260 #==============================================================================
261 rpme alias --dbpath --define '_dbpath !#:+' \
262 --POPTdesc=$"use database in DIRECTORY" \
263 --POPTargs=$"DIRECTORY"
264 rpme alias --ftpport --define '_ftpport !#:+'
265 rpme alias --ftpproxy --define '_ftpproxy !#:+'
266 rpme alias --httpport --define '_httpport !#:+'
267 rpme alias --httpproxy --define '_httpproxy !#:+'
268 #==============================================================================
269 rpmi alias --dbpath --define '_dbpath !#:+' \
270 --POPTdesc=$"use database in DIRECTORY" \
271 --POPTargs=$"DIRECTORY"
272 rpmi alias --ftpport --define '_ftpport !#:+'
273 rpmi alias --ftpproxy --define '_ftpproxy !#:+'
274 rpmi alias --httpport --define '_httpport !#:+'
275 rpmi alias --httpproxy --define '_httpproxy !#:+'
276 #==============================================================================
277 rpmk alias --dbpath --define '_dbpath !#:+' \
278 --POPTdesc=$"use database in DIRECTORY" \
279 --POPTargs=$"DIRECTORY"
280 rpmk alias --ftpport --define '_ftpport !#:+'
281 rpmk alias --ftpproxy --define '_ftpproxy !#:+'
282 rpmk alias --httpport --define '_httpport !#:+'
283 rpmk alias --httpproxy --define '_httpproxy !#:+'
284 #==============================================================================
285 rpmsign alias --dbpath --define '_dbpath !#:+' \
286 --POPTdesc=$"use database in DIRECTORY" \
287 --POPTargs=$"DIRECTORY"
288 rpmsign alias --ftpport --define '_ftpport !#:+'
289 rpmsign alias --ftpproxy --define '_ftpproxy !#:+'
290 rpmsign alias --httpport --define '_httpport !#:+'
291 rpmsign alias --httpproxy --define '_httpproxy !#:+'
292 #==============================================================================
293 rpmq alias --dbpath --define '_dbpath !#:+' \
294 --POPTdesc=$"use database in DIRECTORY" \
295 --POPTargs=$"DIRECTORY"
296 rpmq alias --ftpport --define '_ftpport !#:+'
297 rpmq alias --ftpproxy --define '_ftpproxy !#:+'
298 rpmq alias --httpport --define '_httpport !#:+'
299 rpmq alias --httpproxy --define '_httpproxy !#:+'
301 rpmq alias --scripts --qf '\
302 %|PREIN?{preinstall scriptlet\
303 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
304 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
306 %|POSTIN?{postinstall scriptlet\
307 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
308 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
310 %|PREUN?{preuninstall scriptlet\
311 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
312 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
314 %|POSTUN?{postuninstall scriptlet\
315 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
316 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
318 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
320 --POPTdesc=$"list install/erase scriptlets from package(s)"
322 rpmq alias --conflicts --qf \
323 "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
324 --POPTdesc=$"list capabilities this package conflicts with"
325 rpmq alias --obsoletes --qf \
326 "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
327 --POPTdesc=$"list other packages removed by installing this package"
328 rpmq alias --provides --qf \
329 "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
330 --POPTdesc=$"list capabilities that this package provides"
332 rpmq alias --requires --qf \
333 "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
334 --POPTdesc=$"list capabilities required by package(s)"
335 rpmq alias -R --requires
337 rpmq alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
338 Version : %-27{VERSION} Vendor: %{VENDOR}\n\
339 Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
340 Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
341 Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
342 Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
343 Signature : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\
344 %|PACKAGER?{Packager : %{PACKAGER}\n}|\
345 %|URL?{URL : %{URL}\n}|\
346 Summary : %{SUMMARY}\n\
347 Description :\n%{DESCRIPTION}\n' \
348 --POPTdesc=$"list descriptive information from package(s)"
350 rpmq alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
351 --POPTdesc=$"list change logs for this package"
353 rpmq alias --triggerscripts --qf '\
354 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
355 %{TRIGGERSCRIPTS}\n]'
356 rpmq alias --triggers --triggerscripts \
357 --POPTdesc=$"list trigger scriptlets from package(s)"
359 rpmq alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
360 --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
361 --POPTdesc=$"list package(s) by install time, most recent first"
363 rpmq alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
364 --POPTdesc=$"list all files from each package"
366 rpmq alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
367 --POPTdesc=$"list file names with classes"
369 rpmq alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
370 --POPTdesc=$"list file names with colors"
372 rpmq alias --filecontext --qf '[%{FILENAMES}\t%{FILECONTEXTS}\n]' \
373 --POPTdesc=$"list file names with security context"
375 rpmq alias --fscontext --qf '[%{FILENAMES}\t%{FSCONTEXTS}\n]' \
376 --POPTdesc=$"list file names with security context from file system"
378 rpmq alias --recontext --qf '[%{FILENAMES}\t%{RECONTEXTS}\n]' \
379 --POPTdesc=$"list file names with security context from policy RE"
381 rpmq alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
382 --POPTdesc=$"list file names with provides"
384 rpmq alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
385 --POPTdesc=$"list file names with requires"
387 #==============================================================================
388 rpmquery alias --dbpath --define '_dbpath !#:+' \
389 --POPTdesc=$"use database in DIRECTORY" \
390 --POPTargs=$"DIRECTORY"
391 rpmquery alias --ftpport --define '_ftpport !#:+'
392 rpmquery alias --ftpproxy --define '_ftpproxy !#:+'
393 rpmquery alias --httpport --define '_httpport !#:+'
394 rpmquery alias --httpproxy --define '_httpproxy !#:+'
396 rpmquery alias --scripts --qf '\
397 %|PREIN?{preinstall scriptlet\
398 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
399 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
401 %|POSTIN?{postinstall scriptlet\
402 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
403 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
405 %|PREUN?{preuninstall scriptlet\
406 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
407 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
409 %|POSTUN?{postuninstall scriptlet\
410 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
411 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
413 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
415 --POPTdesc=$"list install/erase scriptlets from package(s)"
417 rpmquery alias --conflicts --qf \
418 "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
419 --POPTdesc=$"list capabilities this package conflicts with"
420 rpmquery alias --obsoletes --qf \
421 "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
422 --POPTdesc=$"list other packages removed by installing this package"
423 rpmquery alias --provides --qf \
424 "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
425 --POPTdesc=$"list capabilities that this package provides"
427 rpmquery alias --requires --qf \
428 "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
429 --POPTdesc=$"list capabilities required by package(s)"
430 rpmquery alias -R --requires
432 rpmquery alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
433 Version : %-27{VERSION} Vendor: %{VENDOR}\n\
434 Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
435 Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
436 Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
437 Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
438 %|PACKAGER?{Packager : %{PACKAGER}\n}|\
439 %|URL?{URL : %{URL}\n}|\
440 Summary : %{SUMMARY}\n\
441 Description :\n%{DESCRIPTION}\n' \
442 --POPTdesc=$"list descriptive information from package(s)"
444 rpmquery alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
445 --POPTdesc=$"list change logs for this package"
447 rpmquery alias --triggerscripts --qf '\
448 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
449 %{TRIGGERSCRIPTS}\n]'
450 rpmquery alias --triggers --triggerscripts \
451 --POPTdesc=$"list trigger scriptlets from package(s)"
453 rpmquery alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
454 --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
455 --POPTdesc=$"list package(s) by install time, most recent first"
457 rpmquery alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
458 --POPTdesc=$"list all files from each package"
460 rpmquery alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
461 --POPTdesc=$"list file names with classes"
463 rpmquery alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
464 --POPTdesc=$"list file names with colors"
466 rpmquery alias --filecontext --qf '[%{FILENAMES}\t%{FILECONTEXTS}\n]' \
467 --POPTdesc=$"list file names with security context"
469 rpmquery alias --fscontext --qf '[%{FILENAMES}\t%{FSCONTEXTS}\n]' \
470 --POPTdesc=$"list file names with security context from file system"
472 rpmquery alias --recontext --qf '[%{FILENAMES}\t%{RECONTEXTS}\n]' \
473 --POPTdesc=$"list file names with security context from policy RE"
475 rpmquery alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
476 --POPTdesc=$"list file names with provides"
478 rpmquery alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
479 --POPTdesc=$"list file names with requires"
481 #==============================================================================
482 rpmu alias --dbpath --define '_dbpath !#:+' \
483 --POPTdesc=$"use database in DIRECTORY" \
484 --POPTargs=$"DIRECTORY"
485 rpmu alias --ftpport --define '_ftpport !#:+'
486 rpmu alias --ftpproxy --define '_ftpproxy !#:+'
487 rpmu alias --httpport --define '_httpport !#:+'
488 rpmu alias --httpproxy --define '_httpproxy !#:+'
489 #==============================================================================
490 rpmv alias --dbpath --define '_dbpath !#:+' \
491 --POPTdesc=$"use database in DIRECTORY" \
492 --POPTargs=$"DIRECTORY"
493 rpmv alias --ftpport --define '_ftpport !#:+'
494 rpmv alias --ftpproxy --define '_ftpproxy !#:+'
495 rpmv alias --httpport --define '_httpport !#:+'
496 rpmv alias --httpproxy --define '_httpproxy !#:+'