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.
|
|
|
|
|
1997-02-18 04:20:04 +08:00
|
|
|
rpm alias --provides --qf '[%{PROVIDES}\n]'
|
1997-01-31 03:57:47 +08:00
|
|
|
|
1997-07-23 00:29:09 +08:00
|
|
|
rpm alias --scripts --qf '\
|
1997-07-08 06:22:44 +08:00
|
|
|
%|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}|\
|
|
|
|
'
|
1997-01-31 03:57:47 +08:00
|
|
|
|
1997-12-31 03:25:51 +08:00
|
|
|
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"
|
1997-01-31 03:57:47 +08:00
|
|
|
|
1997-02-18 04:20:04 +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
|
|
|
|
1997-03-04 10:23:51 +08:00
|
|
|
rpm alias --requires --qf \
|
1997-02-18 04:20:04 +08:00
|
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
|
|
|
|
rpm alias -R --requires
|
|
|
|
|
1999-04-13 00:09:19 +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\
|
1997-02-18 04:20:04 +08:00
|
|
|
Description :\n%{DESCRIPTION}\n'
|
1997-06-17 02:21:37 +08:00
|
|
|
|
|
|
|
rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
|
1998-03-28 00:46:39 +08:00
|
|
|
|
|
|
|
rpm alias --triggerscripts --qf '\
|
|
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
|
|
%{TRIGGERSCRIPTS}\n]'
|
1998-08-12 02:24:48 +08:00
|
|
|
rpm alias --triggers --triggerscripts
|
1998-06-05 01:03:29 +08:00
|
|
|
|
1998-06-13 03:50:44 +08:00
|
|
|
rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)}|\n' \
|
|
|
|
--pipe "sort -r -n | sed 's,^..........,,' | awk '{printf(\"%-35s %-3s %-3s %2s %-8s %-4s\n\", $1, $2, $3, $4, $5, $6)}' "
|
1998-07-01 02:50:47 +08:00
|
|
|
|
|
|
|
rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
|
1998-08-12 02:24:48 +08:00
|
|
|
rpm exec --freshen freshen.sh
|
|
|
|
rpm alias -F --freshen
|