[root@docker ~]#
[root@docker ~]# yum install --downloadonly --downloaddir=/tmp/ docker-ce docker-ce-cli containerd.io
Loaded plugins: ulninfo
ol7_UEKR6 | 3.0 kB 00:00:00
ol7_latest | 3.6 kB 00:00:00
No package docker-ce available.
No package docker-ce-cli available.
No package containerd.io available.
Error: Nothing to do
---------------------
1. 联网机获取rpm包
这一步其实就是通过downloadonly参数来下载rpm包
创建一个你喜欢的目录,我这里是
mkdir -p /usr/local/rpms/nginx
下载包
yum install --downloadonly --downloaddir=/usr/local/rpms/nginx nginx 多个可以放一起
yum reinstall --downloadonly --downloaddir=/usr/local/rpms/nginx nginx reinstall 依赖装不全
2. 将rpm拷贝不能联网的机
找一个最舒服的方式,把/usr/local/rpms/nginx的东西,拷贝到目标机器的/usr/local/rpms/nginx目录中(其实什么目录无所谓,我就是弄了一个一样名字的目录)
3. 在不能联网机使用yum localinstall
yum localinstall /usr/local/rpms/nginx/*.rpm
不是local locally这些option
-----添加docker源
[root@docker ~]# yum-config-manager \
> --add-repo \
> https://download.docker.com/linux/centos/docker-ce.repo
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@docker ~]# yum install --downloadonly --downloaddir=/tmp/ docker-ce docker-ce-cli containerd.io
Loaded plugins: ulninfo
docker-ce-stable | 3.5 kB 00:00:00
(1/2): docker-ce-stable/7Server/x86_64/updateinfo | 55 B 00:00:01
(2/2): docker-ce-stable/7Server/x86_64/primary_db | 91 kB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.14-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.14-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:20.10.22-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.22-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.22-3.el7.x86_64
--> Processing Dependency: libcgroup for package: 3:docker-ce-20.10.22-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:20.10.22-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.22-3.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.14-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.14-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:20.10.22-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.22-3.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:20.10.22-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64
---> Package docker-scan-plugin.x86_64 0:0.23.0-3.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
--> Finished Dependency Resolution
Error: Package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64 (docker-ce-stable)
Requires: fuse-overlayfs >= 0.7
Error: Package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64 (docker-ce-stable)
Requires: slirp4netns >= 0.4
Error: Package: 3:docker-ce-20.10.22-3.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
Error: Package: containerd.io-1.6.14-3.1.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
------------添加Oracle 开发仓库
[root@docker ~]# cd /etc/y*d/
[root@docker yum.repos.d]# ls
docker-ce.repo oracle-linux-ol7.repo uek-ol7.repo virt-ol7.repo
[root@docker yum.repos.d]# wget http://public-yum.oracle.com/public-yum-ol7.repo
--2023-01-07 00:21:07-- http://public-yum.oracle.com/public-yum-ol7.repo
Resolving public-yum.oracle.com (public-yum.oracle.com)... 23.40.193.57, 2600:140e:6:886::2a7d, 2600:140e:6:884::2a7d
Connecting to public-yum.oracle.com (public-yum.oracle.com)|23.40.193.57|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://public-yum.oracle.com/public-yum-ol7.repo [following]
--2023-01-07 00:21:07-- https://public-yum.oracle.com/public-yum-ol7.repo
Connecting to public-yum.oracle.com (public-yum.oracle.com)|23.40.193.57|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16402 (16K) [text/plain]
Saving to: ‘public-yum-ol7.repo’
100%[===========================================================================================================================>] 16,402 --.-K/s in 0s
2023-01-07 00:21:07 (94.3 MB/s) - ‘public-yum-ol7.repo’ saved [16402/16402]
[root@docker yum.repos.d]# ls
docker-ce.repo oracle-linux-ol7.repo public-yum-ol7.repo uek-ol7.repo virt-ol7.repo
[root@docker yum.repos.d]# vi public-yum-ol7.repo
-------
[ol7_developer]
name=Oracle Linux $releasever Development Packages ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1----------------------0-1
--
[root@docker yum.repos.d]# yum install --downloadonly --downloaddir=/tmp/ docker-ce docker-ce-cli containerd.io
Loaded plugins: ulninfo
Repository ol7_latest is listed more than once in the configuration
Repository ol7_u0_base is listed more than once in the configuration
Repository ol7_u1_base is listed more than once in the configuration
Repository ol7_u2_base is listed more than once in the configuration
Repository ol7_u3_base is listed more than once in the configuration
Repository ol7_u4_base is listed more than once in the configuration
Repository ol7_u5_base is listed more than once in the configuration
Repository ol7_u6_base is listed more than once in the configuration
Repository ol7_u7_base is listed more than once in the configuration
Repository ol7_security_validation is listed more than once in the configuration
Repository ol7_optional_latest is listed more than once in the configuration
Repository ol7_addons is listed more than once in the configuration
Repository ol7_MODRHCK is listed more than once in the configuration
Repository ol7_latest_archive is listed more than once in the configuration
Repository ol7_optional_archive is listed more than once in the configuration
Repository ol7_UEKR5 is listed more than once in the configuration
Repository ol7_UEKR4 is listed more than once in the configuration
Repository ol7_UEKR3 is listed more than once in the configuration
Repository ol7_UEKR3_OFED20 is listed more than once in the configuration
Repository ol7_UEKR5_RDMA is listed more than once in the configuration
Repository ol7_UEKR4_OFED is listed more than once in the configuration
Repository ol7_UEKR4_archive is listed more than once in the configuration
Repository ol7_UEKR5_archive is listed more than once in the configuration
Repository ol7_kvm_utils is listed more than once in the configuration
ol7_UEKR5 | 3.0 kB 00:00:00
ol7_developer | 3.0 kB 00:00:00
(1/4): ol7_developer/x86_64/updateinfo | 243 kB 00:00:00
(2/4): ol7_UEKR5/x86_64/updateinfo | 335 kB 00:00:01
(3/4): ol7_developer/x86_64/primary_db | 1.1 MB 00:00:01
(4/4): ol7_UEKR5/x86_64/primary_db | 61 MB 00:00:03
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.14-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.14-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:20.10.22-3.el7 will be installed
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.22-3.el7.x86_64
--> Processing Dependency: libcgroup for package: 3:docker-ce-20.10.22-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:20.10.22-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.22-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch
---> Package docker-ce-rootless-extras.x86_64 0:20.10.22-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64
---> Package docker-scan-plugin.x86_64 0:0.23.0-3.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
--> Running transaction check
---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
---> Package policycoreutils-python.x86_64 0:2.5-34.0.1.el7 will be installed
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.5-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================
Installing:
containerd.io x86_64 1.6.14-3.1.el7 docker-ce-stable 33 M
docker-ce x86_64 3:20.10.22-3.el7 docker-ce-stable 22 M
docker-ce-cli x86_64 1:20.10.22-3.el7 docker-ce-stable 30 M
Installing for dependencies:
audit-libs-python x86_64 2.8.5-4.el7 ol7_latest 76 k
checkpolicy x86_64 2.5-8.el7 ol7_latest 294 k
container-selinux noarch 2:2.119.2-1.911c772.el7_8 ol7_developer 39 k
docker-ce-rootless-extras x86_64 20.10.22-3.el7 docker-ce-stable 8.5 M
docker-scan-plugin x86_64 0.23.0-3.el7 docker-ce-stable 3.8 M
fuse-overlayfs x86_64 0.7.2-6.el7_8 ol7_developer 54 k
fuse3-libs x86_64 3.6.1-4.el7 ol7_developer 81 k
libcgroup x86_64 0.41-21.el7 ol7_latest 66 k
libsemanage-python x86_64 2.5-14.el7 ol7_latest 112 k
policycoreutils-python x86_64 2.5-34.0.1.el7 ol7_latest 457 k
python-IPy noarch 0.75-6.el7 ol7_latest 32 k
setools-libs x86_64 3.3.8-4.el7 ol7_latest 620 k
slirp4netns x86_64 0.4.3-4.el7_8 ol7_developer 81 k
Transaction Summary
=====================================================================================================================================================================
Install 3 Packages (+13 Dependent packages)
Total download size: 98 M
Installed size: 361 M
Background downloading packages, then exiting:
(1/16): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:00
(2/16): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm | 39 kB 00:00:02
(3/16): checkpolicy-2.5-8.el7.x86_64.rpm | 294 kB 00:00:02
warning: /tmp/ /docker-ce-20.10.22-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY ] 5.7 MB/s | 32 MB 00:00:11 ETA
Public key for docker-ce-20.10.22-3.el7.x86_64.rpm is not installed
(4/16): docker-ce-20.10.22-3.el7.x86_64.rpm | 22 MB 00:00:04
(5/16): containerd.io-1.6.14-3.1.el7.x86_64.rpm | 33 MB 00:00:04
(6/16): docker-ce-rootless-extras-20.10.22-3.el7.x86_64.rpm | 8.5 MB 00:00:00
(7/16): docker-scan-plugin-0.23.0-3.el7.x86_64.rpm | 3.8 MB 00:00:00
(8/16): docker-ce-cli-20.10.22-3.el7.x86_64.rpm | 30 MB 00:00:02
(9/16): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm | 54 kB 00:00:01
(10/16): libcgroup-0.41-21.el7.x86_64.rpm | 66 kB 00:00:01
(11/16): policycoreutils-python-2.5-34.0.1.el7.x86_64.rpm | 457 kB 00:00:00
(12/16): libsemanage-python-2.5-14.el7.x86_64.rpm | 112 kB 00:00:00
(13/16): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00
(14/16): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:00
(15/16): fuse3-libs-3.6.1-4.el7.x86_64.rpm | 81 kB 00:00:02
(16/16): slirp4netns-0.4.3-4.el7_8.x86_64.rpm | 81 kB 00:00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 98 MB 00:00:09
exiting because "Download Only" specified
[root@docker tmp]# rm -rf *
[root@docker tmp]# ls
[root@docker tmp]# yum install --downloadonly --downloaddir=/tmp/yumdocker docker-ce docker-ce-cli containerd.io
Loaded plugins: ulninfo
Repository ol7_latest is listed more than once in the configuration
Repository ol7_u0_base is listed more than once in the configuration
Repository ol7_u1_base is listed more than once in the configuration
Repository ol7_u2_base is listed more than once in the configuration
Repository ol7_u3_base is listed more than once in the configuration
Repository ol7_u4_base is listed more than once in the configuration
Repository ol7_u5_base is listed more than once in the configuration
Repository ol7_u6_base is listed more than once in the configuration
Repository ol7_u7_base is listed more than once in the configuration
Repository ol7_security_validation is listed more than once in the configuration
Repository ol7_optional_latest is listed more than once in the configuration
Repository ol7_addons is listed more than once in the configuration
Repository ol7_MODRHCK is listed more than once in the configuration
Repository ol7_latest_archive is listed more than once in the configuration
Repository ol7_optional_archive is listed more than once in the configuration
Repository ol7_UEKR5 is listed more than once in the configuration
Repository ol7_UEKR4 is listed more than once in the configuration
Repository ol7_UEKR3 is listed more than once in the configuration
Repository ol7_UEKR3_OFED20 is listed more than once in the configuration
Repository ol7_UEKR5_RDMA is listed more than once in the configuration
Repository ol7_UEKR4_OFED is listed more than once in the configuration
Repository ol7_UEKR4_archive is listed more than once in the configuration
Repository ol7_UEKR5_archive is listed more than once in the configuration
Repository ol7_kvm_utils is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package containerd.io.x86_64 0:1.6.14-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.6.14-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:20.10.22-3.el7 will be installed
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.22-3.el7.x86_64
--> Processing Dependency: libcgroup for package: 3:docker-ce-20.10.22-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:20.10.22-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.22-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch
---> Package docker-ce-rootless-extras.x86_64 0:20.10.22-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.22-3.el7.x86_64
---> Package docker-scan-plugin.x86_64 0:0.23.0-3.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
--> Running transaction check
---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed
--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64
---> Package policycoreutils-python.x86_64 0:2.5-34.0.1.el7 will be installed
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-34.0.1.el7.x86_64
---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.5-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================================================================
Installing:
containerd.io x86_64 1.6.14-3.1.el7 docker-ce-stable 33 M
docker-ce x86_64 3:20.10.22-3.el7 docker-ce-stable 22 M
docker-ce-cli x86_64 1:20.10.22-3.el7 docker-ce-stable 30 M
Installing for dependencies:
audit-libs-python x86_64 2.8.5-4.el7 ol7_latest 76 k
checkpolicy x86_64 2.5-8.el7 ol7_latest 294 k
container-selinux noarch 2:2.119.2-1.911c772.el7_8 ol7_developer 39 k
docker-ce-rootless-extras x86_64 20.10.22-3.el7 docker-ce-stable 8.5 M
docker-scan-plugin x86_64 0.23.0-3.el7 docker-ce-stable 3.8 M
fuse-overlayfs x86_64 0.7.2-6.el7_8 ol7_developer 54 k
fuse3-libs x86_64 3.6.1-4.el7 ol7_developer 81 k
libcgroup x86_64 0.41-21.el7 ol7_latest 66 k
libsemanage-python x86_64 2.5-14.el7 ol7_latest 112 k
policycoreutils-python x86_64 2.5-34.0.1.el7 ol7_latest 457 k
python-IPy noarch 0.75-6.el7 ol7_latest 32 k
setools-libs x86_64 3.3.8-4.el7 ol7_latest 620 k
slirp4netns x86_64 0.4.3-4.el7_8 ol7_developer 81 k
Transaction Summary
=========================================================================================================================================================================================================
Install 3 Packages (+13 Dependent packages)
Total download size: 98 M
Installed size: 361 M
Background downloading packages, then exiting:
(1/16): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:00
(2/16): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm | 39 kB 00:00:00
(3/16): checkpolicy-2.5-8.el7.x86_64.rpm | 294 kB 00:00:00
warning: /tmp/yumdocker/docker-ce-20.10.22-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY ] 3.9 MB/s | 20 MB 00:00:20 ETA
Public key for docker-ce-20.10.22-3.el7.x86_64.rpm is not installed
(4/16): docker-ce-20.10.22-3.el7.x86_64.rpm | 22 MB 00:00:03
(5/16): containerd.io-1.6.14-3.1.el7.x86_64.rpm | 33 MB 00:00:04
(6/16): docker-ce-cli-20.10.22-3.el7.x86_64.rpm | 30 MB 00:00:01
(7/16): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm | 54 kB 00:00:00
(8/16): libsemanage-python-2.5-14.el7.x86_64.rpm | 112 kB 00:00:00
(9/16): policycoreutils-python-2.5-34.0.1.el7.x86_64.rpm | 457 kB 00:00:00
(10/16): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00
(11/16): docker-scan-plugin-0.23.0-3.el7.x86_64.rpm | 3.8 MB 00:00:00
(12/16): docker-ce-rootless-extras-20.10.22-3.el7.x86_64.rpm | 8.5 MB 00:00:00
(13/16): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:00
(14/16): fuse3-libs-3.6.1-4.el7.x86_64.rpm | 81 kB 00:00:00
(15/16): libcgroup-0.41-21.el7.x86_64.rpm | 66 kB 00:00:00
(16/16): slirp4netns-0.4.3-4.el7_8.x86_64.rpm | 81 kB 00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 16 MB/s | 98 MB 00:00:06
exiting because "Download Only" specified
[root@docker tmp]# ls
yumdocker yum_save_tx.2023-01-07.00-36.N44LBO.yumtx
[root@docker tmp]# cd y*
[root@docker yumdocker]# ls
audit-libs-python-2.8.5-4.el7.x86_64.rpm docker-ce-20.10.22-3.el7.x86_64.rpm fuse3-libs-3.6.1-4.el7.x86_64.rpm policycoreutils-python-2.5-34.0.1.el7.x86_64.rpm
checkpolicy-2.5-8.el7.x86_64.rpm docker-ce-cli-20.10.22-3.el7.x86_64.rpm fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm python-IPy-0.75-6.el7.noarch.rpm
containerd.io-1.6.14-3.1.el7.x86_64.rpm docker-ce-rootless-extras-20.10.22-3.el7.x86_64.rpm libcgroup-0.41-21.el7.x86_64.rpm setools-libs-3.3.8-4.el7.x86_64.rpm
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm docker-scan-plugin-0.23.0-3.el7.x86_64.rpm libsemanage-python-2.5-14.el7.x86_64.rpm slirp4netns-0.4.3-4.el7_8.x86_64.rpm
[root@docker yumdocker]# docker
-bash: docker: command not found
[root@docker yumdocker]# rpm -ivh *
warning: containerd.io-1.6.14-3.1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:libcgroup-0.41-21.el7 ################################# [ 6%]
2:slirp4netns-0.4.3-4.el7_8 ################################# [ 13%]
3:setools-libs-3.3.8-4.el7 ################################# [ 19%]
4:python-IPy-0.75-6.el7 ################################# [ 25%]
5:libsemanage-python-2.5-14.el7 ################################# [ 31%]
6:fuse3-libs-3.6.1-4.el7 ################################# [ 38%]
7:fuse-overlayfs-0.7.2-6.el7_8 ################################# [ 44%]
8:docker-scan-plugin-0:0.23.0-3.el7################################# [ 50%]
9:docker-ce-cli-1:20.10.22-3.el7 ################################# [ 56%]
10:checkpolicy-2.5-8.el7 ################################# [ 63%]
11:audit-libs-python-2.8.5-4.el7 ################################# [ 69%]
12:policycoreutils-python-2.5-34.0.1################################# [ 75%]
13:container-selinux-2:2.119.2-1.911################################# [ 81%]
14:containerd.io-1.6.14-3.1.el7 ################################# [ 88%]
15:docker-ce-rootless-extras-0:20.10################################# [ 94%]
16:docker-ce-3:20.10.22-3.el7 ################################# [100%]
[root@docker yumdocker]# docker
-------mysql 安装类似
[root@docker yumdocker]# yum install --downloadonly --downloaddir=/tmp/mysql mysql
Loaded plugins: ulninfo
Repository ol7_latest is listed more than once in the configuration
Repository ol7_u0_base is listed more than once in the configuration
Repository ol7_u1_base is listed more than once in the configuration
Repository ol7_u2_base is listed more than once in the configuration
Repository ol7_u3_base is listed more than once in the configuration
Repository ol7_u4_base is listed more than once in the configuration
Repository ol7_u5_base is listed more than once in the configuration
Repository ol7_u6_base is listed more than once in the configuration
Repository ol7_u7_base is listed more than once in the configuration
Repository ol7_security_validation is listed more than once in the configuration
Repository ol7_optional_latest is listed more than once in the configuration
Repository ol7_addons is listed more than once in the configuration
Repository ol7_MODRHCK is listed more than once in the configuration
Repository ol7_latest_archive is listed more than once in the configuration
Repository ol7_optional_archive is listed more than once in the configuration
Repository ol7_UEKR5 is listed more than once in the configuration
Repository ol7_UEKR4 is listed more than once in the configuration
Repository ol7_UEKR3 is listed more than once in the configuration
Repository ol7_UEKR3_OFED20 is listed more than once in the configuration
Repository ol7_UEKR5_RDMA is listed more than once in the configuration
Repository ol7_UEKR4_OFED is listed more than once in the configuration
Repository ol7_UEKR4_archive is listed more than once in the configuration
Repository ol7_UEKR5_archive is listed more than once in the configuration
Repository ol7_kvm_utils is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.68-1.el7 will be installed
--> Processing Dependency: /usr/bin/perl for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Processing Dependency: perl(Exporter) for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Processing Dependency: perl(Fcntl) for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Processing Dependency: perl(File::Temp) for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Processing Dependency: perl(IPC::Open3) for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Processing Dependency: perl(Sys::Hostname) for package: 1:mariadb-5.5.68-1.el7.x86_64
--> Running transaction check
---> Package perl.x86_64 4:5.16.3-299.el7_9 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-299.el7_9 for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Cwd) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(File::Spec::Functions) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(File::Spec::Unix) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-299.el7_9.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-299.el7_9.x86_64
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
--> Running transaction check
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-5.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-299.el7_9 will be installed
---> Package perl-macros.x86_64 4:5.16.3-299.el7_9 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-299.el7_9 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================================================================
Installing:
mariadb x86_64 1:5.5.68-1.el7 ol7_latest 8.8 M
Installing for dependencies:
perl x86_64 4:5.16.3-299.el7_9 ol7_latest 8.0 M
perl-Carp noarch 1.26-244.el7 ol7_latest 19 k
perl-Encode x86_64 2.51-7.el7 ol7_latest 1.5 M
perl-Exporter noarch 5.68-3.el7 ol7_latest 28 k
perl-File-Path noarch 2.09-2.el7 ol7_latest 26 k
perl-File-Temp noarch 0.23.01-3.el7 ol7_latest 56 k
perl-Filter x86_64 1.49-3.el7 ol7_latest 76 k
perl-Getopt-Long noarch 2.40-3.el7 ol7_latest 55 k
perl-HTTP-Tiny noarch 0.033-3.el7 ol7_latest 38 k
perl-PathTools x86_64 3.40-5.el7 ol7_latest 82 k
perl-Pod-Escapes noarch 1:1.04-299.el7_9 ol7_latest 51 k
perl-Pod-Perldoc noarch 3.20-4.el7 ol7_latest 86 k
perl-Pod-Simple noarch 1:3.28-4.el7 ol7_latest 216 k
perl-Pod-Usage noarch 1.63-3.el7 ol7_latest 26 k
perl-Scalar-List-Utils x86_64 1.27-248.el7 ol7_latest 35 k
perl-Socket x86_64 2.010-5.el7 ol7_latest 48 k
perl-Storable x86_64 2.45-3.el7 ol7_latest 76 k
perl-Text-ParseWords noarch 3.29-4.el7 ol7_latest 13 k
perl-Time-HiRes x86_64 4:1.9725-3.el7 ol7_latest 44 k
perl-Time-Local noarch 1.2300-2.el7 ol7_latest 24 k
perl-constant noarch 1.27-2.el7 ol7_latest 18 k
perl-libs x86_64 4:5.16.3-299.el7_9 ol7_latest 689 k
perl-macros x86_64 4:5.16.3-299.el7_9 ol7_latest 44 k
perl-parent noarch 1:0.225-244.el7 ol7_latest 12 k
perl-podlators noarch 2.5.1-3.el7 ol7_latest 111 k
perl-threads x86_64 1.87-4.el7 ol7_latest 48 k
perl-threads-shared x86_64 1.43-6.el7 ol7_latest 38 k
Transaction Summary
=========================================================================================================================================================================================================
Install 1 Package (+27 Dependent packages)
Total download size: 20 M
Installed size: 85 M
Background downloading packages, then exiting:
(1/28): perl-5.16.3-299.el7_9.x86_64.rpm | 8.0 MB 00:00:01
(2/28): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00:00
(3/28): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:00:00
(4/28): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00:00
(5/28): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00:00
(6/28): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00:00
(7/28): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00:00
(8/28): perl-Getopt-Long-2.40-3.el7.noarch.rpm | 55 kB 00:00:00
(9/28): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00:00
(10/28): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00:00
(11/28): perl-Pod-Escapes-1.04-299.el7_9.noarch.rpm | 51 kB 00:00:00
(12/28): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 86 kB 00:00:00
(13/28): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00:00
(14/28): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 26 kB 00:00:00
(15/28): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 35 kB 00:00:00
(16/28): mariadb-5.5.68-1.el7.x86_64.rpm | 8.8 MB 00:00:02
(17/28): perl-Socket-2.010-5.el7.x86_64.rpm | 48 kB 00:00:00
(18/28): perl-Storable-2.45-3.el7.x86_64.rpm | 76 kB 00:00:00
(19/28): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 13 kB 00:00:00
(20/28): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 44 kB 00:00:00
(21/28): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00:00
(22/28): perl-constant-1.27-2.el7.noarch.rpm | 18 kB 00:00:00
(23/28): perl-libs-5.16.3-299.el7_9.x86_64.rpm | 689 kB 00:00:00
(24/28): perl-macros-5.16.3-299.el7_9.x86_64.rpm | 44 kB 00:00:00
(25/28): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00:00
(26/28): perl-podlators-2.5.1-3.el7.noarch.rpm | 111 kB 00:00:00
(27/28): perl-threads-1.87-4.el7.x86_64.rpm | 48 kB 00:00:00
(28/28): perl-threads-shared-1.43-6.el7.x86_64.rpm | 38 kB 00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 6.0 MB/s | 20 MB 00:00:03
exiting because "Download Only" specified
[root@docker yumdocker]# ls
audit-libs-python-2.8.5-4.el7.x86_64.rpm docker-ce-20.10.22-3.el7.x86_64.rpm fuse3-libs-3.6.1-4.el7.x86_64.rpm policycoreutils-python-2.5-34.0.1.el7.x86_64.rpm
checkpolicy-2.5-8.el7.x86_64.rpm docker-ce-cli-20.10.22-3.el7.x86_64.rpm fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm python-IPy-0.75-6.el7.noarch.rpm
containerd.io-1.6.14-3.1.el7.x86_64.rpm docker-ce-rootless-extras-20.10.22-3.el7.x86_64.rpm libcgroup-0.41-21.el7.x86_64.rpm setools-libs-3.3.8-4.el7.x86_64.rpm
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm docker-scan-plugin-0.23.0-3.el7.x86_64.rpm libsemanage-python-2.5-14.el7.x86_64.rpm slirp4netns-0.4.3-4.el7_8.x86_64.rpm
[root@docker yumdocker]# cd ../
[root@docker tmp]# ls
mysql yumdocker yum_save_tx.2023-01-07.00-36.N44LBO.yumtx yum_save_tx.2023-01-07.00-39.9RwUwi.yumtx
[root@docker tmp]# cd mysql
[root@docker mysql]# ls
mariadb-5.5.68-1.el7.x86_64.rpm perl-File-Temp-0.23.01-3.el7.noarch.rpm perl-PathTools-3.40-5.el7.x86_64.rpm perl-Socket-2.010-5.el7.x86_64.rpm
perl-5.16.3-299.el7_9.x86_64.rpm perl-Filter-1.49-3.el7.x86_64.rpm perl-Pod-Escapes-1.04-299.el7_9.noarch.rpm perl-Storable-2.45-3.el7.x86_64.rpm
perl-Carp-1.26-244.el7.noarch.rpm perl-Getopt-Long-2.40-3.el7.noarch.rpm perl-podlators-2.5.1-3.el7.noarch.rpm perl-Text-ParseWords-3.29-4.el7.noarch.rpm
perl-constant-1.27-2.el7.noarch.rpm perl-HTTP-Tiny-0.033-3.el7.noarch.rpm perl-Pod-Perldoc-3.20-4.el7.noarch.rpm perl-threads-1.87-4.el7.x86_64.rpm
perl-Encode-2.51-7.el7.x86_64.rpm perl-libs-5.16.3-299.el7_9.x86_64.rpm perl-Pod-Simple-3.28-4.el7.noarch.rpm perl-threads-shared-1.43-6.el7.x86_64.rpm
perl-Exporter-5.68-3.el7.noarch.rpm perl-macros-5.16.3-299.el7_9.x86_64.rpm perl-Pod-Usage-1.63-3.el7.noarch.rpm perl-Time-HiRes-1.9725-3.el7.x86_64.rpm
perl-File-Path-2.09-2.el7.noarch.rpm perl-parent-0.225-244.el7.noarch.rpm perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm perl-Time-Local-1.2300-2.el7.noarch.rpm
[root@docker mysql]# mysql
-bash: mysql: command not found
[root@docker mysql]# rpm -ivh *
Preparing... ################################# [100%]
Updating / installing...
1:perl-parent-1:0.225-244.el7 ################################# [ 4%]
2:perl-HTTP-Tiny-0.033-3.el7 ################################# [ 7%]
3:perl-podlators-2.5.1-3.el7 ################################# [ 11%]
4:perl-Pod-Perldoc-3.20-4.el7 ################################# [ 14%]
5:perl-Pod-Escapes-1:1.04-299.el7_9################################# [ 18%]
6:perl-Text-ParseWords-3.29-4.el7 ################################# [ 21%]
7:perl-Encode-2.51-7.el7 ################################# [ 25%]
8:perl-Pod-Usage-1.63-3.el7 ################################# [ 29%]
9:perl-constant-1.27-2.el7 ################################# [ 32%]
10:perl-Carp-1.26-244.el7 ################################# [ 36%]
11:perl-Exporter-5.68-3.el7 ################################# [ 39%]
12:perl-Filter-1.49-3.el7 ################################# [ 43%]
13:perl-libs-4:5.16.3-299.el7_9 ################################# [ 46%]
14:perl-macros-4:5.16.3-299.el7_9 ################################# [ 50%]
15:perl-File-Path-2.09-2.el7 ################################# [ 54%]
16:perl-File-Temp-0.23.01-3.el7 ################################# [ 57%]
17:perl-PathTools-3.40-5.el7 ################################# [ 61%]
18:perl-Scalar-List-Utils-1.27-248.e################################# [ 64%]
19:perl-Socket-2.010-5.el7 ################################# [ 68%]
20:perl-Storable-2.45-3.el7 ################################# [ 71%]
21:perl-threads-1.87-4.el7 ################################# [ 75%]
22:perl-threads-shared-1.43-6.el7 ################################# [ 79%]
23:perl-Time-HiRes-4:1.9725-3.el7 ################################# [ 82%]
24:perl-Pod-Simple-1:3.28-4.el7 ################################# [ 86%]
25:perl-Getopt-Long-2.40-3.el7 ################################# [ 89%]
26:perl-Time-Local-1.2300-2.el7 ################################# [ 93%]
27:perl-4:5.16.3-299.el7_9 ################################# [ 96%]
28:mariadb-1:5.5.68-1.el7 ################################# [100%]
[root@docker mysql]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@docker mysql]# mysql -uroot
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@docker mysql]# mysql -V
mysql Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1
[root@docker mysql]# docker
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
app* Docker App (Docker Inc., v0.9.1-beta3)
builder Manage builds
buildx* Docker Buildx (Docker Inc., v0.9.1-docker)
config Manage Docker configs
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
scan* Docker Scan (Docker Inc., v0.23.0)
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
[root@docker mysql]# yum remove mysql
Loaded plugins: ulninfo
Repository ol7_latest is listed more than once in the configuration
Repository ol7_u0_base is listed more than once in the configuration
Repository ol7_u1_base is listed more than once in the configuration
Repository ol7_u2_base is listed more than once in the configuration
Repository ol7_u3_base is listed more than once in the configuration
Repository ol7_u4_base is listed more than once in the configuration
Repository ol7_u5_base is listed more than once in the configuration
Repository ol7_u6_base is listed more than once in the configuration
Repository ol7_u7_base is listed more than once in the configuration
Repository ol7_security_validation is listed more than once in the configuration
Repository ol7_optional_latest is listed more than once in the configuration
Repository ol7_addons is listed more than once in the configuration
Repository ol7_MODRHCK is listed more than once in the configuration
Repository ol7_latest_archive is listed more than once in the configuration
Repository ol7_optional_archive is listed more than once in the configuration
Repository ol7_UEKR5 is listed more than once in the configuration
Repository ol7_UEKR4 is listed more than once in the configuration
Repository ol7_UEKR3 is listed more than once in the configuration
Repository ol7_UEKR3_OFED20 is listed more than once in the configuration
Repository ol7_UEKR5_RDMA is listed more than once in the configuration
Repository ol7_UEKR4_OFED is listed more than once in the configuration
Repository ol7_UEKR4_archive is listed more than once in the configuration
Repository ol7_UEKR5_archive is listed more than once in the configuration
Repository ol7_kvm_utils is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.68-1.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================================================================
Removing:
mariadb x86_64 1:5.5.68-1.el7 installed 49 M
Transaction Summary
=========================================================================================================================================================================================================
Remove 1 Package
Installed size: 49 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Erasing : 1:mariadb-5.5.68-1.el7.x86_64 1/1
Verifying : 1:mariadb-5.5.68-1.el7.x86_64 1/1
Removed:
mariadb.x86_64 1:5.5.68-1.el7 文章来源:https://www.toymoban.com/news/detail-763966.html
Complete!
[root@docker mysql]# mysql
-bash: /usr/bin/mysql: No such file or directory
[root@docker mysql]#文章来源地址https://www.toymoban.com/news/detail-763966.html
到了这里,关于利用 yum --downloadonly localinstall 下载安装rpm依赖包的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!