91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

怎么用yum下載rpm及安裝docker

發布時間:2022-03-24 17:22:23 來源:億速云 閱讀:364 作者:iii 欄目:web開發

這篇文章主要介紹“怎么用yum下載rpm及安裝docker”的相關知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“怎么用yum下載rpm及安裝docker”文章能幫助大家解決問題。

使用yum可以進行連通依賴關系一起進行安裝,而是用–downloadonly –downloaddir選項則可以不進行安裝,而將rpm連同依賴下載到本地進行安裝。

下載及安裝方式

使用yum安裝centos或者rhel等自帶的docker,可以使用yum install docker. 而下載到本地后使用安裝文件的方式可以使用如下方式

怎么用yum下載rpm及安裝docker

下載docker相關的rpm文件并安裝

使用下載rmp并安裝的方式進行docker的安裝

怎么用yum下載rpm及安裝docker

downloaddir指定的文件夾如果事前不存在,在執行的時候會生成一個。

安裝日志

怎么用yum下載rpm及安裝docker

downloaddir指定的文件夾如果事前不存在,在執行的時候會生成一個。

[root@openshift ~]# yum install --downloadonly --downloaddir=/tmp/docker docker
failed to set locale, defaulting to c
loaded plugins: fastestmirror
loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.cn99.com
 * updates: mirror.lzu.edu.cn
resolving dependencies
--> running transaction check
---> package docker.x86_64 2:1.13.1-53.git774336d.el7.centos will be installed
--> processing dependency: docker-common = 2:1.13.1-53.git774336d.el7.centos for package: 2:docker-1.13.1-53.git774336d.el7.centos.x86_64
--> processing dependency: docker-client = 2:1.13.1-53.git774336d.el7.centos for package: 2:docker-1.13.1-53.git774336d.el7.centos.x86_64
--> running transaction check
---> package docker-client.x86_64 2:1.13.1-53.git774336d.el7.centos will be installed
---> package docker-common.x86_64 2:1.13.1-53.git774336d.el7.centos will be installed
--> processing dependency: skopeo-containers >= 1:0.1.26-2 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> processing dependency: oci-umount >= 2:2.0.0-1 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> processing dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> processing dependency: oci-register-machine >= 1:0-5.13 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> processing dependency: container-storage-setup >= 0.7.0-1 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> processing dependency: container-selinux >= 2:2.21-2 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> running transaction check
---> package container-selinux.noarch 2:2.42-1.gitad8f0f7.el7 will be installed
--> processing dependency: policycoreutils-python for package: 2:container-selinux-2.42-1.gitad8f0f7.el7.noarch
---> package container-storage-setup.noarch 0:0.8.0-3.git1d27ecf.el7 will be installed
---> package oci-register-machine.x86_64 1:0-6.git2b44233.el7 will be installed
---> package oci-systemd-hook.x86_64 1:0.1.15-2.gitc04483d.el7 will be installed
--> processing dependency: libyajl.so.2()(64bit) for package: 1:oci-systemd-hook-0.1.15-2.gitc04483d.el7.x86_64
---> package oci-umount.x86_64 2:2.3.3-3.gite3c9055.el7 will be installed
---> package skopeo-containers.x86_64 1:0.1.28-1.git0270e56.el7 will be installed
--> running transaction check
---> package policycoreutils-python.x86_64 0:2.5-17.1.el7 will be installed
--> processing dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: python-ipy for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libqpol.so.1(vers_1.4)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libqpol.so.1(vers_1.2)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libcgroup for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libapol.so.4(vers_4.0)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: checkpolicy for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> processing dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
---> package yajl.x86_64 0:2.0.4-4.el7 will be installed
--> running transaction check
---> package audit-libs-python.x86_64 0:2.7.6-3.el7 will be installed
---> package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> package libcgroup.x86_64 0:0.41-13.el7 will be installed
---> package libsemanage-python.x86_64 0:2.5-8.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-1.1.el7 will be installed
--> finished dependency resolution
dependencies resolved
========================================================================================================================================
 package                arch         version                     repository      size
========================================================================================================================================
installing:
 docker                x86_64        2:1.13.1-53.git774336d.el7.centos        extras        16 m
installing for dependencies:
 audit-libs-python           x86_64        2.7.6-3.el7                   base         73 k
 checkpolicy              x86_64        2.5-4.el7                    base         290 k
 container-selinux           noarch        2:2.42-1.gitad8f0f7.el7             extras        32 k
 container-storage-setup        noarch        0.8.0-3.git1d27ecf.el7              extras        33 k
 docker-client             x86_64        2:1.13.1-53.git774336d.el7.centos        extras        3.7 m
 docker-common             x86_64        2:1.13.1-53.git774336d.el7.centos        extras        86 k
 libcgroup               x86_64        0.41-13.el7                   base         65 k
 libsemanage-python          x86_64        2.5-8.el7                    base         104 k
 oci-register-machine         x86_64        1:0-6.git2b44233.el7               extras        1.1 m
 oci-systemd-hook           x86_64        1:0.1.15-2.gitc04483d.el7            extras        33 k
 oci-umount              x86_64        2:2.3.3-3.gite3c9055.el7             extras        32 k
 policycoreutils-python        x86_64        2.5-17.1.el7                   base         446 k
 python-ipy              noarch        0.75-6.el7                    base         32 k
 setools-libs             x86_64        3.3.8-1.1.el7                  base         612 k
 skopeo-containers           x86_64        1:0.1.28-1.git0270e56.el7            extras        13 k
 yajl                 x86_64        2.0.4-4.el7                   base         39 k
