#/*! \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 (as indicated by the word next to the packager's email)" \ --POPTargs=$"