redhat 下安装yum
程序员文章站
2024-01-05 23:06:46
...
1. 下载 wget http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src.rpm
2. 编译 rpmbuild --rebuild yum-2.0.8-1.src.rpm
3. cd /usr/src/redhat/RPMS/noarch/
4. rpm -ivh yum-2.0.8-1.noarch.rpm
vi /etc/yum.conf
删除原文件内容,添加以下内容:
[main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 [base] #name=Red Hat Linux $releasever - $basearch - Base #baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/ name=Red Hat Linux $releasever - $basearch - Base baseurl= http://centos.ustc.edu.cn/centos/4/os/i386/ #[updates] #name=Red Hat Linux $releasever - Updates #baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/ name=Red Hat Linux $releasever - Updates baseurl= http://mirror.centos.org/centos/4/updates/i386/ [base] #name=Red Hat Linux $releasever - $basearch - Base #baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/ name=Red Hat Linux $releasever - $basearch - Base baseurl= http://centos.ustc.edu.cn/centos/4/os/i386/
yum update
下一篇: ArrayList源码分析
推荐阅读
-
RedHat AS 4.0最新安装Oracle9204手记
-
Apache1.3.x + PHP4 Beta3在Windows 9x/NT下的安装与配置_PHP
-
Linux下安装Mysql多实例作为数据备份服务器实现多主到一从多实例_MySQL
-
Windows下python3.6.4安装教程
-
Centos6.2下安装配置zenoss4.2
-
linux下perl操作mysql数据库(需要安装DBI)
-
windows下安装php_imagick拓展
-
centos6.5下安装zabbix2.4的教程图解
-
NodeJS下TypeScript环境安装
-
Linux下从零开始安装配置Nginx服务器+PHP开发环境,_PHP教程