使用RPM找出某个命令属于哪个包(在RPM系统上)

・1 分钟阅读

找出某个命令属于哪个包(在RPM系统上)

rpm -qif `which more`
用PATH中的任何命令替换'more '命令。
示例输出
Name : util-linux-ng Relocations: (not relocatable)
Version : 2.13.1 Vendor: Fedora Project
Release : 2.fc8 Build Date: wto, 22 kwi 2008, 22:24:21
Install Date: pon, 5 maj 2008, 14:11:10 Build Host: xenbuilder1.fedora.redhat.com
Group : System Environment/Base Source RPM: util-linux-ng-2.13.1-2.fc8.src.rpm
Size : 5028446 License: GPLv2 and GPLv2+ and BSD with advertising and Public Domain
Signature : DSA/SHA1, pon, 28 kwi 2008, 21:31:42, Key ID b44269d04f2a6fd2
Packager : Fedora Project
URL : ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng
Summary : A collection of basic system utilities
Description :
The util-linux-ng package contains a large variety of low-level system
utilities that are necessary for a Linux system to function. Among
others, Util-linux contains the fdisk configuration tool and the login
program.
Hujiuxiang profile image