本文最后更新于 35 天前,其中的信息可能已经有所发展或是发生改变。
[centos@localhost nginx-1.16.1]$ :<<!
先用 yum 查找 'libxml2' 库,知道存在包 `libxml2-devel.x86_64` 需要安装
!
[centos@localhost nginx-1.16.1]$ yum search libxml2
已加载插件:fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
========================================== N/S matched: libxml2 ===========================================
libxml2-python.x86_64 : Python bindings for the libxml2 library
libxml2-static.i686 : Static library for libxml2
libxml2-static.x86_64 : Static library for libxml2
libxml2.i686 : Library providing XML and HTML support
libxml2.x86_64 : Library providing XML and HTML support
libxml2-devel.i686 : Libraries, includes, etc. to develop XML and HTML applications
libxml2-devel.x86_64 : Libraries, includes, etc. to develop XML and HTML applications
perl-XML-LibXML.x86_64 : Perl interface to the libxml2 library
python-lxml.x86_64 : ElementTree-like Python bindings for libxml2 and libxslt
名称和简介匹配 only,使用“search all”试试。
[centos@localhost nginx-1.16.1]$ :<<!
先用 yum 查找 'libxslt' 库,知道存在包 `libxslt-devel.x86_64` 需要安装
!
[centos@localhost nginx-1.16.1]$ yum search libxslt
已加载插件:fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
========================================== N/S matched: libxslt ===========================================
libxslt-devel.i686 : Development files for libxslt
libxslt-devel.x86_64 : Development files for libxslt
libxslt-python.x86_64 : Python bindings for the libxslt library
perl-XML-LibXSLT.x86_64 : Perl module for interfacing to GNOME's libxslt
libxslt.i686 : Library providing the Gnome XSLT engine
libxslt.x86_64 : Library providing the Gnome XSLT engine
python-lxml.x86_64 : ElementTree-like Python bindings for libxml2 and libxslt
名称和简介匹配 only,使用“search all”试试。
[centos@localhost nginx-1.16.1]$ # 安装 libxml2-devel.x86_64 库
[centos@localhost nginx-1.16.1]$ sudo yum install -y libxml2-devel.x86_64
[centos@localhost nginx-1.16.1]$ # 安装 libxslt-devel.x86_64 库
[centos@localhost nginx-1.16.1]$ sudo yum install -y libxslt-devel.x86_64