+#/*! \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.
-rpm alias --scripts --qf '\
+rpm alias --scripts --qf '\
%|PREIN?{preinstall script\
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
%|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
'
-rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
+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 --setugids -q --qf \
+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"
-rpm alias --conflicts --qf \
+rpm alias --conflicts --qf \
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
-rpm alias --obsoletes --qf \
+rpm alias --obsoletes --qf \
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
-rpm alias --provides --qf \
+rpm alias --provides --qf \
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"
# XXX prereq output is part of requires for query
#rpm alias --prereq --qf '[%{PREREQ}:depflags\n]'
-rpm alias --requires --qf \
+rpm alias --requires --qf \
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
-rpm alias -R --requires
+rpm alias -R --requires
-rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
+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\
Summary : %{SUMMARY}\n\
Description :\n%{DESCRIPTION}\n'
-rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
+rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
-rpm alias --triggerscripts --qf '\
+rpm alias --triggerscripts --qf '\
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
%{TRIGGERSCRIPTS}\n]'
-rpm alias --triggers --triggerscripts
+rpm alias --triggers --triggerscripts
-rpm 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(\"%-35s %-s\n\", $1, substr($0,length($1)+2))}' "
+rpm 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))}' "
-rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
-rpm exec --freshen freshen.sh
-rpm alias -F --freshen
+rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides
rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires
rpm alias --timecheck --define '_timecheck !#:+'
#==============================================================================
-rpm exec -b rpmb -b
-rpm exec --build rpmb --build
+# 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 -t rpmt -t
-rpm exec --tarbuild rpmt --tarbuild
+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 rpmdb --initdb
-rpm exec --rebuilddb rpmdb --rebuilddb
+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 -y rpmv -y
rpm exec --verify rpmv --verify
+rpm alias --with --define "_with_!#:+ --with-!#:+"
+rpm alias --without --define "_without_!#:+ --without-!#:+"
#==============================================================================
rpmb alias --dbpath --define '_dbpath !#:+'
rpmb alias --ftpport --define '_ftpport !#:+'
rpmb alias --httpport --define '_httpport !#:+'
rpmb alias --httpproxy --define '_httpproxy !#:+'
rpmb alias --timecheck --define '_timecheck !#:+'
+rpmb alias --with --define "_with_!#:+ --with-!#:+"
+rpmb alias --without --define "_without_!#:+ --without-!#:+"
+#==============================================================================
+rpmbuild alias --dbpath --define '_dbpath !#:+'
+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-!#:+"
+rpmbuild alias --without --define "_without_!#:+ --without-!#:+"
+#==============================================================================
+rpmd alias --dbpath --define '_dbpath !#:+'
+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 !#:+'
rpmdb alias --ftpport --define '_ftpport !#:+'
rpmi alias --httpport --define '_httpport !#:+'
rpmi alias --httpproxy --define '_httpproxy !#:+'
#==============================================================================
+rpmk alias --dbpath --define '_dbpath !#:+'
+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 !#:+'
rpmq alias --ftpport --define '_ftpport !#:+'
rpmq alias --ftpproxy --define '_ftpproxy !#:+'
rpmq alias --httpport --define '_httpport !#:+'
rpmq alias --httpproxy --define '_httpproxy !#:+'
-#==============================================================================
-rpmt alias --dbpath --define '_dbpath !#:+'
-rpmt alias --ftpport --define '_ftpport !#:+'
-rpmt alias --ftpproxy --define '_ftpproxy !#:+'
-rpmt alias --httpport --define '_httpport !#:+'
-rpmt alias --httpproxy --define '_httpproxy !#:+'
-rpmt alias --timecheck --define '_timecheck !#:+'
+
+rpmq alias --scripts --qf '\
+%|PREIN?{preinstall script\
+%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
+{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
+\
+%|POSTIN?{postinstall script\
+%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
+{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
+\
+%|PREUN?{preuninstall script\
+%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
+{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
+\
+%|POSTUN?{postuninstall script\
+%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
+{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
+\
+%|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
+'
+
+rpmq alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
+ --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"
+
+rpmq 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"
+
+rpmq alias --conflicts --qf \
+ "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
+rpmq alias --obsoletes --qf \
+ "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
+rpmq alias --provides --qf \
+ "[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"
+
+# XXX prereq output is part of requires for query
+#rpmq alias --prereq --qf '[%{PREREQ}:depflags\n]'
+
+rpmq alias --requires --qf \
+ "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
+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'
+
+rpmq alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
+
+rpmq alias --triggerscripts --qf '\
+[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
+%{TRIGGERSCRIPTS}\n]'
+rpmq alias --triggers --triggerscripts
+
+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))}' "
+
+rpmq alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
#==============================================================================
rpmu alias --dbpath --define '_dbpath !#:+'
rpmu alias --ftpport --define '_ftpport !#:+'
rpmv alias --ftpproxy --define '_ftpproxy !#:+'
rpmv alias --httpport --define '_httpport !#:+'
rpmv alias --httpproxy --define '_httpproxy !#:+'
+
+# \endverbatim
+#*/