用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