在学习centos8的时候,遇到安装软件默认是无法指定安装版本的,所以就写一篇教程
1.搜索软件仓库中某个特定软件的所有可安装版本和相关插件等信息(下面拿NGINX软件举例子)
dnf --showduplicates search nginx
2.查看软件仓库中某个特定软件的所有可安装版本(下面拿NGINX软件举例子)
dnf --showduplicates list nginx
3.安装特定软件版本时,需要输入软件的精确名称与版本号才可以
[root@localhost ~]# yum --showduplicates search nginx 上次元数据过期检查:0:35:15 前,执行于 2023年01月09日 星期一 15时43分09秒。 ======================================================================================================== 名称 精准匹配:nginx ========================================================================================================= nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : A high performance web server and reverse proxy server nginx-1.16.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.16.1-1.el8.ngx.x86_64 : High performance web server nginx-1:1.18.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.18.0-2.el8.ngx.x86_64 : High performance web server nginx-1:1.20.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.20.1-1.el8.ngx.x86_64 : High performance web server nginx-1:1.20.2-1.el8.ngx.x86_64 : High performance web server nginx-1:1.22.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.22.1-1.el8.ngx.x86_64 : High performance web server ====================================================================================================== 名称 和 概况 匹配:nginx ======================================================================================================= collectd-nginx-5.9.0-5.el8.x86_64 : Nginx plugin for collectd munin-nginx-2.0.69-5.el8.noarch : NGINX support for Munin resource monitoring nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch : A meta package that installs all available Nginx modules nginx-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch : The basic directory layout for the Nginx server nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx HTTP image filter module nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx HTTP perl module nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx XSLT module nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx mail modules nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx stream modules nginx-module-image-filter-1.16.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.16.1-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.18.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.18.0-2.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.20.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.20.1-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.20.2-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.22.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.22.1-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-njs-1.16.0.0.3.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.0.0.3.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.4-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.5-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.6-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.7-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.8-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0+0.5.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0+0.5.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0+0.5.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.3.9-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.4-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.4-2.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.0+0.5.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.5.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.6.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.6.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.6.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.7.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.4-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.5-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.6-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.7-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.1+0.7.7-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.1+0.7.8-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.1+0.7.9-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-debuginfo-1.16.0.0.3.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.0.0.3.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.4-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.5-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.6-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.7-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.8-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0+0.5.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0+0.5.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0+0.5.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.3.9-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.4-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.4-2.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.0+0.5.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.5.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.6.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.6.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.6.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.7.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.4-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.5-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.6-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.7-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.1+0.7.7-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.1+0.7.8-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.1+0.7.9-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-perl-1.16.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.16.1-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.18.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.18.0-2.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.20.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.20.1-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.20.2-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.22.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.22.1-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-xslt-1.16.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.16.1-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.18.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.18.0-2.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.20.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.20.1-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.20.2-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.22.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.22.1-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt pagure-web-nginx-5.13.3-2.el8.noarch : Nginx configuration for Pagure pcp-pmda-nginx-5.3.1-5.el8.x86_64 : Performance Co-Pilot (PCP) metrics for the Nginx Webserver python3-certbot-nginx-1.22.0-1.el8.noarch : The nginx plugin for certbot [root@localhost ~]# clear [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# dnf --showduplicates search nginx 上次元数据过期检查:1:01:50 前,执行于 2023年01月09日 星期一 15时43分09秒。 ======================================================================================================== 名称 精准匹配:nginx ========================================================================================================= nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : A high performance web server and reverse proxy server nginx-1.16.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.16.1-1.el8.ngx.x86_64 : High performance web server nginx-1:1.18.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.18.0-2.el8.ngx.x86_64 : High performance web server nginx-1:1.20.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.20.1-1.el8.ngx.x86_64 : High performance web server nginx-1:1.20.2-1.el8.ngx.x86_64 : High performance web server nginx-1:1.22.0-1.el8.ngx.x86_64 : High performance web server nginx-1:1.22.1-1.el8.ngx.x86_64 : High performance web server ====================================================================================================== 名称 和 概况 匹配:nginx ======================================================================================================= collectd-nginx-5.9.0-5.el8.x86_64 : Nginx plugin for collectd munin-nginx-2.0.69-5.el8.noarch : NGINX support for Munin resource monitoring nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch : A meta package that installs all available Nginx modules nginx-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx nginx-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch : The basic directory layout for the Nginx server nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx HTTP image filter module nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx HTTP perl module nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx XSLT module nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx mail modules nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64 : Nginx stream modules nginx-module-image-filter-1.16.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.16.1-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.18.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.18.0-2.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.20.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.20.1-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.20.2-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.22.0-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-1:1.22.1-1.el8.ngx.x86_64 : nginx image filter dynamic module nginx-module-image-filter-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-image-filter-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-image-filter nginx-module-njs-1.16.0.0.3.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.0.0.3.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.4-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.5-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.6-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.7-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.16.1.0.3.8-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0+0.5.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0+0.5.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0+0.5.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.3.9-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.4-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.18.0.0.4.4-2.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.0+0.5.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.5.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.6.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.6.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.6.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.1+0.7.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.0-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.1-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.2-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.20.2+0.7.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.3-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.4-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.5-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.6-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.0+0.7.7-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.1+0.7.7-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.1+0.7.8-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-1:1.22.1+0.7.9-1.el8.ngx.x86_64 : nginx njs dynamic modules nginx-module-njs-debuginfo-1.16.0.0.3.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.0.0.3.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.4-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.5-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.6-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.7-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.16.1.0.3.8-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0+0.5.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0+0.5.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0+0.5.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.3.9-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.4-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.18.0.0.4.4-2.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.0+0.5.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.5.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.6.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.6.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.6.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.1+0.7.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.20.2+0.7.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.3-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.4-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.5-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.6-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.0+0.7.7-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.1+0.7.7-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.1+0.7.8-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-njs-debuginfo-1:1.22.1+0.7.9-1.el8.ngx.x86_64 : Debug information for package nginx-module-njs nginx-module-perl-1.16.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.16.1-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.18.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.18.0-2.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.20.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.20.1-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.20.2-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.22.0-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-1:1.22.1-1.el8.ngx.x86_64 : nginx Perl dynamic module nginx-module-perl-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-perl-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-perl nginx-module-xslt-1.16.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.16.1-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.18.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.18.0-2.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.20.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.20.1-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.20.2-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.22.0-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-1:1.22.1-1.el8.ngx.x86_64 : nginx xslt dynamic module nginx-module-xslt-debuginfo-1.16.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.16.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.18.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.18.0-2.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.20.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.20.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.20.2-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.22.0-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt nginx-module-xslt-debuginfo-1:1.22.1-1.el8.ngx.x86_64 : Debug information for package nginx-module-xslt pagure-web-nginx-5.13.3-2.el8.noarch : Nginx configuration for Pagure pcp-pmda-nginx-5.3.1-5.el8.x86_64 : Performance Co-Pilot (PCP) metrics for the Nginx Webserver python3-certbot-nginx-1.22.0-1.el8.noarch : The nginx plugin for certbot [root@localhost ~]#
4.比如需要安装 nginx-1:1.20.2-1.el8.ngx.x86_64 软件,如下:
dnf install -y nginx-1:1.20.2-1.el8.ngx.x86_64
5.查看软件安装的详细信息
[root@localhost ~]# dnf info nginx
上次元数据过期检查:1:08:09 前,执行于 2023年01月09日 星期一 15时43分09秒。
已安装的软件包
名称 : nginx
时期 : 1
版本 : 1.20.2
发布 : 1.el8.ngx
架构 : x86_64
大小 : 2.8 M
源 : nginx-1.20.2-1.el8.ngx.src.rpm
仓库 : @System
来自仓库 : nginx-stable
概况 : High performance web server
URL : https://nginx.org/
协议 : 2-clause BSD-like license
描述 : nginx [engine x] is an HTTP and reverse proxy server, as well as
: a mail proxy server.
可安装的软件包
名称 : nginx
时期 : 1
版本 : 1.22.1
发布 : 1.el8.ngx
架构 : x86_64
大小 : 828 k
源 : nginx-1.22.1-1.el8.ngx.src.rpm
仓库 : nginx-stable
概况 : High performance web server
URL : https://nginx.org/
协议 : 2-clause BSD-like license
描述 : nginx [engine x] is an HTTP and reverse proxy server, as well as
: a mail proxy server.
[root@localhost ~]#
6.如果你搜索结果只有一个版本或者没有结果,说明你的软件仓库可能没有此软件的更多版本或者干脆没有此软件,此时就需要额外添加DNF源进去。
7.创建NGINX源文件
vi /etc/yum.repos.d/nginx.repo
8.把下面内容添加进去
[nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true
9.清理并重新生成dnf缓存
#清理dnf缓存 dnf clean all #重新生成dnf缓存 dnf makecache
10.如果下载速度偏慢,是因为NGINX服务器在海外的原因。