修复离线安装时依赖包下载、离线rpm包安装依赖先后顺序的问题。

This commit is contained in:
hellozrh 2023-07-19 15:20:16 +08:00 committed by GitHub
parent 85c5a280a4
commit 8d129d0ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,9 @@ docker-ce.x86_64 3:19.03.1-3.el7 docker-ce-stable
#### 下载到指定文件夹(A) #### 下载到指定文件夹(A)
```bash ```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 ```bash
@ -79,8 +81,9 @@ exiting because "Download Only" specified
``` ```
#### 复制到目标服务器之后进入文件夹安装(C-N) #### 复制到目标服务器之后进入文件夹安装(C-N)
安装时不检查依赖
```bash ```bash
yum install *.rpm rpm -Uvh *.rpm --nodeps --force
``` ```
#### 锁定软件版本(C-N) #### 锁定软件版本(C-N)