yum用于下载和安装软件的工具,下面的步骤用于如何在OEL6上安装yum以及添加一个yum库(epel-repository)
sudo su -
export ALL_PROXY=www-proxy.us.oracle.com:80
export http_proxy=www-proxy.us.oracle.com:80
### OEL6 ONLY: avoid HTTP config issue with PDIT OEL6 image -- more details at http://aseng-wiki.us.oracle.com/asengwiki/display/ASDevWorkplace/OEL+6+Support
mv /etc/httpd/conf.d/mod_dnssd.conf /etc/httpd/conf.d/mod_dnssd.conf.off
vi /etc/yum.conf
add this text near the top, in the [main] section:
proxy=http://www-proxy.us.oracle.com:80
### OEL5 ONLY
cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-el5.repo
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
### OEL6 ONLY
cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-ol6.repo
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
****** BE SURE WGET WAS SUCCESSFUL -- sometimes some parts of it randomly fail and need to be rerun ****
yum -y install epel-release-*.noarch.rpm
rm -f epel-release-*.noarch.rpm
# turn off automatic update scanning
/sbin/chkconfig yum-updatesd off
/sbin/chkconfig yum-updateonboot off
### at this point, you could install git
yum -y install git --nogpgcheck
### back to a regular user...
exit
如何在Oracle Linux环境上安装yum
最新推荐文章于 2024-09-28 10:21:39 发布