- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我用的是centos7,docker rpms的版本是
[root@node-6 ~]# rpm -qa | grep docker
docker-common-1.13.1-63.git94f4240.el7.centos.x86_64
docker-client-1.13.1-63.git94f4240.el7.centos.x86_64
docker-1.13.1-63.git94f4240.el7.centos.x86_64
最佳答案
默认情况下,Docker 由 CentOS-extras 存储库提供。以下是您可能需要考虑熟悉的一些命令:
# To search everything 'docker' related
yum search docker
# Once found interesting package...
yum info docker
在普通实例上(即没有导入任何无关/第三方存储库),输出应类似于以下内容
Available Packages
Name : docker
Arch : x86_64
Epoch : 2
Version : 1.13.1
Release : 96.gitb2f74b2.el7.centos
Size : 18 M
Repo : extras/7/x86_64
Summary : Automates deployment of containerized applications
URL : https://github.com/docker/docker
License : ASL 2.0
Description : Docker is an open-source engine that automates the deployment of any
: application as a lightweight, portable, self-sufficient container that will
: run virtually anywhere.
:
: Docker containers can encapsulate any payload, and will run consistently on
: and between virtually any server. The same container that a developer builds
: and tests on a laptop will run at scale, in production*, on VMs, bare-metal
: servers, OpenStack clusters, public instances, or combinations of the above.
然后,为了(大多数时候)获取特定 rpm 的源包,请尝试以下命令(假设您之前安装了 yum-utils
# Disable all repos, enable the one we have eyes on, set 'source only' and download
yumdownloader --disablerepo=\* --enablerepo=extras --source docker
这是命令的输出
Initializing download: http://vault.centos.org/centos/7/extras/Source/SPackages/docker-1.13.1-96.gitb2f74b2.el7.centos.src.rpm
File size: 14604391 bytes
Opening output file ./docker-1.13.1-96.gitb2f74b2.el7.centos.src.rpm
Starting download
Connection 2 finished ] 41% [============================- ] 0.0 B/s | 5.8 MB --:--:-- ETA
Connection 4 finished ]
Connection 0 finished ]
Connection 1 finished ]
[100%] [..................................................] [ 14.6MB/s] [00:00]100% [======================================================================] 8.1 MB/s | 14 MB 00:00:00 ETA
Downloaded 13.9 megabytes in 0 seconds. (14921.07 KB/s)
docker-1.13.1-96.gitb2f74b2.el7.centos.src.rpm | 14 MB 00:00:01
下载文件后,您可以提取它或使用 rpm 安装它以访问内容。 Midnight Commander 还可以列出/查看/复制/提取大多数 rpm 文件到您选择的目录。
rpm -Uvh docker-1.13.1-96.gitb2f74b2.el7.centos.src.rpm
Updating / installing...
1:docker-2:1.13.1-96.gitb2f74b2.el7################################# [100%]
这些文件应该已经安装在 $HOME/rpmbuild
关于package - 我在哪里可以找到 RPM 包的源代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57144507/
如何检测 RPM 是源 rpm 还是二进制 rpm? 显然我不想依赖文件名。 最佳答案 源 rpm 由 header 中 SOURCEPM 标记的存在定义。如果 rpm 带有 SOURCEPMM 标签
在Linux操作系统中,有一个系统软件包,它的功能类似于Windows里面的“添加/删除程序”,但是功能又比“添加/删除程序”强很多,它就是Red
我正在尝试从一个 RPM 安装中安装多个 RPM。我已将规范文件制作到 %post 部分中,我使用命令安装了另一个 rpm。 %post rm -f /var/lib/rpm/__db.0* r
我正在尝试从一个 RPM 安装中安装多个 RPM。我已将规范文件制作到 %post 部分中,我使用命令安装了另一个 rpm。 %post rm -f /var/lib/rpm/__db.0* r
请指教为什么我找不到我安装的rpm。我尝试通过 rpm -qa | 检查grep 测试(参见安装 rpm 中的示例:)但似乎没有安装 rpm 为什么? 构建 RPM: [root@linux /us
您好,提前感谢任何人可以为这个问题提供的任何答案。 我有一个 RPM,它本质上是一个展开的 WAR 的包装器。在我的服务器上运行 rpm -i myRPM.rpm 这工作得很好,世界上一切都很好。然后
我必须在包含大量 rpm 的目录下执行 rpm -ivh *.rpm。我想忽略一两个特定的 rpm。我该怎么做? 最佳答案 如果他们在文件名中没有空格或换行符(这是我所期望的,对于 rpms),那么最
我正在为 centos 生成 rpm 文件,但是当我尝试在干净的机器上安装它时,它失败了: --> Running transaction check ---> Package grass.x86
如果有的话,设计 RPM 的“正确”方法是什么,以便可以通过 YUM/RPM 并排安装多个版本而不会相互干扰?对于库,正确的答案似乎与 sonames 有关,尽管我找不到任何关于 sonames、符号
正如主题所读,我想知道是否可以在 RPM 规范文件中使所需的包依赖于条件? 例如,如果在安装目标上,请检查 shell 语句,例如主机正在使用绑定(bind)接口(interface) 并且只有当 R
我想将我的 rpm 文件的名称从 oldname-7.x86_64.rpm 更改为 newname-8.x86_64.rpm。我用新名称创建了新的 rpm,但是当我尝试执行 rpm -Uvh newn
我正在尝试构建并签署 RPM。 我在我正在构建的位置创建了我的 .rpmmacro 文件/path/to/macrodir/ 然后我将 --define 与 _topdir 一起使用,指的是/path
我目前正在重命名我的团队正在生产的产品(对变量、服务接口(interface)、类名等进行适当的重构)。对于本练习的 RPM 重命名部分,我被告知使用 obsoletes 标记。我现在处于错误修复阶段
这个问题很容易表现出来: rpm --eval "%define xyz" error: Macro %xyz has empty body 我想获得 patch_level 和 echo_dist
我需要构建一个 RPM,其唯一目的是安装一些字体。我已经阅读了几个关于此的教程,但是每个人似乎都提出了不同的建议,而且我无法找到类似非常基本的设置来做到这一点。 是否可以只引用 %files 中的文件
我正在升级我们的项目 RPM。问题是当我从 projectname-1.0-0 升级到 projectname-1.0-1 时,它首先安装新项目并卸载旧项目,总的来说,这完全删除了我的项目。我在升级时
我只想创建一个 RPM 文件来分发我的 Linux 二进制文件“foobar”,只有几个依赖项。它有一个配置文件/etc/foobar.conf 并应安装在/usr/bin/foobar 中。 不幸的
我正在尝试记录我的 rpm 完成的事件,但无法找到方法来执行此操作。我正在寻找某种方法来通过规范文件本身来完成此操作。如果我的 rpm 执行 5 个步骤,我需要一种方法将这些步骤及其结果记录到日志中。
如何在 RPM 规范中定义变量?我要在 RPM 中创建 14 个文件夹,并且是通过以下命令创建的: mkdir -p /opt/{Folder,Names,Are,Pretty,Cumbersome}
机器 1 #uname -r Machine 1:3.2.45-0.6.wd.561.41.269.metal1.x86_64 #rpmbuild --version RPM version 4.8.
我是一名优秀的程序员,十分优秀!