首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Oracle 7中使用yum安装VirtualBox

在Oracle 7中使用yum安装VirtualBox
EN

Unix & Linux用户
提问于 2021-02-26 15:28:42
回答 1查看 662关注 0票数 1

我有Oracle ( 7.9 (Maipo)版本)运行良好,但是现在我想用VirtualBox安装yum。

此页上,我只能找到指令

代码语言:javascript
复制
Users of Oracle Linux 6 and 7 can use the Oracle Linux yum  repository and enable the  ol6_developer channel for Oracle Linux 6 or the  ol7_developer channel for Oracle Linux 7. 

我有这些文件

代码语言:javascript
复制
ls -1 /etc/yum.repos.d/

epel-yum-ol7.repo
oracle-linux-ol7.repo
oracle-softwarecollection-ol7.repo
pgdg-redhat-all.repo
uek-ol7.repo
virt-ol7.repo

所以任何启用ol7_developer的命令

代码语言:javascript
复制
yum-config-manager --enable ol7_developer

似乎没有什么区别。

那么如何解决这个问题呢?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2021-02-26 19:13:17

手动创建存储库。向/etc/yum.repos.d/ol7_developper.repo添加以下行:

代码语言:javascript
复制
[ol7_developer]
name=Oracle Linux $releasever Development Packages ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

或者安装rpm

代码语言:javascript
复制
wget https://yum.oracle.com/repo/OracleLinux/OL7/developer/x86_64/getPackage/VirtualBox-6.1-6.1.2_135662_el7-1.x86_64.rpm
wget http://yum.oracle.com/repo/OracleLinux/OL7/developer/x86_64/getPackage/containerd-1.2.0-1.0.4.el7.x86_64.rpm
sudo rpm -ivh VirtualBox-6.1-6.1.2_135662_el7-1.x86_64.rpm
sudo rpm -ivh containerd-1.2.0-1.0.4.el7.x86_64.rpm
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/636574

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档