transaction summary
========================================================================================================================================
install 1 package (+16 dependent packages)
total download size: 23 m
installed size: 77 m
background downloading packages, then exiting:
warning: /tmp/docker/container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch.rpm.1316.tmp: header v3 rsa/sha256 signature, key id f4a80eb5: nokey
public key for container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch.rpm.1316.tmp is not installed
(1/17): container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch.rpm                        | 33 kb 00:00:00   
public key for audit-libs-python-2.7.6-3.el7.x86_64.rpm.1316.tmp is not installed           ] 0.0 b/s | 93 kb --:--:-- eta 
(2/17): audit-libs-python-2.7.6-3.el7.x86_64.rpm                                 | 73 kb 00:00:00   
(3/17): docker-common-1.13.1-53.git774336d.el7.centos.x86_64.rpm                         | 86 kb 00:00:00   
(4/17): libcgroup-0.41-13.el7.x86_64.rpm                                     | 65 kb 00:00:00   
(5/17): libsemanage-python-2.5-8.el7.x86_64.rpm                                 | 104 kb 00:00:00   
(6/17): docker-client-1.13.1-53.git774336d.el7.centos.x86_64.rpm                         | 3.7 mb 00:00:01   
(7/17): oci-systemd-hook-0.1.15-2.gitc04483d.el7.x86_64.rpm                           | 33 kb 00:00:00   
(8/17): oci-register-machine-0-6.git2b44233.el7.x86_64.rpm                            | 1.1 mb 00:00:00   
(9/17): oci-umount-2.3.3-3.gite3c9055.el7.x86_64.rpm                               | 32 kb 00:00:00   
(10/17): policycoreutils-python-2.5-17.1.el7.x86_64.rpm                             | 446 kb 00:00:00   
(11/17): setools-libs-3.3.8-1.1.el7.x86_64.rpm                                  | 612 kb 00:00:00   
(12/17): skopeo-containers-0.1.28-1.git0270e56.el7.x86_64.rpm                          | 13 kb 00:00:00   
(13/17): yajl-2.0.4-4.el7.x86_64.rpm                                       | 39 kb 00:00:00   
(14/17): checkpolicy-2.5-4.el7.x86_64.rpm                                    | 290 kb 00:00:06   
(15/17): docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm                            | 16 mb 00:00:08   
(16/17): container-selinux-2.42-1.gitad8f0f7.el7.noarch.rpm                           | 32 kb 00:00:10   
(17/17): python-ipy-0.75-6.el7.noarch.rpm                                    | 32 kb 00:00:15   
----------------------------------------------------------------------------------------------------------------------------------------
total                                                  1.2 mb/s | 23 mb 00:00:18   
exiting because "download only" specified
[root@openshift ~]#

確認下載的rpm文件

[root@openshift ~]# cd /tmp/docker
[root@openshift docker]# ls |wc -l
17
[root@openshift docker]#

怎么用yum下載rpm及安裝docker

[root@openshift docker]# rpm -uvh *.rpm
warning: audit-libs-python-2.7.6-3.el7.x86_64.rpm: header v3 rsa/sha256 signature, key id f4a80eb5: nokey
preparing...             ################################# [100%]
updating / installing...
  1:yajl-2.0.4-4.el7         ################################# [ 6%]
  2:oci-systemd-hook-1:0.1.15-2.gitc0################################# [ 12%]
  3:oci-umount-2:2.3.3-3.gite3c9055.e################################# [ 18%]
  4:skopeo-containers-1:0.1.28-1.git0################################# [ 24%]
  5:setools-libs-3.3.8-1.1.el7    ################################# [ 29%]
  6:python-ipy-0.75-6.el7      ################################# [ 35%]
  7:oci-register-machine-1:0-6.git2b4################################# [ 41%]
  8:libsemanage-python-2.5-8.el7   ################################# [ 47%]
  9:libcgroup-0.41-13.el7      ################################# [ 53%]
 10:container-storage-setup-0.8.0-3.g################################# [ 59%]
 11:checkpolicy-2.5-4.el7      ################################# [ 65%]
 12:audit-libs-python-2.7.6-3.el7  ################################# [ 71%]
 13:policycoreutils-python-2.5-17.1.e################################# [ 76%]
 14:container-selinux-2:2.42-1.gitad8################################# [ 82%]
 15:docker-common-2:1.13.1-53.git7743################################# [ 88%]
 16:docker-client-2:1.13.1-53.git7743################################# [ 94%]
 17:docker-2:1.13.1-53.git774336d.el7################################# [100%]
[root@openshift docker]#

docker啟動

[root@openshift docker]# systemctl start docker
[root@openshift docker]# docker version
client:
 version:     1.13.1
 api version:   1.26
 package version: <unknown>
 go version:   go1.8.3
 git commit:   774336d/1.13.1
 built:      wed mar 7 17:06:16 2018
 os/arch:     linux/amd64
server:
 version:     1.13.1
 api version:   1.26 (minimum version 1.12)
 package version: <unknown>
 go version:   go1.8.3
 git commit:   774336d/1.13.1
 built:      wed mar 7 17:06:16 2018
 os/arch:     linux/amd64
 experimental:  false
[root@openshift docker]#

關于“怎么用yum下載rpm及安裝docker”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識,可以關注億速云行業資訊頻道,小編每天都會為大家更新不同的知識點。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

崇州市| 揭西县| 浮山县| 大足县| 沛县| 三原县| 乃东县| 连江县| 日喀则市| 霍林郭勒市| 金堂县| 巩留县| 和顺县| 铁岭市| 东丰县| 新竹县| 砚山县| 万安县| 东宁县| 丰原市| 新余市| 辽阳市| 宜君县| 五常市| 喜德县| 古交市| 保靖县| 定州市| 余干县| 华亭县| 河西区| 尚志市| 东乡县| 桃源县| 瓮安县| 泾川县| 岫岩| 循化| 资溪县| 舞钢市| 文成县|