如何在Oracle Linux环境上安装yum

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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值