From 8d129d0eadeaefe51d96acec2215afbcdfde9c10 Mon Sep 17 00:00:00 2001 From: hellozrh <455741807@qq.com> Date: Wed, 19 Jul 2023 15:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A6=BB=E7=BA=BF=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=97=B6=E4=BE=9D=E8=B5=96=E5=8C=85=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E3=80=81=E7=A6=BB=E7=BA=BFrpm=E5=8C=85=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=85=88=E5=90=8E=E9=A1=BA=E5=BA=8F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/offline.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/offline.md b/install/offline.md index d01e476..6177941 100644 --- a/install/offline.md +++ b/install/offline.md @@ -46,7 +46,9 @@ docker-ce.x86_64 3:19.03.1-3.el7 docker-ce-stable #### 下载到指定文件夹(A) ```bash -sudo yum install --downloadonly --downloaddir=/tmp/docker-19.03 docker-ce-19.03.8-3.el7 docker-ce-cli-19.03.8-3.el7 +mkdir -p /home/download/docker-ce-19 +cd /home/download/docker-ce-19 +sudo repotrack docker-ce-19.03.8-3.el7 docker-ce-cli-19.03.8-3.el7 ``` ```bash @@ -79,8 +81,9 @@ exiting because "Download Only" specified ``` #### 复制到目标服务器之后进入文件夹安装(C-N) +安装时不检查依赖 ```bash -yum install *.rpm +rpm -Uvh *.rpm --nodeps --force ``` #### 锁定软件版本(C-N)