[Rpm] rpm related format_str, formatted output query package contents

According to different tabs to view information about packages.

 

# Export LANG = en_US.UTF-8

# yum info httpd

You are free to define the output format:

# rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n'   httpd

# rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n'   -p   httpd-2.4.6-88.el7.centos.x86_64.rpm

# rpm -q --qf   '%{summary}\n%{description}\n'   httpd

reference

How to RPM Query for Packages on Linux

https://linoxide.com/linux-command/how-to-rpm-query-packages-on-linux/

 

rpm -qa and architecture info

https://www.redhat.com/archives/redhat-list/2010-March/029638.html

 

Querying for RPM package infomation

https://www.ibm.com/support/knowledgecenter/en/SS2MB5_14.1.0/com.ibm.xlf141.bg.doc/install/query_rpm.html

 

CentOS: List the installed RPMs by date of installation/update?

https://unix.stackexchange.com/questions/2291/centos-list-the-installed-rpms-by-date-of-installation-update?noredirect=1&lq=1

https://books.google.ca/books?id=PrepsktXgScC&pg=PA749&dq=rpm+-q+--qf&hl=zh-CN&sa=X&ved=0ahUKEwjxsZ-KybbhAhWZHDQIHW7yCy8Q6AEIKzAA#v=onepage&q=rpm%20-q%20--qf&f=false

Guess you like

Origin blog.csdn.net/michaelwoshi/article/details/94279996
rpm