rpm快速查询软件包信息

rpm -qi $(rpm -qf $(which ls |grep -v ^alias))

[root@node1 ~]# which ls
alias ls='ls --color=auto'
        /bin/ls

[root@node1 ~]# rpm -qf /bin/ls
coreutils-8.22-24.el7_9.2.x86_64


[root@node1 ~]# rpm -qi $(rpm -qf $(which ls |grep -v ^alias))
Name        : coreutils
Version     : 8.22
Release     : 24.el7_9.2
Architecture: x86_64
Install Date: Thu 22 Sep 2022 11:01:00 AM CST
Group       : System Environment/Base
Size        : 14594210
License     : GPLv3+
Signature   : RSA/SHA256, Wed 18 Nov 2020 10:16:51 PM CST, Key ID 24c6a8a7f4a80eb5
Source RPM  : coreutils-8.22-24.el7_9.2.src.rpm
Build Date  : Tue 17 Nov 2020 06:24:59 AM CST
Build Host  : x86-01.bsys.centos.org
Relocations : (not relocatable)
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Vendor      : CentOS
URL         : http://www.gnu.org/software/coreutils/
Summary     : A set of basic GNU tools commonly used in shell scripts
Description :
These are the GNU core utilities.  This package is the combination of
the old GNU fileutils, sh-utils, and textutils packages.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.