Red Hat 更新yum源为centos,并安装c环境
2013-08-03 11:33
363 查看
系统环境
# head -n 1 /etc/issueRed Hat Enterprise Linux Server release 5.5 (Tikanga)
使用redhat 系统在线安装时提示This system is not registered with RHN.如下:
yum install gccLoaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package httpd available.
Nothing to do
解决方案:
1.卸载redhat自带的yum组件
rpm -qa|grep yum|xargs rpm -e --nodeps2.安装centos的yum包
cd /etc/yum.repos.d/32bit
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
64bit
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
rpm -ivh *.rpm
3. 下载更新源,并存放在系统目录中
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo4.生成缓存并进行安装
yum makecacheyum install gcc gcc-c++ kernel-devel
相关文章推荐
- Centos环境下yum安装更新jdk、删除自带的jdk
- Red Hat 更新yum源为centos,并安装c环境
- CentOS 7 YUM 10分钟快速安装 LNMP 环境详细教程
- CentOS 5.5使用yum来安装LAMP(php运行环境)(转)
- Red Hat或CentOS首选的软件安装工具-yum
- CentOS 7 YUM 10分钟快速安装 LNMP 环境详细教程
- centos6.3环境下yum安装postgres9.3
- centos下使用yum安装jdk java环境安装 activeMQ运行环境 tomcat安装
- CentOS 5.5使用yum安装LAMP环境(sohu源)
- RHEL 5.3使用Centos 5.3的 yum 源进行更新和安装软件
- linux centos yum安装LAMP环境
- Red Hat或CentOS首选的软件安装工具-yum
- centos6.5下安装lnmp环境(nginx+linux+mysql+php)[yum安装]
- CentOS使用YUM安装php运行环境,包含php,php-fpm,nginx,mysql
- centos6.2lnmp环境yum安装
- centos6.5 lamp 环境(使用yum安装方法)
- CentOS环境下yum安装LAMP(Linux+Apache+Mysql+php)
- centos6.5 系统-搭建lamp(php7)环境--(yum在线安装)
- CentOS 6.4 yum安装 LAMP环境
- 在CentOS上安装Java环境:使用yum安装java