1 访问 Linux_Downloads -- Oracle VM VirtualBox

2 点击 the Oracle Linux repo file 复制 内容到 /etc/yum.repos.d/.

3 在 /etc/yum.repos.d/ 目录下新建 virtualbox.repo,复制内容到 virtualbox.repo 并 :wq 保存。
[root@localhost centos]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo CentOS-x86_64-kernel.repo
CentOS-Debuginfo.repo CentOS-Sources.repo
[root@localhost yum.repos.d]# ll
总用量 40
-rw-r--r--. 1 root root 1664 11月 23 2020 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 11月 23 2020 CentOS-CR.repo
-rw-r--r--. 1 root root 649 11月 23 2020 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 11月 23 2020 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 11月 23 2020 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 11月 23 2020 CentOS-Sources.repo
-rw-r--r--. 1 root root 8515 11月 23 2020 CentOS-Vault.repo
-rw-r--r--. 1 root root 616 11月 23 2020 CentOS-x86_64-kernel.repo
[root@localhost yum.repos.d]# vim virtualbox.repo

4 使用 yum search VirtualBox 搜索可用的
5 使用 yum install VirtualBox-7.0.x86_64 安装

6 等待安装完成。

7 系统工具--Oracle VM VirtualBox

附录:
依赖关系:qt5-qttools-common,qt5-qttools-libs-help,qt5-qtx11extras,vulkan,vulkan-filesystem
