ede46b7ef5
'rpm -q' and 'rpmquery' should be consistent with each other. [builder@solemn ~]$ rpm -q --lastchange rpm * Tue Mar 16 2010 Alexey Tourbin <at@altlinux.ru> 4.0.4-alt98.30 - order.c: Factored from depends.c. - order.c: Added missing error message. [builder@solemn ~]$ rpmquery --lastchange rpm * Tue Mar 16 2010 Alexey Tourbin <at@altlinux.ru> 4.0.4-alt98.30 - order.c: Factored from depends.c. - order.c: Added missing error message. [builder@solemn ~]$
504 lines
23 KiB
Plaintext
504 lines
23 KiB
Plaintext
#/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-@VERSION@
|
|
# \verbatim
|
|
#
|
|
#
|
|
# This file *should not be modified*. Local customizations
|
|
# belong in /etc/popt, not here. This file will be replaced
|
|
# whenever a new version of RPM is installed.
|
|
#
|
|
# Note: Not all popt aliases are documented. This is a decision on my
|
|
# part as to which are the more important aliases. Feel free to clip
|
|
# a copy of the alias/exec here and place in /etc/popt or ~/.popt with
|
|
# your own words added. It's easier than arguing about how many options
|
|
# fit on the head of an executable :-)
|
|
#
|
|
|
|
rpm alias --scripts -q --qf '\
|
|
%|PREIN?{preinstall scriptlet\
|
|
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
|
|
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
|
|
\
|
|
%|POSTIN?{postinstall scriptlet\
|
|
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
|
|
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
|
|
\
|
|
%|PREUN?{preuninstall scriptlet\
|
|
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
|
|
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
|
|
\
|
|
%|POSTUN?{postuninstall scriptlet\
|
|
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
|
|
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
|
|
\
|
|
%|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
|
|
' \
|
|
--POPTdesc=$"list install/erase scriptlets from package(s)"
|
|
|
|
rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
|
|
--pipe "sed 's/ chmod .../ chmod -c -- /' | sh" \
|
|
--POPTdesc=$"set permissions of files in a package"
|
|
|
|
rpm alias --setugids -q --qf \
|
|
'[chown -c -h -- %{FILEUSERNAME:shescape}:%{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
|
|
--pipe "sh" \
|
|
--POPTdesc=$"set user/group ownership of files in a package"
|
|
|
|
rpm alias --conflicts -q --qf \
|
|
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
|
|
--POPTdesc=$"list capabilities this package conflicts with"
|
|
rpm alias --obsoletes -q --qf \
|
|
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
|
|
--POPTdesc=$"list other packages removed by installing this package"
|
|
rpm alias --provides -q --qf \
|
|
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
|
|
--POPTdesc=$"list capabilities that this package provides"
|
|
|
|
rpm alias --requires -q --qf \
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
|
|
--POPTdesc=$"list capabilities required by package(s)"
|
|
rpm alias -R --requires
|
|
|
|
rpm alias --info -q --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
|
|
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
|
|
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
|
|
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
|
|
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
|
|
Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
|
|
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
|
|
%|URL?{URL : %{URL}\n}|\
|
|
Summary : %{SUMMARY}\n\
|
|
Description :\n%{DESCRIPTION}\n' \
|
|
--POPTdesc=$"list descriptive information from package(s)"
|
|
|
|
rpm alias --changelog -q --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
|
|
--POPTdesc=$"list change logs for this package"
|
|
rpm alias --lastchange -q --qf '* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n' \
|
|
--POPTdesc=$"output last changelog entry for this package"
|
|
rpm alias --changes-since -q --qf '[%{CHANGELOGNAME:nothing}\
|
|
%|%{CHANGELOGNAME}>!#:+?{* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n}:{}|]' \
|
|
--POPTdesc=$"list change logs for this package that are fresher than <e:ver-rel> (as indicated by the word next to the packager's email)" \
|
|
--POPTargs=$"<option>"
|
|
|
|
rpm alias --triggerscripts -q --qf '\
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
%{TRIGGERSCRIPTS}\n]'
|
|
rpm alias --triggers --triggerscripts \
|
|
--POPTdesc=$"list trigger scriptlets from package(s)"
|
|
|
|
rpm alias --last -q --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
|
|
--pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
|
|
--POPTdesc=$"list package(s) by install time, most recent first"
|
|
|
|
rpm alias --filesbypkg -q --qf '[%-25{=NAME} %{FILENAMES}\n]' \
|
|
--POPTdesc=$"list all files from each package"
|
|
|
|
rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides \
|
|
--POPTdesc=$"find package name that contains a provided capability (needs rpmdb-redhat package installed)"
|
|
|
|
rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires \
|
|
--POPTdesc=$"find package name that contains a required capability (needs rpmdb-redhat package installed)"
|
|
|
|
# colon separated i18n domains to use as PO catalogue lookaside for
|
|
* retrieving header group/description/summary.
|
|
#
|
|
# For Red Hat, value should be "redhat-dist:redhat-powertools".
|
|
rpm alias --i18ndomains --define '_i18ndomains !#:+'
|
|
|
|
# Build policies enabled from command line. Last policy applies.
|
|
rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+' \
|
|
--POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \
|
|
--POPTargs=$"<policy>"
|
|
|
|
# Choose db interface:
|
|
# 0 same as 1
|
|
# 1 native db1 interface (e.g. linux glibc libdb1 routines).
|
|
# 2 native db2 interface.
|
|
# 3 native db3 interface.
|
|
# -1 db3 -> db2 -> db1 (as available).
|
|
#
|
|
# There are two macros so that --rebuilddb can convert db1 -> db3
|
|
rpm alias --dbapi --define '_dbapi !#:+'
|
|
|
|
rpm alias --rebuilddbapi --define '_dbapi_rebuild !#:+'
|
|
rpm alias --rebuilddbpath --define '_dbapath_rebuild !#:+'
|
|
|
|
#==============================================================================
|
|
# [--dbpath <dir>] "use <dir> as the directory for the database"
|
|
rpm alias --dbpath --define '_dbpath !#:+'
|
|
# [--ftpport <port>] "port number of ftp server (or proxy)"
|
|
rpm alias --ftpport --define '_ftpport !#:+'
|
|
# [--ftpproxy <host>] "hostname or IP of ftp proxy"
|
|
rpm alias --ftpproxy --define '_ftpproxy !#:+'
|
|
# [--httpport <port>] "port number of http server (or proxy)"
|
|
rpm alias --httpport --define '_httpport !#:+'
|
|
# [--httpproxy <host>] "hostname or IP of http proxy"
|
|
rpm alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
# set the time check to <secs>
|
|
rpm alias --timecheck --define '_timecheck !#:+'
|
|
|
|
#==============================================================================
|
|
# Popt glue to preserve legacy CLI behavior.
|
|
#
|
|
# XXX popt exec parsing doesn't honor POPT_ARGFLAG_ONEDASH
|
|
rpm exec --bp rpmb -bp
|
|
rpm exec --bc rpmb -bc
|
|
rpm exec --bi rpmb -bi
|
|
rpm exec --bl rpmb -bl
|
|
rpm exec --ba rpmb -ba
|
|
rpm exec --bb rpmb -bb
|
|
rpm exec --bs rpmb -bs
|
|
rpm exec --bE rpmb -bE
|
|
rpm exec --bM rpmb -bM
|
|
rpm exec --tp rpmb -tp
|
|
rpm exec --tc rpmb -tc
|
|
rpm exec --ti rpmb -ti
|
|
rpm exec --tl rpmb -tl
|
|
rpm exec --ta rpmb -ta
|
|
rpm exec --tb rpmb -tb
|
|
rpm exec --ts rpmb -ts
|
|
rpm exec --rebuild rpmb --rebuild
|
|
rpm exec --recompile rpmb --recompile
|
|
rpm exec --clean rpmb --clean
|
|
rpm exec --rmsource rpmb --rmsource
|
|
rpm exec --rmspec rpmb --rmspec
|
|
rpm exec --target rpmb --target
|
|
rpm exec --short-circuit rpmb --short-circuit
|
|
|
|
rpm exec --initdb rpmd --initdb
|
|
rpm exec --rebuilddb rpmd --rebuilddb
|
|
rpm exec --verifydb rpmd --verifydb
|
|
|
|
#rpm exec -e rpme -e
|
|
#rpm exec --erase rpme --erase
|
|
#rpm exec -U rpmu -U
|
|
#rpm exec --upgrade rpmu --upgrade
|
|
|
|
rpm exec --addsign rpmk --addsign
|
|
rpm exec -K rpmk -K
|
|
rpm exec --checksig rpmk --checksig
|
|
rpm exec --resign rpmk --resign
|
|
|
|
rpm exec -q rpmq -q
|
|
rpm exec --query rpmq --query
|
|
rpm exec --querytags rpmq --querytags
|
|
rpm exec -V rpmv -V
|
|
rpm exec -y rpmv -y
|
|
rpm exec --verify rpmv --verify
|
|
|
|
rpm alias --with --define "_with_!#:+ --with-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for build or query" \
|
|
--POPTargs=$"<option>"
|
|
rpm alias --without --define "_without_!#:+ --without-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for build or query" \
|
|
--POPTargs=$"<option>"
|
|
rpm alias --enable --define "_enable_!#:+ --enable-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for build or query" \
|
|
--POPTargs=$"<option>"
|
|
rpm alias --disable --define "_disable_!#:+ --disable-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for build or query" \
|
|
--POPTargs=$"<option>"
|
|
|
|
rpm alias -C --clean --rmsource --rmspec --nodeps
|
|
rpm alias --vendor --eval %vendor
|
|
rpm alias --packager --eval %packager
|
|
rpm alias --distribution --eval %distribution
|
|
rpm alias --nowait-lock --define '_wait_for_lock 0'
|
|
rpm alias --ignorebuildtime --define '_upgrade_honor_buildtime 0'
|
|
#==============================================================================
|
|
rpmb alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmb alias --ftpport --define '_ftpport !#:+'
|
|
rpmb alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmb alias --httpport --define '_httpport !#:+'
|
|
rpmb alias --httpproxy --define '_httpproxy !#:+'
|
|
rpmb alias --timecheck --define '_timecheck !#:+'
|
|
rpmb alias --with --define "_with_!#:+ --with-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmb alias --without --define "_without_!#:+ --without-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmb alias --enable --define "_enable_!#:+ --enable-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmb alias --disable --define "_disable_!#:+ --disable-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmb alias -C --clean --rmsource --rmspec --nodeps
|
|
#==============================================================================
|
|
rpmbuild alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmbuild alias --ftpport --define '_ftpport !#:+'
|
|
rpmbuild alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmbuild alias --httpport --define '_httpport !#:+'
|
|
rpmbuild alias --httpproxy --define '_httpproxy !#:+'
|
|
rpmbuild alias --timecheck --define '_timecheck !#:+'
|
|
rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmbuild alias --without --define "_without_!#:+ --without-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmbuild alias --enable --define "_enable_!#:+ --enable-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmbuild alias --disable --define "_disable_!#:+ --disable-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for build" \
|
|
--POPTargs=$"<option>"
|
|
rpmbuild alias -C --clean --rmsource --rmspec --nodeps
|
|
#==============================================================================
|
|
rpmd alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmd alias --ftpport --define '_ftpport !#:+'
|
|
rpmd alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmd alias --httpport --define '_httpport !#:+'
|
|
rpmd alias --httpproxy --define '_httpproxy !#:+'
|
|
#==============================================================================
|
|
rpmdb alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmdb alias --ftpport --define '_ftpport !#:+'
|
|
rpmdb alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmdb alias --httpport --define '_httpport !#:+'
|
|
rpmdb alias --httpproxy --define '_httpproxy !#:+'
|
|
#==============================================================================
|
|
rpme alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpme alias --ftpport --define '_ftpport !#:+'
|
|
rpme alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpme alias --httpport --define '_httpport !#:+'
|
|
rpme alias --httpproxy --define '_httpproxy !#:+'
|
|
#==============================================================================
|
|
rpmi alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmi alias --ftpport --define '_ftpport !#:+'
|
|
rpmi alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmi alias --httpport --define '_httpport !#:+'
|
|
rpmi alias --httpproxy --define '_httpproxy !#:+'
|
|
rpmi alias --ignorebuildtime --define '_upgrade_honor_buildtime 0'
|
|
#==============================================================================
|
|
rpmk alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmk alias --ftpport --define '_ftpport !#:+'
|
|
rpmk alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmk alias --httpport --define '_httpport !#:+'
|
|
rpmk alias --httpproxy --define '_httpproxy !#:+'
|
|
#==============================================================================
|
|
rpmq alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmq alias --ftpport --define '_ftpport !#:+'
|
|
rpmq alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmq alias --httpport --define '_httpport !#:+'
|
|
rpmq alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
rpmq alias --scripts -q --qf '\
|
|
%|PREIN?{preinstall scriptlet\
|
|
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
|
|
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
|
|
\
|
|
%|POSTIN?{postinstall scriptlet\
|
|
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
|
|
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
|
|
\
|
|
%|PREUN?{preuninstall scriptlet\
|
|
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
|
|
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
|
|
\
|
|
%|POSTUN?{postuninstall scriptlet\
|
|
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
|
|
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
|
|
\
|
|
%|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
|
|
' \
|
|
--POPTdesc=$"list install/erase scriptlets from package(s)"
|
|
|
|
rpmq alias --conflicts -q --qf \
|
|
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
|
|
--POPTdesc=$"list capabilities this package conflicts with"
|
|
rpmq alias --obsoletes -q --qf \
|
|
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
|
|
--POPTdesc=$"list other packages removed by installing this package"
|
|
rpmq alias --provides -q --qf \
|
|
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
|
|
--POPTdesc=$"list capabilities that this package provides"
|
|
|
|
rpmq alias --requires -q --qf \
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
|
|
--POPTdesc=$"list capabilities required by package(s)"
|
|
rpmq alias -R --requires
|
|
|
|
rpmq alias --info -q --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
|
|
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
|
|
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
|
|
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
|
|
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
|
|
Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
|
|
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
|
|
%|URL?{URL : %{URL}\n}|\
|
|
Summary : %{SUMMARY}\n\
|
|
Description :\n%{DESCRIPTION}\n' \
|
|
--POPTdesc=$"list descriptive information from package(s)"
|
|
|
|
rpmq alias --changelog -q --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
|
|
--POPTdesc=$"list change logs for this package"
|
|
rpmq alias --lastchange -q --qf '* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n' \
|
|
--POPTdesc=$"output last changelog entry for this package"
|
|
rpmq alias --changes-since -q --qf '[%{CHANGELOGNAME:nothing}\
|
|
%|%{CHANGELOGNAME}>!#:+?{* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n}:{}|]' \
|
|
--POPTdesc=$"list change logs for this package that are fresher than <e:ver-rel> (as indicated by the word next to the packager's email)" \
|
|
--POPTargs=$"<option>"
|
|
|
|
rpmq alias --triggerscripts -q --qf '\
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
%{TRIGGERSCRIPTS}\n]'
|
|
rpmq alias --triggers --triggerscripts \
|
|
--POPTdesc=$"list trigger scriptlets from package(s)"
|
|
|
|
rpmq alias --last -q --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
|
|
--pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
|
|
--POPTdesc=$"list package(s) by install time, most recent first"
|
|
|
|
rpmq alias --filesbypkg -q --qf '[%-25{=NAME} %{FILENAMES}\n]' \
|
|
--POPTdesc=$"list all files from each package"
|
|
|
|
rpmq alias --with --define "_with_!#:+ --with-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
rpmq alias --without --define "_without_!#:+ --without-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
rpmq alias --enable --define "_enable_!#:+ --enable-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
rpmq alias --disable --define "_disable_!#:+ --disable-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
|
|
rpmq alias --vendor --eval %vendor
|
|
rpmq alias --packager --eval %packager
|
|
rpmq alias --distribution --eval %distribution
|
|
rpmq alias --nowait-lock --define '_wait_for_lock 0'
|
|
#==============================================================================
|
|
rpmquery alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmquery alias --ftpport --define '_ftpport !#:+'
|
|
rpmquery alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmquery alias --httpport --define '_httpport !#:+'
|
|
rpmquery alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
rpmquery alias --scripts -q --qf '\
|
|
%|PREIN?{preinstall scriptlet\
|
|
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
|
|
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
|
|
\
|
|
%|POSTIN?{postinstall scriptlet\
|
|
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
|
|
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
|
|
\
|
|
%|PREUN?{preuninstall scriptlet\
|
|
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
|
|
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
|
|
\
|
|
%|POSTUN?{postuninstall scriptlet\
|
|
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
|
|
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
|
|
\
|
|
%|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
|
|
' \
|
|
--POPTdesc=$"list install/erase scriptlets from package(s)"
|
|
|
|
rpmquery alias --conflicts -q --qf \
|
|
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
|
|
--POPTdesc=$"list capabilities this package conflicts with"
|
|
rpmquery alias --obsoletes -q --qf \
|
|
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
|
|
--POPTdesc=$"list other packages removed by installing this package"
|
|
rpmquery alias --provides -q --qf \
|
|
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
|
|
--POPTdesc=$"list capabilities that this package provides"
|
|
|
|
rpmquery alias --requires -q --qf \
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
|
|
--POPTdesc=$"list capabilities required by package(s)"
|
|
rpmquery alias -R --requires
|
|
|
|
rpmquery alias --info -q --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
|
|
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
|
|
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
|
|
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
|
|
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
|
|
Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
|
|
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
|
|
%|URL?{URL : %{URL}\n}|\
|
|
Summary : %{SUMMARY}\n\
|
|
Description :\n%{DESCRIPTION}\n' \
|
|
--POPTdesc=$"list descriptive information from package(s)"
|
|
|
|
rpmquery alias --changelog -q --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
|
|
--POPTdesc=$"list change logs for this package"
|
|
rpmquery alias --lastchange -q --qf '* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n' \
|
|
--POPTdesc=$"output last changelog entry for this package"
|
|
rpmquery alias --changes-since -q --qf '[%{CHANGELOGNAME:nothing}\
|
|
%|%{CHANGELOGNAME}>!#:+?{* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n}:{}|]' \
|
|
--POPTdesc=$"list change logs for this package that are fresher than <e:ver-rel> (as indicated by the word next to the packager's email)" \
|
|
--POPTargs=$"<option>"
|
|
|
|
rpmquery alias --triggerscripts -q --qf '\
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
%{TRIGGERSCRIPTS}\n]'
|
|
rpmquery alias --triggers --triggerscripts \
|
|
--POPTdesc=$"list trigger scriptlets from package(s)"
|
|
|
|
rpmquery alias --last -q --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
|
|
--pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
|
|
--POPTdesc=$"list package(s) by install time, most recent first"
|
|
|
|
rpmquery alias --filesbypkg -q --qf '[%-25{=NAME} %{FILENAMES}\n]' \
|
|
--POPTdesc=$"list all files from each package"
|
|
|
|
rpmquery alias --with --define "_with_!#:+ --with-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
rpmquery alias --without --define "_without_!#:+ --without-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
rpmquery alias --enable --define "_enable_!#:+ --enable-!#:+" \
|
|
--POPTdesc=$"enable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
rpmquery alias --disable --define "_disable_!#:+ --disable-!#:+" \
|
|
--POPTdesc=$"disable configure <option> for query" \
|
|
--POPTargs=$"<option>"
|
|
|
|
rpmquery alias --vendor --eval %vendor
|
|
rpmquery alias --packager --eval %packager
|
|
rpmquery alias --distribution --eval %distribution
|
|
rpmquery alias --nowait-lock --define '_wait_for_lock 0'
|
|
#==============================================================================
|
|
rpmu alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmu alias --ftpport --define '_ftpport !#:+'
|
|
rpmu alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmu alias --httpport --define '_httpport !#:+'
|
|
rpmu alias --httpproxy --define '_httpproxy !#:+'
|
|
#==============================================================================
|
|
rpmv alias --dbpath --define '_dbpath !#:+' \
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
--POPTargs=$"<dir>"
|
|
rpmv alias --ftpport --define '_ftpport !#:+'
|
|
rpmv alias --ftpproxy --define '_ftpproxy !#:+'
|
|
rpmv alias --httpport --define '_httpport !#:+'
|
|
rpmv alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
# \endverbatim
|
|
#*/
|