使用YUM自动更新RedHat AS 4

简介: 下载安装配置yum   从http://linux.duke.edu/projects/yum/download/2.

下载安装配置yum

  从http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7-1.noarch.rpm 下载,并安装yum安装后要注意的是一下三个文件

  /etc/cron.daily/yum.cron #每日进行yum 及 其他软件包定时升级

  /etc/init.d/yum  #yum服务

  /etc/yum.conf  #yum配置文件

  接下来修改/etc/yum.conf

  vi /etc/yum.conf

  将

  [base]

  name=Red Hat Linux $releasever - $basearch - Base

  baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

  [updates]

  name=Red Hat Linux $releasever - Updates

  baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

  改为

  [base]

  name=CentOS 4.4 for RHEL4 - Base #随便取名字

  baseurl= http://mirror.be10.com/centos/4.4/os/i386/

  [updates]

  name=CentOS 4.4 for RHEL4 - Updates #随便取名字

  baseurl= http://mirror.be10.com/centos/4.4/updates/i386/

  输入命令

  yum update

目录
相关文章
|
缓存 开发工具
RedHat8.4配置本地yum软件仓库(RHEL8.4)
RedHat8.4配置本地yum软件仓库(RHEL8.4)
1224 0
RedHat8.4配置本地yum软件仓库(RHEL8.4)
|
Linux
Centos/Redhat 本地yum源配置(Linux)
Centos/Redhat 本地yum源配置(Linux)
262 0
Centos/Redhat 本地yum源配置(Linux)
|
关系型数据库 MySQL Linux
RedHat7.4 Yum环境下搭建LAMP实现库站分离(部署wordpress博客)
RedHat7.4 Yum环境下搭建LAMP实现库站分离(部署wordpress博客)
167 0
RedHat7.4 Yum环境下搭建LAMP实现库站分离(部署wordpress博客)
|
缓存 Linux 开发工具
RedHat7.4配置yum软件仓库(RHEL7.4)
RedHat7.4配置yum软件仓库(RHEL7.4)
578 0
RedHat7.4配置yum软件仓库(RHEL7.4)
|
存储 缓存 Oracle
Red Hat Enterprise Linux(RHEL)中yum的repo文件详解
Red Hat Enterprise Linux(RHEL)中yum的repo文件详解
554 0
|
Linux
配置yum软件仓库(redhat 7.0)
第一步:切换到yum配置文件目录 执行:cd /etc/yum.repos.d/ 第二步:创建文件并进行编辑:vi rhel7.repo 写入如下内容:[rhel7] name=rhel7 ##名字随便命名 baseurl=file:///media/cdrom enabled=1 gpgch...
1194 0

推荐镜像

更多