Doxygen annotations for config files.
[tools/librpm-tizen.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 rpm     alias --scripts --qf '\
9 %|PREIN?{preinstall script\
10 %|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
11 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
12 \
13 %|POSTIN?{postinstall script\
14 %|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
15 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
16 \
17 %|PREUN?{preuninstall script\
18 %|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
19 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
20 \
21 %|POSTUN?{postuninstall script\
22 %|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
23 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
24 \
25 %|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
26 '
27
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"
30
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"
34
35
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]"
42
43 # XXX prereq output is part of requires for query
44 #rpm alias --prereq     --qf '[%{PREREQ}:depflags\n]'
45
46 rpm     alias --requires        --qf \
47   "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
48 rpm     alias -R --requires
49
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'
60
61 rpm     alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
62
63 rpm     alias --triggerscripts --qf '\
64 [trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
65 %{TRIGGERSCRIPTS}\n]'
66 rpm     alias --triggers --triggerscripts
67
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))}' "
70
71 rpm     alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
72
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
75
76 # colon separated i18n domains to use as PO catalogue lookaside for
77 * retrieving header group/description/summary.
78 #
79 # For Red Hat, value should be "redhat-dist:redhat-powertools".
80 rpm alias --i18ndomains --define '_i18ndomains !#:+'
81
82 # Build policies enabled from command line. Last policy applies.
83 rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+'
84
85 # Choose db interface:
86 #       0       same as 1
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).
91 #
92 # There are two macros so that --rebuilddb can convert db1 -> db3
93 rpm alias --dbapi                --define '_dbapi !#:+'
94
95 rpm alias --rebuilddbapi         --define '_dbapi_rebuild !#:+'
96 rpm alias --rebuilddbpath        --define '_dbapath_rebuild !#:+'
97
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 !#:+'
109
110 # set the time check to <secs>
111 rpm     alias --timecheck       --define '_timecheck !#:+'
112
113 #==============================================================================
114 # Popt glue to preserve legacy CLI behavior.
115 #
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
138
139 rpm     exec --initdb           rpmdb --initdb
140 rpm     exec --rebuilddb        rpmdb --rebuilddb
141
142 #rpm    exec -e                 rpme -e
143 #rpm    exec --erase            rpme --erase
144 #rpm    exec -U                 rpmu -U
145 #rpm    exec --upgrade          rpmu --upgrade
146
147 rpm     exec --addsign          rpmk --addsign
148 rpm     exec -K                 rpmk -K
149 rpm     exec --checksig         rpmk --checksig
150 rpm     exec --resign           rpmk --resign
151
152 rpm     exec -q                 rpmq -q
153 rpm     exec --query            rpmq --query
154 rpm     exec --querytags        rpmq --querytags
155 rpm     exec -V                 rpmv -V
156 rpm     exec -y                 rpmv -y
157 rpm     exec --verify           rpmv --verify
158
159 #==============================================================================
160 rpmb    alias --dbpath          --define '_dbpath !#:+'
161 rpmb    alias --ftpport         --define '_ftpport !#:+'
162 rpmb    alias --ftpproxy        --define '_ftpproxy !#:+'
163 rpmb    alias --httpport        --define '_httpport !#:+'
164 rpmb    alias --httpproxy       --define '_httpproxy !#:+'
165 rpmb    alias --timecheck       --define '_timecheck !#:+'
166 rpmb    alias --with            --define "_with_!#:+       --with-!#:+"
167 rpmb    alias --without         --define "_without_!#:+    --without-!#:+"
168 #==============================================================================
169 rpmbuild        alias --dbpath          --define '_dbpath !#:+'
170 rpmbuild        alias --ftpport         --define '_ftpport !#:+'
171 rpmbuild        alias --ftpproxy        --define '_ftpproxy !#:+'
172 rpmbuild        alias --httpport        --define '_httpport !#:+'
173 rpmbuild        alias --httpproxy       --define '_httpproxy !#:+'
174 rpmbuild        alias --timecheck       --define '_timecheck !#:+'
175 rpmbuild        alias --with            --define "_with_!#:+     --with-!#:+"
176 rpmbuild        alias --without         --define "_without_!#:+  --without-!#:+"
177 ==============================================================================
178 rpmdb   alias --dbpath          --define '_dbpath !#:+'
179 rpmdb   alias --ftpport         --define '_ftpport !#:+'
180 rpmdb   alias --ftpproxy        --define '_ftpproxy !#:+'
181 rpmdb   alias --httpport        --define '_httpport !#:+'
182 rpmdb   alias --httpproxy       --define '_httpproxy !#:+'
183 #==============================================================================
184 rpme    alias --dbpath          --define '_dbpath !#:+'
185 rpme    alias --ftpport         --define '_ftpport !#:+'
186 rpme    alias --ftpproxy        --define '_ftpproxy !#:+'
187 rpme    alias --httpport        --define '_httpport !#:+'
188 rpme    alias --httpproxy       --define '_httpproxy !#:+'
189 #==============================================================================
190 rpmi    alias --dbpath          --define '_dbpath !#:+'
191 rpmi    alias --ftpport         --define '_ftpport !#:+'
192 rpmi    alias --ftpproxy        --define '_ftpproxy !#:+'
193 rpmi    alias --httpport        --define '_httpport !#:+'
194 rpmi    alias --httpproxy       --define '_httpproxy !#:+'
195 #==============================================================================
196 rpmq    alias --dbpath          --define '_dbpath !#:+'
197 rpmq    alias --ftpport         --define '_ftpport !#:+'
198 rpmq    alias --ftpproxy        --define '_ftpproxy !#:+'
199 rpmq    alias --httpport        --define '_httpport !#:+'
200 rpmq    alias --httpproxy       --define '_httpproxy !#:+'
201
202 rpmq    alias --scripts --qf '\
203 %|PREIN?{preinstall script\
204 %|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
205 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
206 \
207 %|POSTIN?{postinstall script\
208 %|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
209 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
210 \
211 %|PREUN?{preuninstall script\
212 %|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
213 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
214 \
215 %|POSTUN?{postuninstall script\
216 %|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
217 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
218 \
219 %|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
220 '
221
222 rpmq    alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
223                    --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"
224
225 rpmq    alias --setugids -q --qf \
226         '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
227         --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"
228
229 rpmq    alias --conflicts       --qf \
230   "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
231 rpmq    alias --obsoletes       --qf \
232   "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
233 rpmq    alias --provides        --qf \
234   "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"
235
236 # XXX prereq output is part of requires for query
237 #rpmq   alias --prereq  --qf '[%{PREREQ}:depflags\n]'
238
239 rpmq    alias --requires        --qf \
240   "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
241 rpmq    alias -R --requires
242
243 rpmq    alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
244 Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
245 Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
246 Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
247 Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
248 Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
249 %|PACKAGER?{Packager    : %{PACKAGER}\n}|\
250 %|URL?{URL         : %{URL}\n}|\
251 Summary     : %{SUMMARY}\n\
252 Description :\n%{DESCRIPTION}\n'
253
254 rpmq    alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
255
256 rpmq    alias --triggerscripts --qf '\
257 [trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
258 %{TRIGGERSCRIPTS}\n]'
259 rpmq    alias --triggers --triggerscripts
260
261 rpmq    alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
262         --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' "
263
264 rpmq    alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
265 #==============================================================================
266 rpmt    alias --dbpath          --define '_dbpath !#:+'
267 rpmt    alias --ftpport         --define '_ftpport !#:+'
268 rpmt    alias --ftpproxy        --define '_ftpproxy !#:+'
269 rpmt    alias --httpport        --define '_httpport !#:+'
270 rpmt    alias --httpproxy       --define '_httpproxy !#:+'
271 rpmt    alias --timecheck       --define '_timecheck !#:+'
272 #==============================================================================
273 rpmu    alias --dbpath          --define '_dbpath !#:+'
274 rpmu    alias --ftpport         --define '_ftpport !#:+'
275 rpmu    alias --ftpproxy        --define '_ftpproxy !#:+'
276 rpmu    alias --httpport        --define '_httpport !#:+'
277 rpmu    alias --httpproxy       --define '_httpproxy !#:+'
278 #==============================================================================
279 rpmv    alias --dbpath          --define '_dbpath !#:+'
280 rpmv    alias --ftpport         --define '_ftpport !#:+'
281 rpmv    alias --ftpproxy        --define '_ftpproxy !#:+'
282 rpmv    alias --httpport        --define '_httpport !#:+'
283 rpmv    alias --httpproxy       --define '_httpproxy !#:+'
284
285 # \endverbatim
286 #*/