centos8 使用dnf来进行安装
dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
rpm --import https://www.virtualbox.org/download/oracle_vbox.asc
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
dnf install binutils kernel-devel kernel-headers libgomp make patch gcc glibc-headers glibc-devel dkms -y
dnf search virtualbox
或者直接
dnf install VirtualBox-6.0 -y
避免直接下周 RPM 后无法安装的窘境。
文章评论