rpm/rpmpopt

33 lines
1.0 KiB
Plaintext
Raw Normal View History

rpm alias --provides --qf '[%{PROVIDES}\n]'
rpm alias --scripts --qf 'preinstall script:\n%{RPMTAG_PREIN}\
postinstall script:\
%{RPMTAG_POSTIN}\
preuninstall script:\
%{RPMTAG_PREUN}\
postuninstall script: %{RPMTAG_POSTUN}\
verify script:\
%{VERIFYSCRIPT}\n'
rpm alias --setperms -q --qf '[%{FILEMODES:octal} %{FILENAMES}\n]' \
--pipe "sed 's/^.../chmod /' | sh"
rpm alias --setugids -q --qf \
'[chown %{FILEUSERNAME}:%{FILEGROUPNAME} %{FILENAMES}\n]' \
--pipe "sh"
rpm alias --requires --qf \
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
rpm alias -R --requires
rpm alias --info --qf 'Name : %-27{NAME} Distribution: %{DISTRIBUTION}\
Version : %-27{VERSION} Vendor: %{VENDOR}\
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\
Install date: %-27{INSTALLTIME:date} Build Host: %{BUILDHOST}\
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\
Size : %{SIZE}\
Packager : %{PACKAGER}\
URL : %{URL}\
Summary : %{SUMMARY}\
Description :\n%{DESCRIPTION}\n'