Fedora 28 安裝VirtualBox簡單攻略,我相信CentOS也是大概的樣子
1. 設定repo
cd /etc/yum.repos.d/
**Fedora
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
**CentOS
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
2.安裝相關套件
**Fedora
dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
**CentOS
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3. Update
**Fedora
dnf update
**CentOS
yum update
4. 安裝VirtualBox
**Fedora
dnf install VirtualBox
**CentOS
yum install VirtualBox
ps. 別忘了,到官網下載expand pack然後手動安裝
sudo VBoxManage extpack install –replace <expand pack file>