Tag Archives: yum

服务器/vps ubuntu 和 centos 选哪个?

在国内 Linux 服务器市场中,应该 ubuntu 和 centos 要占一半以上的市场, 最近折腾了 N 个 VPS,基本都是在这 2 个系统中折腾。 2 个系统的稳定性都没得说,只是包管理不一样,选择哪个系统大多数是在选包管理。 yum,官方的源软件老、量少,连个 htop 也得用第三方源 apt,比 yum 好一些 所以使用 centos,一开始你就要添加各种第三方 yum 源,使用起来才爽;而 ubuntu 的 apt,肯定也不是最新的软件版本,但也不至于太老,说的过去,能用,软件的数量也比 yum 多 很多,不是有特殊需要,一般不需要添加其它源。 我现在有 ubuntu 就用这个,没有的话 centos 顶上。

Posted in Linux | Tagged , , , | Leave a comment

yum增加源

默认的yum源中很多软件都没有,要想使用yum,首先得些增加yum的源 一般增加2个就够了 1.添加[CentALT]源 在/etc/yum.repos.d 目下创建 alt.ru.repo 文件内容如下: [shell][CentALT] name=CentALT Packages for Enterprise Linux 5 – $basearch baseurl=http://centos.alt.ru/repository/centos/5/$basearch/ enabled=1 gpgcheck=0 [/shell] 2.添加EPEL 64位系统 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 32位系统 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Posted in Linux | Tagged , , | Leave a comment