文章目录
一、创建离线文件夹二、下载离线安装包(以nginx为例)四、安装离包五、验证安装
一、创建离线文件夹
[root@yue ~
]
[root@yue ~
]
dependences
[root@yue ~
]
二、下载离线安装包(以nginx为例)
该命令只会下载 docker离线安装包 并自动解决复杂的依赖问题,并不会安装.
[root@yue ~
]
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
正在解决依赖关系
--
> 正在检查事务
......
(24/24
): nginx-1.16.1-1.el7.x86_64.rpm
| 562 kB 00:00
--------------------------------------------------------------------------------
总计 11 MB/s
| 5.0 MB 00:00
exiting because
"Download Only" specified
[root@yue ~
]
centos-indexhtml-7-9.el7.centos.noarch.rpm
dejavu-fonts-common-2.33-6.el7.noarch.rpm
dejavu-sans-fonts-2.33-6.el7.noarch.rpm
fontconfig-2.13.0-4.3.el7.x86_64.rpm
fontpackages-filesystem-1.44-8.el7.noarch.rpm
freetype-2.8-14.el7.x86_64.rpm
gd-2.0.35-26.el7.x86_64.rpm
gperftools-libs-2.6.1-1.el7.x86_64.rpm
libjpeg-turbo-1.2.90-8.el7.x86_64.rpm
libpng-1.5.13-7.el7_2.x86_64.rpm
libX11-1.6.7-2.el7.x86_64.rpm
libX11-common-1.6.7-2.el7.noarch.rpm
libXau-1.0.8-2.1.el7.x86_64.rpm
libxcb-1.13-1.el7.x86_64.rpm
libXpm-3.5.12-1.el7.x86_64.rpm
libxslt-1.1.28-5.el7.x86_64.rpm
nginx-1.16.1-1.el7.x86_64.rpm
nginx-all-modules-1.16.1-1.el7.noarch.rpm
nginx-filesystem-1.16.1-1.el7.noarch.rpm
nginx-mod-http-image-filter-1.16.1-1.el7.x86_64.rpm
nginx-mod-http-perl-1.16.1-1.el7.x86_64.rpm
nginx-mod-http-xslt-filter-1.16.1-1.el7.x86_64.rpm
nginx-mod-mail-1.16.1-1.el7.x86_64.rpm
nginx-mod-stream-1.16.1-1.el7.x86_64.rpm
[root@yue ~
]
四、安装离包
[root@yue dependences
]
[root@yue dependences
]
/root/dependences
[root@yue dependences
]
警告:./nginx-1.16.1-1.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 352c64e5: NOKEY
准备中
...
正在升级/安装
...
1:libpng-2:1.5.13-7.el7_2
2:freetype-2.8-14.el7
3:fontpackages-filesystem-1.44-8.el
4:dejavu-fonts-common-2.33-6.el7
5:dejavu-sans-fonts-2.33-6.el7
6:fontconfig-2.13.0-4.3.el7
7:nginx-filesystem-1:1.16.1-1.el7
8:libxslt-1.1.28-5.el7
9:libXau-1.0.8-2.1.el7
10:libxcb-1.13-1.el7
11:libX11-common-1.6.7-2.el7
12:libX11-1.6.7-2.el7
13:libXpm-3.5.12-1.el7
14:libjpeg-turbo-1.2.90-8.el7
15:gd-2.0.35-26.el7
16:gperftools-libs-2.6.1-1.el7
17:centos-indexhtml-7-9.el7.centos
18:nginx-mod-http-image-filter-1:1.1
19:nginx-mod-http-perl-1:1.16.1-1.el
20:nginx-mod-http-xslt-filter-1:1.16
21:nginx-mod-mail-1:1.16.1-1.el7
22:nginx-all-modules-1:1.16.1-1.el7
23:nginx-1:1.16.1-1.el7
24:nginx-mod-stream-1:1.16.1-1.el7
正在清理/删除
...
25:freetype-2.4.11-15.el7
[root@yue dependences
]
五、验证安装
[root@yue dependences
]
nginx version: nginx/1.16.1
[root@yue dependences
]
root 3643 0.0 0.5 121540 5268 ? Ss 23:04 0:00 nginx: master process nginx
nginx 3659 0.0 0.4 121968 4280 ? S 23:06 0:00 nginx: worker process
root 3671 0.0 0.0 112724 996 pts/2 R+ 23:07 0:00
grep --color
=auto nginx