YUM:
国内最快的源:http://centos.ustc.edu.cn/
我安装CentOS 5的方法:
下载centos/5.4 CentOS-5.4-i386(或x86_64)-netinstall.iso,刻盘安装CentOS5.4,安装地方设置为HTTP,Server centos.ustc.edu.cn, 目录 为centos/5.4/os/i386 或 centos/5.4/os/x86_64。
安装后请按照以下步骤修改CenOS-Base.repo,以后就可以方便的用yum安装软件了.
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo
RHEL = Red Hat Enterprise Linux
EPEL :
EPEL(http://fedoraproject.org/wiki/EPEL ) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux
等提供高质量软件包的项目。装上了 EPEL,就像在 Fedora 上一样,可以通过 yum install package-name,随意安装软件。
我们前面提到的 Func 、Cobbler 等软件都能在 EPEL Repo 中找到。
安装 EPEL 非常简单:
* RHEL 4: rpm -Uvh http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm
* RHEL 5: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
安装完毕之后,即可使用 yum 来安装软件,比如 Nagios:
yum install nagios