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 rpm alias --scripts --qf '\
9 %|PREIN?{preinstall script\
10 %|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
11 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
13 %|POSTIN?{postinstall script\
14 %|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
15 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
17 %|PREUN?{preuninstall script\
18 %|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
19 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
21 %|POSTUN?{postuninstall script\
22 %|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
23 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
25 %|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
28 rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
29 --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"
31 rpm alias --setugids -q --qf \
32 '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
33 --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"
36 rpm alias --conflicts --qf \
37 "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
38 rpm alias --obsoletes --qf \
39 "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
40 rpm alias --provides --qf \
41 "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"
43 # XXX prereq output is part of requires for query
44 #rpm alias --prereq --qf '[%{PREREQ}:depflags\n]'
46 rpm alias --requires --qf \
47 "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
48 rpm alias -R --requires
50 rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
51 Version : %-27{VERSION} Vendor: %{VENDOR}\n\
52 Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
53 Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
54 Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
55 Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
56 %|PACKAGER?{Packager : %{PACKAGER}\n}|\
57 %|URL?{URL : %{URL}\n}|\
58 Summary : %{SUMMARY}\n\
59 Description :\n%{DESCRIPTION}\n'
61 rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
63 rpm alias --triggerscripts --qf '\
64 [trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
66 rpm alias --triggers --triggerscripts
68 rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
69 --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' "
71 rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
73 rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides
74 rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires
76 # colon separated i18n domains to use as PO catalogue lookaside for
77 * retrieving header group/description/summary.
79 # For Red Hat, value should be "redhat-dist:redhat-powertools".
80 rpm alias --i18ndomains --define '_i18ndomains !#:+'
82 # Build policies enabled from command line. Last policy applies.
83 rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+'
85 # Choose db interface:
87 # 1 native db1 interface (e.g. linux glibc libdb1 routines).
88 # 2 native db2 interface.
89 # 3 native db3 interface.
90 # -1 db3 -> db2 -> db1 (as available).
92 # There are two macros so that --rebuilddb can convert db1 -> db3
93 rpm alias --dbapi --define '_dbapi !#:+'
95 rpm alias --rebuilddbapi --define '_dbapi_rebuild !#:+'
96 rpm alias --rebuilddbpath --define '_dbapath_rebuild !#:+'
98 #==============================================================================
99 # [--dbpath <dir>] "use <dir> as the directory for the database"
100 rpm alias --dbpath --define '_dbpath !#:+'
101 # [--ftpport <port>] "port number of ftp server (or proxy)"
102 rpm alias --ftpport --define '_ftpport !#:+'
103 # [--ftpproxy <host>] "hostname or IP of ftp proxy"
104 rpm alias --ftpproxy --define '_ftpproxy !#:+'
105 # [--httpport <port>] "port number of http server (or proxy)"
106 rpm alias --httpport --define '_httpport !#:+'
107 # [--httpproxy <host>] "hostname or IP of http proxy"
108 rpm alias --httpproxy --define '_httpproxy !#:+'
110 # set the time check to <secs>
111 rpm alias --timecheck --define '_timecheck !#:+'
113 #==============================================================================
114 # Popt glue to preserve legacy CLI behavior.
116 # XXX popt exec parsing doesn't honor POPT_ARGFLAG_ONEDASH
117 rpm exec --bp rpmb -bp
118 rpm exec --bc rpmb -bc
119 rpm exec --bi rpmb -bi
120 rpm exec --bl rpmb -bl
121 rpm exec --ba rpmb -ba
122 rpm exec --bb rpmb -bb
123 rpm exec --bs rpmb -bs
124 rpm exec --tp rpmb -tp
125 rpm exec --tc rpmb -tc
126 rpm exec --ti rpmb -ti
127 rpm exec --tl rpmb -tl
128 rpm exec --ta rpmb -ta
129 rpm exec --tb rpmb -tb
130 rpm exec --ts rpmb -ts
131 rpm exec --rebuild rpmb --rebuild
132 rpm exec --recompile rpmb --recompile
133 rpm exec --clean rpmb --clean
134 rpm exec --rmsource rpmb --rmsource
135 rpm exec --rmspec rpmb --rmspec
136 rpm exec --target rpmb --target
137 rpm exec --short-circuit rpmb --short-circuit
139 rpm exec --initdb rpmd --initdb
140 rpm exec --rebuilddb rpmd --rebuilddb
141 rpm exec --verifydb rpmd --verifydb
144 #rpm exec --erase rpme --erase
146 #rpm exec --upgrade rpmu --upgrade
148 rpm exec --addsign rpmk --addsign
150 rpm exec --checksig rpmk --checksig
151 rpm exec --resign rpmk --resign
154 rpm exec --query rpmq --query
155 rpm exec --querytags rpmq --querytags
158 rpm exec --verify rpmv --verify
160 rpm alias --with --define "_with_!#:+ --with-!#:+"
161 rpm alias --without --define "_without_!#:+ --without-!#:+"
162 #==============================================================================
163 rpmb alias --dbpath --define '_dbpath !#:+'
164 rpmb alias --ftpport --define '_ftpport !#:+'
165 rpmb alias --ftpproxy --define '_ftpproxy !#:+'
166 rpmb alias --httpport --define '_httpport !#:+'
167 rpmb alias --httpproxy --define '_httpproxy !#:+'
168 rpmb alias --timecheck --define '_timecheck !#:+'
169 rpmb alias --with --define "_with_!#:+ --with-!#:+"
170 rpmb alias --without --define "_without_!#:+ --without-!#:+"
171 #==============================================================================
172 rpmbuild alias --dbpath --define '_dbpath !#:+'
173 rpmbuild alias --ftpport --define '_ftpport !#:+'
174 rpmbuild alias --ftpproxy --define '_ftpproxy !#:+'
175 rpmbuild alias --httpport --define '_httpport !#:+'
176 rpmbuild alias --httpproxy --define '_httpproxy !#:+'
177 rpmbuild alias --timecheck --define '_timecheck !#:+'
178 rpmbuild alias --with --define "_with_!#:+ --with-!#:+"
179 rpmbuild alias --without --define "_without_!#:+ --without-!#:+"
180 ==============================================================================
181 rpmd alias --dbpath --define '_dbpath !#:+'
182 rpmd alias --ftpport --define '_ftpport !#:+'
183 rpmd alias --ftpproxy --define '_ftpproxy !#:+'
184 rpmd alias --httpport --define '_httpport !#:+'
185 rpmd alias --httpproxy --define '_httpproxy !#:+'
186 #==============================================================================
187 rpme alias --dbpath --define '_dbpath !#:+'
188 rpme alias --ftpport --define '_ftpport !#:+'
189 rpme alias --ftpproxy --define '_ftpproxy !#:+'
190 rpme alias --httpport --define '_httpport !#:+'
191 rpme alias --httpproxy --define '_httpproxy !#:+'
192 #==============================================================================
193 rpmi alias --dbpath --define '_dbpath !#:+'
194 rpmi alias --ftpport --define '_ftpport !#:+'
195 rpmi alias --ftpproxy --define '_ftpproxy !#:+'
196 rpmi alias --httpport --define '_httpport !#:+'
197 rpmi alias --httpproxy --define '_httpproxy !#:+'
198 #==============================================================================
199 rpmq alias --dbpath --define '_dbpath !#:+'
200 rpmq alias --ftpport --define '_ftpport !#:+'
201 rpmq alias --ftpproxy --define '_ftpproxy !#:+'
202 rpmq alias --httpport --define '_httpport !#:+'
203 rpmq alias --httpproxy --define '_httpproxy !#:+'
205 rpmq alias --scripts --qf '\
206 %|PREIN?{preinstall script\
207 %|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
208 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
210 %|POSTIN?{postinstall script\
211 %|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
212 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
214 %|PREUN?{preuninstall script\
215 %|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
216 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
218 %|POSTUN?{postuninstall script\
219 %|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
220 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
222 %|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
225 rpmq alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
226 --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"
228 rpmq alias --setugids -q --qf \
229 '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
230 --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"
232 rpmq alias --conflicts --qf \
233 "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
234 rpmq alias --obsoletes --qf \
235 "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
236 rpmq alias --provides --qf \
237 "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"
239 # XXX prereq output is part of requires for query
240 #rpmq alias --prereq --qf '[%{PREREQ}:depflags\n]'
242 rpmq alias --requires --qf \
243 "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
244 rpmq alias -R --requires
246 rpmq alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
247 Version : %-27{VERSION} Vendor: %{VENDOR}\n\
248 Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
249 Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
250 Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
251 Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
252 %|PACKAGER?{Packager : %{PACKAGER}\n}|\
253 %|URL?{URL : %{URL}\n}|\
254 Summary : %{SUMMARY}\n\
255 Description :\n%{DESCRIPTION}\n'
257 rpmq alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
259 rpmq alias --triggerscripts --qf '\
260 [trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
261 %{TRIGGERSCRIPTS}\n]'
262 rpmq alias --triggers --triggerscripts
264 rpmq alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
265 --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' "
267 rpmq alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
268 #==============================================================================
269 rpmt alias --dbpath --define '_dbpath !#:+'
270 rpmt alias --ftpport --define '_ftpport !#:+'
271 rpmt alias --ftpproxy --define '_ftpproxy !#:+'
272 rpmt alias --httpport --define '_httpport !#:+'
273 rpmt alias --httpproxy --define '_httpproxy !#:+'
274 rpmt alias --timecheck --define '_timecheck !#:+'
275 #==============================================================================
276 rpmu alias --dbpath --define '_dbpath !#:+'
277 rpmu alias --ftpport --define '_ftpport !#:+'
278 rpmu alias --ftpproxy --define '_ftpproxy !#:+'
279 rpmu alias --httpport --define '_httpport !#:+'
280 rpmu alias --httpproxy --define '_httpproxy !#:+'
281 #==============================================================================
282 rpmv alias --dbpath --define '_dbpath !#:+'
283 rpmv alias --ftpport --define '_ftpport !#:+'
284 rpmv alias --ftpproxy --define '_ftpproxy !#:+'
285 rpmv alias --httpport --define '_httpport !#:+'
286 rpmv alias --httpproxy --define '_httpproxy !#:+'