Setup Yum repository
Oracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
- Configure to get through proxy
export http_proxy=proxy:portnum
For example,
export http_proxy=http://wwwproxygate.com:8888
- Install package, for example, gcc.
# yum install gcc
* Install download-only plugin first. This will give additional options to yum command.
# yum install yum-downloadonly
* Download the package
# yum update gcc -y --downloadonly --downloaddir=/tmp
Install Guest Addition
- Install all dependencies. You can find the dependencies easily by trying to install the Guest Addition.
# yum install kernel-uek-devel-2.6.32-300.3.1.el6uek.x86_64
# cd /media/VBOXADDITIONS_4.1.14_77440
# sh ./VBoxLinuxAdditions.run
Shared folder
- Create a shared folder from VBox first, for example, named "downloads".
# cd /media
# mkdir downloads
# mount -t vboxsf downloads downloads
or with options
# mount -t vboxsf -o umask=0022,gid=500,uid=500 downloads downloads