用yum查看包的内容

用yum查看包的内容

1.安装yum-utils包

yum install -y yum-utils

2.查看包的内容

执行repoquery -qlis --provides --location <包名>,就能查到指定的包内的文件列表
其中:

  • provides显示软件(x86和x64)的版本号
  • location显示下载的URL

pcre为例说明:
repoquery -qlis --provides --location pcre
输出如下:

Name        : pcre
Version     : 8.32
Release     : 17.el7
Architecture: i686  ----这里是X86架构的包,X86_64的包在后面
Size        : 1496060
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Group       : System Environment/Libraries
URL         : http://www.pcre.org/
Repository  : base
Summary     : Perl-compatible regular expression library
Source      : pcre-8.32-17.el7.src.rpm
Description :
Perl-compatible regular expression library.
PCRE has its own native API, but a set of "wrapper" functions that are based on
the POSIX API are also supplied in the library libpcreposix. Note that this
just provides a POSIX calling interface to PCRE: the regular expressions
themselves still follow Perl syntax and semantics. The header file
for the POSIX-style functions is called pcreposix.h.
libpcre.so.1
libpcre16.so.0
libpcre32.so.0
libpcrecpp.so.0
libpcreposix.so.0
pcre = 8.32-17.el7 --版本
pcre(x86-32) = 8.32-17.el7
#以下是包内的文件列表
/usr/lib/libpcre.so.1
/usr/lib/libpcre.so.1.2.0
/usr/lib/libpcre16.so.0
/usr/lib/libpcre16.so.0.2.0
/usr/lib/libpcre32.so.0
/usr/lib/libpcre32.so.0.0.0
/usr/lib/libpcrecpp.so.0
/usr/lib/libpcrecpp.so.0.0.0
/usr/lib/libpcreposix.so.0
/usr/lib/libpcreposix.so.0.0.1
/usr/share/doc/pcre-8.32
/usr/share/doc/pcre-8.32/AUTHORS
/usr/share/doc/pcre-8.32/COPYING
/usr/share/doc/pcre-8.32/ChangeLog
/usr/share/doc/pcre-8.32/LICENCE
/usr/share/doc/pcre-8.32/NEWS
/usr/share/doc/pcre-8.32/README
#下面是下载的地址
http://mirrors.njupt.edu.cn/centos/7.5.1804/os/x86_64/Packages/pcre-8.32-17.el7.i686.rpm

#以下是X86_64架构的包
Name        : pcre
Version     : 8.32
Release     : 17.el7
Architecture: x86_64
Size        : 1475532
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Group       : System Environment/Libraries
URL         : http://www.pcre.org/
Repository  : base
Summary     : Perl-compatible regular expression library
Source      : pcre-8.32-17.el7.src.rpm
Description :
Perl-compatible regular expression library.
PCRE has its own native API, but a set of "wrapper" functions that are based on
the POSIX API are also supplied in the library libpcreposix. Note that this
just provides a POSIX calling interface to PCRE: the regular expressions
themselves still follow Perl syntax and semantics. The header file
for the POSIX-style functions is called pcreposix.h.
libpcre.so.1()(64bit)
libpcre16.so.0()(64bit)
libpcre32.so.0()(64bit)
libpcrecpp.so.0()(64bit)
libpcreposix.so.0()(64bit)
pcre = 8.32-17.el7
pcre(x86-64) = 8.32-17.el7
/usr/lib64/libpcre.so.1
/usr/lib64/libpcre.so.1.2.0
/usr/lib64/libpcre16.so.0
/usr/lib64/libpcre16.so.0.2.0
/usr/lib64/libpcre32.so.0
/usr/lib64/libpcre32.so.0.0.0
/usr/lib64/libpcrecpp.so.0
/usr/lib64/libpcrecpp.so.0.0.0
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.1
/usr/share/doc/pcre-8.32
/usr/share/doc/pcre-8.32/AUTHORS
/usr/share/doc/pcre-8.32/COPYING
/usr/share/doc/pcre-8.32/ChangeLog
/usr/share/doc/pcre-8.32/LICENCE
/usr/share/doc/pcre-8.32/NEWS
/usr/share/doc/pcre-8.32/README
http://mirrors.njupt.edu.cn/centos/7.5.1804/os/x86_64/Packages/pcre-8.32-17.el7.x86_64.rpm
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值