-#/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-@VERSION@
+#/*! \page config_rpmpopt Default configuration: @RPMCONFIGDIR@/rpmpopt-@VERSION@
# \verbatim
#
# This file *should not be modified*. Local customizations
#
rpm alias --scripts --qf '\
+%|PRETRANS?{pretrans scriptlet\
+%|PRETRANSPROG?{ (using[ %{PRETRANSPROG}])}|:\n%{PRETRANS}\n}:\
+{%|PRETRANSPROG?{pretrans program:[ %{PRETRANSPROG}]\n}|}|\
+\
%|PREIN?{preinstall scriptlet\
-%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
-{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
+%|PREINPROG?{ (using[ %{PREINPROG}])}|:\n%{PREIN}\n}:\
+{%|PREINPROG?{preinstall program:[ %{PREINPROG}]\n}|}|\
\
%|POSTIN?{postinstall scriptlet\
-%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
-{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
+%|POSTINPROG?{ (using[ %{POSTINPROG}])}|:\n%{POSTIN}\n}:\
+{%|POSTINPROG?{postinstall program:[ %{POSTINPROG}]\n}|}|\
\
%|PREUN?{preuninstall scriptlet\
-%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
-{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
+%|PREUNPROG?{ (using[ %{PREUNPROG}])}|:\n%{PREUN}\n}:\
+{%|PREUNPROG?{preuninstall program:[ %{PREUNPROG}]\n}|}|\
\
%|POSTUN?{postuninstall scriptlet\
-%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
-{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
+%|POSTUNPROG?{ (using[ %{POSTUNPROG}])}|:\n%{POSTUN}\n}:\
+{%|POSTUNPROG?{postuninstall program:[ %{POSTUNPROG}]\n}|}|\
+\
+%|POSTTRANS?{posttrans scriptlet\
+%|POSTTRANSPROG?{ (using[ %{POSTTRANSPROG}])}|:\n%{POSTTRANS}\n}:\
+{%|POSTTRANSPROG?{posttrans program:[ %{POSTTRANSPROG}]\n}|}|\
\
-%|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
+%|VERIFYSCRIPT?{verify scriptlet\
+%|VERIFYSCRIPTPROG?{ (using[ %{VERIFYSCRIPTPROG}])}|:\n%{VERIFYSCRIPT}\n}:\
+{%|VERIFYSCRIPTPROG?{verify program:[ %{VERIFYSCRIPTPROG}]\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 "grep -v \(none\) | sed 's/chmod .../chmod /' | sh" \
+rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
+ --pipe "grep -v \(none\) | grep '^. -L ' | sed 's/chmod .../chmod /' | sh" \
--POPTdesc=$"set permissions of files in a package"
rpm alias --setugids -q --qf \
'[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
- --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh" \
+ --pipe "(echo 'ch() { chown -h -- \"$1\" \"$3\";chgrp -h -- \"$2\" \"$3\"; }';grep '^ch '|grep -v \(none\))|sh" \
--POPTdesc=$"set user/group ownership of files in a package"
rpm alias --conflicts --qf \
- "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
+ "[%|VERBOSE?{%{CONFLICTFLAGS:deptype}: }:{}|%{CONFLICTNEVRS}\n]" \
--POPTdesc=$"list capabilities this package conflicts with"
rpm alias --obsoletes --qf \
- "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
+ "[%|VERBOSE?{%{OBSOLETEFLAGS:deptype}: }:{}|%{OBSOLETENEVRS}\n]" \
--POPTdesc=$"list other packages removed by installing this package"
rpm alias --provides --qf \
- "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
+ "[%|VERBOSE?{%{PROVIDEFLAGS:deptype}: }:{}|%{PROVIDENEVRS}\n]" \
--POPTdesc=$"list capabilities that this package provides"
rpm alias --requires --qf \
- "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
+ "[%|VERBOSE?{%{REQUIREFLAGS:deptype}: }:{}|%{REQUIRENEVRS}\n]" \
--POPTdesc=$"list capabilities required by package(s)"
rpm alias -R --requires
-rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\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\
+rpm alias --suggests --qf \
+ "[%|SUGGESTSFLAGS:depflag_strong?{}:{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" \
+ --POPTdesc=$"list capabilities this package suggests"
+
+rpm alias --recommends --qf \
+ "[%|SUGGESTSFLAGS:depflag_strong?{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" \
+ --POPTdesc=$"list capabilities this package recommends"
+
+rpm alias --enhances --qf \
+ "[%|ENHANCESFLAGS:depflag_strong?{}:{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" \
+ --POPTdesc=$"list capabilities this package enhances"
+
+rpm alias --supplements --qf \
+ "[%|ENHANCESFLAGS:depflag_strong?{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" \
+ --POPTdesc=$"list capabilities this package supplements"
+
+rpm alias --info --qf '\
+Name : %{NAME}\n\
+%|EPOCH?{Epoch : %{EPOCH}\n}|\
+Version : %{VERSION}\n\
+Release : %{RELEASE}\n\
+Architecture: %{ARCH}\n\
+Install Date: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n\
+Group : %{GROUP}\n\
+Size : %{LONGSIZE}\n\
+%|LICENSE?{License : %{LICENSE}}|\n\
+Signature : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\
+Source RPM : %{SOURCERPM}\n\
+Build Date : %{BUILDTIME:date}\n\
+Build Host : %{BUILDHOST}\n\
+Relocations : %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
+%|VENDOR?{Vendor : %{VENDOR}\n}|\
%|URL?{URL : %{URL}\n}|\
+%|VCS?{VCS : %{VCS}\n}|\
+%|BUGURL?{Bug URL : %{BUGURL}\n}|\
Summary : %{SUMMARY}\n\
-Description :\n%{DESCRIPTION}\n' \
+Description :\n%{DESCRIPTION}\n\
+Distribution: %{DISTRIBUTION}\n' \
--POPTdesc=$"list descriptive information from package(s)"
-rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
+rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
--POPTdesc=$"list change logs for this package"
+rpm alias --xml --qf '[%{*:xml}\n]' \
+ --POPTdesc=$"list metadata in xml"
+
rpm alias --triggerscripts --qf '\
-[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
+[trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
%{TRIGGERSCRIPTS}\n]'
rpm alias --triggers --triggerscripts \
--POPTdesc=$"list trigger scriptlets from package(s)"
-rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
+rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NVRA} %|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 --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \
+ --POPTdesc=$"list duplicated packages"
+
rpm alias --filesbypkg --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 --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
+ --POPTdesc=$"list file names with classes"
-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)"
+rpm alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
+ --POPTdesc=$"list file names with colors"
-# 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 !#:+'
+rpm alias --fscontext --qf '[%{FILENAMES}\n]' \
+ --pipe "xargs ls --scontext | awk '{printf(\"%s %s\n\", $2, $1)}'" \
+ --POPTdesc=$"list file names with security context from file system"
-# 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>"
+rpm alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
+ --POPTdesc=$"list file names with provides"
-# 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 --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
+ --POPTdesc=$"list file names with requires"
+
+rpm alias --filecaps --qf '[%{FILENAMES}\t%|FILECAPS?{%{FILECAPS}}|\n]' \
+ --POPTdesc=$"list file names with POSIX1.e capabilities"
-rpm alias --rebuilddbapi --define '_dbapi_rebuild !#:+'
-rpm alias --rebuilddbpath --define '_dbapath_rebuild !#:+'
+# colon separated i18n domains to use as PO catalogue lookaside for
+# retrieving header group/description/summary.
+rpm alias --i18ndomains --define '_i18ndomains !#:+'
#==============================================================================
-# [--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 !#:+'
+rpm alias --ftpport --define '_httpport !#:+'
# [--ftpproxy <host>] "hostname or IP of ftp proxy"
-rpm alias --ftpproxy --define '_ftpproxy !#:+'
+rpm alias --ftpproxy --define '_httpproxy !#:+'
# [--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 !#:+'
+# Minimally preserve commonly used switches from cli split-up
+rpm exec --addsign rpmsign --addsign
+rpm exec --delsign rpmsign --delsign
+rpm exec --resign rpmsign --resign
+rpm exec --checksig rpmkeys --checksig
+rpm exec -K rpmkeys --checksig
+rpm exec --import rpmkeys --import
+rpm exec --initdb rpmdb --initdb
+rpm exec --rebuilddb rpmdb --rebuilddb
+rpm exec --verifydb rpmdb --verifydb
+rpm exec --specfile rpmspec -q
#==============================================================================
-# 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 --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" \
- --POPTargs=$"<option>"
-rpm alias --without --define "_without_!#:+ --without-!#:+" \
- --POPTdesc=$"disable configure <option> for build" \
- --POPTargs=$"<option>"
-#==============================================================================
-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>"
-#==============================================================================
-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 --ftpport --define '_httpport !#:+'
+rpmbuild alias --ftpproxy --define '_httpproxy !#:+'
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>"
-#==============================================================================
-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 !#:+'
-#==============================================================================
-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 --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 --qf \
- "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
+# Build policies enabled from command line. Last policy applies.
+rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#:+' \
+ --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \
+ --POPTargs=$"<policy>"
+# Minimally preserve rpmbuild's --sign functionality
+rpmbuild alias --sign \
+ --pipe "grep '.*: .*\.rpm$'|cut -d: -f2|xargs -r rpm --addsign" \
+ --POPTdesc=$"generate GPG signature"
+
+rpmsign alias --key-id --define '_gpg_name !#:+' \
+ --POPTdesc=$"key id/name to sign with" \
+ --POPTargs=$"<id>"
+rpmsign alias --digest-algo --define '_gpg_digest_algo !#:+' \
+ --POPTdesc=$"override default digest algorithm (eg sha1/sha256)" \
+ --POPTargs=$"<algorithm>"
+
+rpmspec alias --conflicts --qf \
+ "[%|VERBOSE?{%{CONFLICTFLAGS:deptype}: }:{}|%{CONFLICTNEVRS}\n]" \
--POPTdesc=$"list capabilities this package conflicts with"
-rpmq alias --obsoletes --qf \
- "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
+rpmspec alias --obsoletes --qf \
+ "[%|VERBOSE?{%{OBSOLETEFLAGS:deptype}: }:{}|%{OBSOLETENEVRS}\n]" \
--POPTdesc=$"list other packages removed by installing this package"
-rpmq alias --provides --qf \
- "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
+rpmspec alias --provides --qf \
+ "[%|VERBOSE?{%{PROVIDEFLAGS:deptype}: }:{}|%{PROVIDENEVRS}\n]" \
--POPTdesc=$"list capabilities that this package provides"
-
-rpmq alias --requires --qf \
- "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
+rpmspec alias --requires --qf \
+ "[%|VERBOSE?{%{REQUIREFLAGS:deptype}: }:{}|%{REQUIRENEVRS}\n]" \
--POPTdesc=$"list capabilities required by package(s)"
-rpmq alias -R --requires
-
-rpmq alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\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 --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
- --POPTdesc=$"list change logs for this package"
-
-rpmq alias --triggerscripts --qf '\
-[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
-%{TRIGGERSCRIPTS}\n]'
-rpmq alias --triggers --triggerscripts \
- --POPTdesc=$"list trigger scriptlets from package(s)"
-
-rpmq alias --last --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 --qf '[%-25{=NAME} %{FILENAMES}\n]' \
- --POPTdesc=$"list all files from each package"
-#==============================================================================
-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 !#:+'
-
+rpmspec alias --buildconflicts --srpm --conflicts \
+ --POPTdesc=$"list capabilities conflicting with build of this package"
+rpmspec alias --buildrequires --srpm --requires \
+ --POPTdesc=$"list capabilities required to build this package"
# \endverbatim
#*/