Download and copy the appropriate yum configuration file in place, by running the following commands as root:
Oracle Linux 7
# cd/etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repo
Oracle Linux 6
# cd/etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Oracle Linux 5
# cd/etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
Oracle Linux 4, Update 6 or Newer
# cd/etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo
Oracle OpenStack for Oracle Linux 2.0
# cd/etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repo
# yum install yum-plugin-priorities
Note: Make sure to enableol7_optional_latest repository before installing yum-plugin-priorities on yoursystem
Oracle OpenStack for Oracle Linux 1.0
# cd/etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-openstack-ol6.repo
Oracle VM 2
# cd/etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo
Oracle Linux Server 7.9如何解决yum安装docker-ce-20.10.5时的依赖问题?
我有操作系统
# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9
复制
尝试安装docker-ce-20.10.5
# yum install docker-ce-20.10.5 docker-ce-cli-20.10.5 containerd.io -y
返回的错误
--> Finished Dependency Resolution
Error: Package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64 (docker-ce-stable)
Requires: fuse-overlayfs >= 0.7
Error: Package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64 (docker-ce-stable)
Requires: slirp4netns >= 0.4
如何解决这个问题?
要解决此问题,应启用Oracle Linux开发人员存储库。在Oracle云的当前Oracle Linux版本中,可以通过编辑/etc/yum.repos.d/oraclelinux-developer-ol7.repo
来完成此操作,在块中,[ol7_developer]
值enabled
应设置为1
。