2001-04-10 20:36:45 +08:00
|
|
|
#/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-@VERSION@
|
|
|
|
# \verbatim
|
1998-02-18 01:47:46 +08:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --scripts --qf '\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|PREIN?{preinstall scriptlet\
|
1997-07-08 06:22:44 +08:00
|
|
|
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
|
|
|
|
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|POSTIN?{postinstall scriptlet\
|
1997-07-08 06:22:44 +08:00
|
|
|
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
|
|
|
|
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|PREUN?{preuninstall scriptlet\
|
1997-07-08 06:22:44 +08:00
|
|
|
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
|
|
|
|
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|POSTUN?{postuninstall scriptlet\
|
1997-07-08 06:22:44 +08:00
|
|
|
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
|
|
|
|
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
|
|
|
|
' \
|
|
|
|
--POPTdesc=$"list install/erase scriptlets from package(s)"
|
1997-01-31 03:57:47 +08:00
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
|
1997-12-31 03:25:51 +08:00
|
|
|
--pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh"
|
1997-01-31 03:57:47 +08:00
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --setugids -q --qf \
|
1998-02-09 01:30:10 +08:00
|
|
|
'[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
|
1998-09-20 00:36:22 +08:00
|
|
|
--pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"
|
1998-02-09 01:30:10 +08:00
|
|
|
|
1997-01-31 03:57:47 +08:00
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --conflicts --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
|
|
|
|
--POPTdesc=$"list capabilities this package conflicts with"
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --obsoletes --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
|
|
|
|
--POPTdesc=$"list other packages removed by installing this package"
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --provides --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
|
|
|
|
--POPTdesc=$"list capabilities that this package provides"
|
1999-07-14 05:37:57 +08:00
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --requires --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
|
|
|
|
--POPTdesc=$"list capabilities required by package(s)"
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias -R --requires
|
1997-02-18 04:20:04 +08:00
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
|
1997-07-08 06:22:44 +08:00
|
|
|
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
|
|
|
|
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
|
1998-09-29 06:03:28 +08:00
|
|
|
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
|
1997-07-08 06:22:44 +08:00
|
|
|
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
|
1998-09-25 03:13:08 +08:00
|
|
|
Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
|
1997-07-23 00:29:09 +08:00
|
|
|
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
|
|
|
|
%|URL?{URL : %{URL}\n}|\
|
1997-07-08 06:22:44 +08:00
|
|
|
Summary : %{SUMMARY}\n\
|
2001-07-08 03:15:17 +08:00
|
|
|
Description :\n%{DESCRIPTION}\n' \
|
|
|
|
--POPTdesc=$"list descriptive information from package(s)"
|
1997-06-17 02:21:37 +08:00
|
|
|
|
2001-07-08 03:15:17 +08:00
|
|
|
rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
|
|
|
|
--POPTdesc=$"list change logs for this package"
|
1998-03-28 00:46:39 +08:00
|
|
|
|
2000-06-01 01:39:01 +08:00
|
|
|
rpm alias --triggerscripts --qf '\
|
1998-03-28 00:46:39 +08:00
|
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
|
|
%{TRIGGERSCRIPTS}\n]'
|
2001-07-08 03:15:17 +08:00
|
|
|
rpm alias --triggers --triggerscripts \
|
|
|
|
--POPTdesc=$"list trigger scriptlets from package(s)"
|
1998-06-05 01:03:29 +08:00
|
|
|
|
2000-07-10 07:10:25 +08:00
|
|
|
rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
|
2001-07-08 03:15:17 +08:00
|
|
|
--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"
|
1998-07-01 02:50:47 +08:00
|
|
|
|
2001-07-08 03:15:17 +08:00
|
|
|
rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
|
|
|
|
--POPTdesc=$"list all files from each package"
|
1999-09-23 02:03:19 +08:00
|
|
|
|
|
|
|
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
|
2000-02-22 11:09:53 +08:00
|
|
|
|
2000-02-24 06:40:53 +08:00
|
|
|
# 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 !#:+'
|
|
|
|
|
2000-02-22 11:09:53 +08:00
|
|
|
# Build policies enabled from command line. Last policy applies.
|
Hi!
I'd like to start building sparc64 packages (eventhough the install rule
details are yet to be designed - IMHO if 64bit SPARC userland is going into
7.0 we should rebuild all packages into 64bit in the next months or so to
have time to chase bugs etc.), and this is about what I need.
Basically I'd like to have %{_lib} to stand for the last part (normally
"lib") of dirname for directories like /lib, /usr/lib, /usr/X11R6/lib
because on sparc64-linux they are /lib64, /usr/lib64, /usr/X11R6/lib64 (and
on Solaris /lib/sparcv9, /usr/lib/sparcv9 etc.), so that one can use things
like
/usr/%{_lib} in the spec files.
Another thing which I need is an arch specific build root policy.
This patch does a few things:
1) add installplatform into EXTRA_DIST files, so that it is actually invoked
during rpm build not from CVS
2) Define %_lib lib and let target specific macros override it
3) Split __spec_install_post into __arch_install_post and __os_install_post,
--buildpolicy now specifies the __os_install_post part only. spec files
can still override the __arch_install_post if the want to.
brp-sparc64-linux is used to move 64bit libraries to */lib64 directories
from */lib directories if make install of some package left them there.
4) Change installplatform so that on sparc* it creates both sparc and
sparc64 target macro dirs (/usr/lib/rpm/sparc{,64}-redhat-linux in
sparc*-redhat-linux case).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+'
|
2000-03-31 03:22:46 +08:00
|
|
|
|
2000-05-07 08:53:11 +08:00
|
|
|
# Choose db interface:
|
|
|
|
# 0 same as 1
|
|
|
|
# 1 native db1 interface (e.g. linux glibc libdb1 routines).
|
2000-03-31 03:22:46 +08:00
|
|
|
# 2 native db2 interface.
|
|
|
|
# 3 native db3 interface.
|
2000-05-07 08:53:11 +08:00
|
|
|
# -1 db3 -> db2 -> db1 (as available).
|
|
|
|
#
|
|
|
|
# There are two macros so that --rebuilddb can convert db1 -> db3
|
|
|
|
rpm alias --dbapi --define '_dbapi !#:+'
|
|
|
|
|
2000-05-25 01:53:35 +08:00
|
|
|
rpm alias --rebuilddbapi --define '_dbapi_rebuild !#:+'
|
2000-05-07 08:53:11 +08:00
|
|
|
rpm alias --rebuilddbpath --define '_dbapath_rebuild !#:+'
|
2000-05-25 01:53:35 +08:00
|
|
|
|
|
|
|
#==============================================================================
|
|
|
|
# [--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 !#:+'
|
|
|
|
|
|
|
|
#==============================================================================
|
2000-05-27 02:51:11 +08:00
|
|
|
# Popt glue to preserve legacy CLI behavior.
|
|
|
|
#
|
|
|
|
# XXX popt exec parsing doesn't honor POPT_ARGFLAG_ONEDASH
|
2001-06-15 12:56:33 +08:00
|
|
|
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
|
2000-05-25 01:53:35 +08:00
|
|
|
|
2001-05-08 08:03:14 +08:00
|
|
|
rpm exec --initdb rpmd --initdb
|
|
|
|
rpm exec --rebuilddb rpmd --rebuilddb
|
2001-05-26 03:51:53 +08:00
|
|
|
rpm exec --verifydb rpmd --verifydb
|
2000-05-25 01:53:35 +08:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2001-06-15 12:56:33 +08:00
|
|
|
rpm alias --with --define "_with_!#:+ --with-!#:+"
|
|
|
|
rpm alias --without --define "_without_!#:+ --without-!#:+"
|
2000-05-25 01:53:35 +08:00
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmb alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2001-06-15 12:56:33 +08:00
|
|
|
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-!#:+"
|
|
|
|
rpmb alias --without --define "_without_!#:+ --without-!#:+"
|
2000-05-25 01:53:35 +08:00
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmbuild alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2001-03-17 04:23:49 +08:00
|
|
|
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-!#:+"
|
2001-06-07 00:18:03 +08:00
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmd alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2001-05-08 08:03:14 +08:00
|
|
|
rpmd alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmd alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmd alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmd alias --httpproxy --define '_httpproxy !#:+'
|
2000-05-25 01:53:35 +08:00
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmdb alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2001-06-07 00:18:03 +08:00
|
|
|
rpmdb alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmdb alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmdb alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmdb alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpme alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2000-05-25 01:53:35 +08:00
|
|
|
rpme alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpme alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpme alias --httpport --define '_httpport !#:+'
|
|
|
|
rpme alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmi alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2000-05-25 01:53:35 +08:00
|
|
|
rpmi alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmi alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmi alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmi alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmk alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2001-06-07 00:18:03 +08:00
|
|
|
rpmk alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmk alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmk alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmk alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmq alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2000-05-25 01:53:35 +08:00
|
|
|
rpmq alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmq alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmq alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmq alias --httpproxy --define '_httpproxy !#:+'
|
2000-06-01 01:39:01 +08:00
|
|
|
|
|
|
|
rpmq alias --scripts --qf '\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|PREIN?{preinstall scriptlet\
|
2000-06-01 01:39:01 +08:00
|
|
|
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
|
|
|
|
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|POSTIN?{postinstall scriptlet\
|
2000-06-01 01:39:01 +08:00
|
|
|
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
|
|
|
|
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|PREUN?{preuninstall scriptlet\
|
2000-06-01 01:39:01 +08:00
|
|
|
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
|
|
|
|
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|POSTUN?{postuninstall scriptlet\
|
2000-06-01 01:39:01 +08:00
|
|
|
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
|
|
|
|
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
|
|
|
|
\
|
2001-07-08 03:15:17 +08:00
|
|
|
%|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
|
|
|
|
' \
|
|
|
|
--POPTdesc=$"list install/erase scriptlets from package(s)"
|
2000-06-01 01:39:01 +08:00
|
|
|
|
|
|
|
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 \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \
|
|
|
|
--POPTdesc=$"list capabilities this package conflicts with"
|
2000-06-01 01:39:01 +08:00
|
|
|
rpmq alias --obsoletes --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" \
|
|
|
|
--POPTdesc=$"list other packages removed by installing this package"
|
2000-06-01 01:39:01 +08:00
|
|
|
rpmq alias --provides --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]" \
|
|
|
|
--POPTdesc=$"list capabilities that this package provides"
|
2000-06-01 01:39:01 +08:00
|
|
|
|
|
|
|
# XXX prereq output is part of requires for query
|
|
|
|
#rpmq alias --prereq --qf '[%{PREREQ}:depflags\n]'
|
|
|
|
|
|
|
|
rpmq alias --requires --qf \
|
2001-07-08 03:15:17 +08:00
|
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" \
|
|
|
|
--POPTdesc=$"list capabilities required by package(s)"
|
2000-06-01 01:39:01 +08:00
|
|
|
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\
|
2001-07-08 03:15:17 +08:00
|
|
|
Description :\n%{DESCRIPTION}\n' \
|
|
|
|
--POPTdesc=$"list descriptive information from package(s)"
|
2000-06-01 01:39:01 +08:00
|
|
|
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmq alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' \
|
|
|
|
--POPTdesc=$"list change logs for this package"
|
2000-06-01 01:39:01 +08:00
|
|
|
|
|
|
|
rpmq alias --triggerscripts --qf '\
|
|
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
|
|
%{TRIGGERSCRIPTS}\n]'
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmq alias --triggers --triggerscripts \
|
|
|
|
--POPTdesc=$"list trigger scriptlets from package(s)"
|
2000-06-01 01:39:01 +08:00
|
|
|
|
2000-07-10 07:10:25 +08:00
|
|
|
rpmq alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
|
2001-07-08 03:15:17 +08:00
|
|
|
--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"
|
2000-06-01 01:39:01 +08:00
|
|
|
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmq alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
|
|
|
|
--POPTdesc=$"list all files from each package"
|
2000-05-25 01:53:35 +08:00
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmu alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2000-05-25 01:53:35 +08:00
|
|
|
rpmu alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmu alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmu alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmu alias --httpproxy --define '_httpproxy !#:+'
|
|
|
|
#==============================================================================
|
2001-07-08 03:15:17 +08:00
|
|
|
rpmv alias --dbpath --define '_dbpath !#:+' \
|
|
|
|
--POPTdesc=$"use <dir> as the directory for the database" \
|
|
|
|
--POPTargs=$"<dir>"
|
2000-05-25 01:53:35 +08:00
|
|
|
rpmv alias --ftpport --define '_ftpport !#:+'
|
|
|
|
rpmv alias --ftpproxy --define '_ftpproxy !#:+'
|
|
|
|
rpmv alias --httpport --define '_httpport !#:+'
|
|
|
|
rpmv alias --httpproxy --define '_httpproxy !#:+'
|
2001-04-10 20:36:45 +08:00
|
|
|
|
|
|
|
# \endverbatim
|
|
|
|
#*/
|