采用yum工具
- 在/etc/yum.repos.d目录下创建一个文件,xxx.repo,文件内容:
[update]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://xxx@abc.com:password@updateserver.com/redhat/yum/5/server/upda
tes/i386/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
其中baseurl是存放升级补丁的server地址,name随意 - 运行 yum check-update,查看可以升级的包
- 运行yum update开始更新。
- 也可以运行yum update --exclude gcc*排除某个包的更新。