音效素材网提供各类素材,打造精品素材网站!

站内导航 站长工具 投稿中心 手机访问

音效素材

yum下载rpm以及相关依赖的方式离线安装docker
日期:2018-12-29 15:32:03   来源:脚本之家

使用yum可以进行连通依赖关系一起进行安装,而是用–downloadonly –downloaddir选项则可以不进行安装,而将rpm连同依赖下载到本地进行安装。

下载及安装方式

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

下载docker相关的rpm文件并安装

使用下载rmp并安装的方式进行docker的安装

downloaddir指定的文件夹如果事前不存在,在执行的时候会生成一个。

安装日志

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]#

[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]#

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对的支持。如果你想了解更多相关内容请查看下面相关链接

    您感兴趣的教程

    在docker中安装mysql详解

    本篇文章主要介绍了在docker中安装mysql详解,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编...

    详解 安装 docker mysql

    win10中文输入法仅在桌面显示怎么办?

    win10中文输入法仅在桌面显示怎么办?

    win10系统使用搜狗,QQ输入法只有在显示桌面的时候才出来,在使用其他程序输入框里面却只能输入字母数字,win10中...

    win10 中文输入法

    一分钟掌握linux系统目录结构

    这篇文章主要介绍了linux系统目录结构,通过结构图和多张表格了解linux系统目录结构,感兴趣的小伙伴们可以参考一...

    结构 目录 系统 linux

    PHP程序员玩转Linux系列 Linux和Windows安装

    这篇文章主要为大家详细介绍了PHP程序员玩转Linux系列文章,Linux和Windows安装nginx教程,具有一定的参考价值,感兴趣...

    玩转 程序员 安装 系列 PHP

    win10怎么安装杜比音效Doby V4.1 win10安装杜

    第四代杜比®家庭影院®技术包含了一整套协同工作的技术,让PC 发出清晰的环绕声同时第四代杜比家庭影院技术...

    win10杜比音效

    纯CSS实现iOS风格打开关闭选择框功能

    这篇文章主要介绍了纯CSS实现iOS风格打开关闭选择框,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作...

    css ios c

    Win7如何给C盘扩容 Win7系统电脑C盘扩容的办法

    Win7如何给C盘扩容 Win7系统电脑C盘扩容的

    Win7给电脑C盘扩容的办法大家知道吗?当系统分区C盘空间不足时,就需要给它扩容了,如果不管,C盘没有足够的空间...

    Win7 C盘 扩容

    百度推广竞品词的投放策略

    SEM是基于关键词搜索的营销活动。作为推广人员,我们所做的工作,就是打理成千上万的关键词,关注它们的质量度...

    百度推广 竞品词

    Visual Studio Code(vscode) git的使用教程

    这篇文章主要介绍了详解Visual Studio Code(vscode) git的使用,小编觉得挺不错的,现在分享给大家,也给大家做个参考。...

    教程 Studio Visual Code git

    七牛云储存创始人分享七牛的创立故事与

    这篇文章主要介绍了七牛云储存创始人分享七牛的创立故事与对Go语言的应用,七牛选用Go语言这门新兴的编程语言进行...

    七牛 Go语言

    Win10预览版Mobile 10547即将发布 9月19日上午

    微软副总裁Gabriel Aul的Twitter透露了 Win10 Mobile预览版10536即将发布,他表示该版本已进入内部慢速版阶段,发布时间目...

    Win10 预览版

    HTML标签meta总结,HTML5 head meta 属性整理

    移动前端开发中添加一些webkit专属的HTML5头部标签,帮助浏览器更好解析HTML代码,更好地将移动web前端页面表现出来...

    移动端html5模拟长按事件的实现方法

    这篇文章主要介绍了移动端html5模拟长按事件的实现方法的相关资料,小编觉得挺不错的,现在分享给大家,也给大家...

    移动端 html5 长按

    HTML常用meta大全(推荐)

    这篇文章主要介绍了HTML常用meta大全(推荐),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参...

    cdr怎么把图片转换成位图? cdr图片转换为位图的教程

    cdr怎么把图片转换成位图? cdr图片转换为

    cdr怎么把图片转换成位图?cdr中插入的图片想要转换成位图,该怎么转换呢?下面我们就来看看cdr图片转换为位图的...

    cdr 图片 位图

    win10系统怎么录屏?win10系统自带录屏详细教程

    win10系统怎么录屏?win10系统自带录屏详细

    当我们是使用win10系统的时候,想要录制电脑上的画面,这时候有人会想到下个第三方软件,其实可以用电脑上的自带...

    win10 系统自带录屏 详细教程

    + 更多教程 +
    WIN服务器linux服务器FTP服务器DNS服务器其他