yumでパッケージの内容を表示する

3481 ワード

yumでパッケージの内容を表示する

  • 1.yum-utilsパッケージ
  • のインストール
  • 2.パッケージの内容を表示する
  • 1.yum-utilsパッケージのインストール


    yum install -y yum-utils

    2.パッケージの内容の表示

    repoquery -qlis --provides --location を実行すると、指定したパッケージ内のファイルのリストが表示されます.
  • providesディスプレイソフトウェア(x 86およびx 64)のバージョン番号
  • 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 
    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 
    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