home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 March / PCWELT_3_2006.ISO / base / 05_common.mo / usr / lib / rpm / rpmpopt-4.2.1 < prev    next >
Encoding:
Text File  |  2003-10-29  |  20.4 KB  |  473 lines

  1. #/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-4.2.1
  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?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
  18. {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
  19. \
  20. %|POSTIN?{postinstall scriptlet\
  21. %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
  22. {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
  23. \
  24. %|PREUN?{preuninstall scriptlet\
  25. %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
  26. {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
  27. \
  28. %|POSTUN?{postuninstall scriptlet\
  29. %|POSTUNPROG?{ (using %{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} scriptlet (using %{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%{FILECOLORS}\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 /usr/lib/rpm/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?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
  295. {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
  296. \
  297. %|POSTIN?{postinstall scriptlet\
  298. %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
  299. {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
  300. \
  301. %|PREUN?{preuninstall scriptlet\
  302. %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
  303. {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
  304. \
  305. %|POSTUN?{postuninstall scriptlet\
  306. %|POSTUNPROG?{ (using %{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} scriptlet (using %{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. rpmq    alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
  358.     --POPTdesc=$"list file names with classes"
  359.  
  360. rpmq    alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
  361.     --POPTdesc=$"list file names with colors"
  362.  
  363. rpmq    alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
  364.     --POPTdesc=$"list file names with provides"
  365.  
  366. rpmq    alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
  367.     --POPTdesc=$"list file names with requires"
  368.  
  369. #==============================================================================
  370. rpmquery    alias --dbpath        --define '_dbpath !#:+' \
  371.     --POPTdesc=$"use database in DIRECTORY" \
  372.     --POPTargs=$"DIRECTORY"
  373. rpmquery    alias --ftpport        --define '_ftpport !#:+'
  374. rpmquery    alias --ftpproxy    --define '_ftpproxy !#:+'
  375. rpmquery    alias --httpport    --define '_httpport !#:+'
  376. rpmquery    alias --httpproxy    --define '_httpproxy !#:+'
  377.  
  378. rpmquery    alias --scripts --qf '\
  379. %|PREIN?{preinstall scriptlet\
  380. %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
  381. {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
  382. \
  383. %|POSTIN?{postinstall scriptlet\
  384. %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
  385. {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
  386. \
  387. %|PREUN?{preuninstall scriptlet\
  388. %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
  389. {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
  390. \
  391. %|POSTUN?{postuninstall scriptlet\
  392. %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
  393. {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
  394. \
  395. %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
  396. ' \
  397.     --POPTdesc=$"list install/erase scriptlets from package(s)"
  398.  
  399. rpmquery    alias --conflicts    --qf \
  400.   "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
  401.     --POPTdesc=$"list capabilities this package conflicts with"
  402. rpmquery    alias --obsoletes    --qf \
  403.   "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
  404.     --POPTdesc=$"list other packages removed by installing this package"
  405. rpmquery    alias --provides    --qf \
  406.   "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
  407.     --POPTdesc=$"list capabilities that this package provides"
  408.  
  409. rpmquery    alias --requires    --qf \
  410.   "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
  411.     --POPTdesc=$"list capabilities required by package(s)"
  412. rpmquery    alias -R --requires
  413.  
  414. rpmquery    alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
  415. Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
  416. Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
  417. Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
  418. Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
  419. Size        : %-27{SIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
  420. %|PACKAGER?{Packager    : %{PACKAGER}\n}|\
  421. %|URL?{URL         : %{URL}\n}|\
  422. Summary     : %{SUMMARY}\n\
  423. Description :\n%{DESCRIPTION}\n' \
  424.     --POPTdesc=$"list descriptive information from package(s)"
  425.  
  426. rpmquery    alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
  427.     --POPTdesc=$"list change logs for this package"
  428.  
  429. rpmquery    alias --triggerscripts --qf '\
  430. [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
  431. %{TRIGGERSCRIPTS}\n]'
  432. rpmquery    alias --triggers --triggerscripts \
  433.     --POPTdesc=$"list trigger scriptlets from package(s)"
  434.  
  435. rpmquery    alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
  436.     --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
  437.     --POPTdesc=$"list package(s) by install time, most recent first"
  438.  
  439. rpmquery    alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
  440.     --POPTdesc=$"list all files from each package"
  441.  
  442. rpmquery    alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
  443.     --POPTdesc=$"list file names with classes"
  444.  
  445. rpmquery    alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
  446.     --POPTdesc=$"list file names with colors"
  447.  
  448. rpmquery    alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
  449.     --POPTdesc=$"list file names with provides"
  450.  
  451. rpmquery    alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
  452.     --POPTdesc=$"list file names with requires"
  453.  
  454. #==============================================================================
  455. rpmu    alias --dbpath        --define '_dbpath !#:+' \
  456.     --POPTdesc=$"use database in DIRECTORY" \
  457.     --POPTargs=$"DIRECTORY"
  458. rpmu    alias --ftpport        --define '_ftpport !#:+'
  459. rpmu    alias --ftpproxy    --define '_ftpproxy !#:+'
  460. rpmu    alias --httpport    --define '_httpport !#:+'
  461. rpmu    alias --httpproxy    --define '_httpproxy !#:+'
  462. #==============================================================================
  463. rpmv    alias --dbpath        --define '_dbpath !#:+' \
  464.     --POPTdesc=$"use database in DIRECTORY" \
  465.     --POPTargs=$"DIRECTORY"
  466. rpmv    alias --ftpport        --define '_ftpport !#:+'
  467. rpmv    alias --ftpproxy    --define '_ftpproxy !#:+'
  468. rpmv    alias --httpport    --define '_httpport !#:+'
  469. rpmv    alias --httpproxy    --define '_httpproxy !#:+'
  470.  
  471. # \endverbatim
  472. #*/
  473.