1 安装RPM包时,若出现某些依赖包太多,yum又没有找到,可以用以下的强制安装方式: #rpm -ivh *.rpm --force --nodeps ------->OK!
2 使用 yum 安装 virtualbox 虚拟机:#cd /etc/yum.repos.d/ #mkdir bakup #mv rh* ./bakup
## Fedora 17/16/15/14/13/12 users
## CentOS 6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8 users #yum clean all #yum list all #yum upgrade #yum install VirtualBox* -------->OK!(Ubuntu users can try # apt-get install virtualbox )
GoodBlog:http://orochihuang.iteye.com/blog/1546004 Command AS:
[root@Linux ]# cd /etc/yum.repos.d/ [root@Linux ]# cat virtualbox.repo [root@Linux ]# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | gpg --quiet --with-fingerprint [root@Linux ]# yum info VirtualBox-4.1 [root@Linux ]# yum install VirtualBox-4.1 [root@Linux ]# /usr/sbin/usermod -a -G vboxusers username [root@Linux ]# yum install kernel-headers kernel-devel gcc [root@Linux ]# KERN_DIR=/usr/src/kernels/2.6.32-220.2.1.el6.i686 [root@Linux ]# export KERN_DIR [root@Linux ]# echo $KERN_DIR [root@Linux ]# /etc/init.d/vboxdrv setup [root@Linux ]# /usr/sbin/usermod -a -G vboxusers username
3 Redhat 下VBOXADDITIONS插件kernel modules编译失败!!! # yum install kernel-devel kernel-headers ------->OK!
4 下载VirtualBox的rpm包安装,但是安装的时 如下错误:
warning: VirtualBox***.rpm: Header V4 DSA signature: NOKEY, key ID 98ab5139
#cd /etc/yum.repos.d #wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo #yum --enablerepo rpmforge install dkms
#yum groupinstall "Development Tools" #yum install VirtualBox-3.2 #usermod -G vboxusers username #yum install bitmap-fonts-cjk 5 Linux kernel module refuses to loadIf the VirtualBox kernel module (vboxdrv) refuses to load, i.e. you get an "Error inserting vboxdrv: Invalid argument", check (as root) the output of the dmesg command to find out why the load failed. Most probably the kernel disagrees with the version of the gcc used to compile the module. Make sure that you use the same compiler as used to build the kernel. more :https://www.virtualbox.org/manual/ch12.html#idp19181568
6 yum.repo baseurl=http://mirrors.ustc.edu.cn/ ***** baseurl=http://mirrors.163.com/ ****
一些有用的命令:
#yum repolist all //查看yum的源订阅
#yum-config-manager --disable rhel-6-server-rpms #yum-config-manager --enable rhel-6-server-rpms #rhn-channel --add -c rhel-x86_64-server-6-rhevm-3 //添加 (责任编辑:IT) |