Instalar YUM en CentOS 5.7

Logo de CentOSDebido a las modificaciones que realizan algunos VPS, el sistema operativo instalado no es idéntico al original, sinó que realizan una serie de cambios, dentro los cuales se eliminan paquetes que la empresa de hosting considera. Un claro ejemplo es tener un servidor con CentOS y sin YUM.

Primero, para asegurarnos de la versión que tenemos instalada, hay que ejecutar el siguiente comando:

cat /etc/redhat-release

Para poder instalar YUM en CentOS 5.7, hay que ejcutar los siguientes comandos:

rpm -Uvh --nodeps http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.$(uname -i).rpm
rpm -Uvh http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/libxml2-2.6.26-2.1.12.$(uname -i).rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/m2crypto-0.16-8.el5.$(uname -i).rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/python-elementtree-1.2.6-5.$(uname -i).rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/python-sqlite-1.1.7-1.2.1.$(uname -i).rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm http://mirror.ihug.co.nz/centos/5.7/updates/$(uname -i)/RPMS/rpm-python-4.4.2.3-22.el5_7.2.$(uname -i).rpm http://mirror.ihug.co.nz/centos/5.7/os/$(uname -i)/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm

Vía – Net24 KnowledgeBase 

4 comentarios en “Instalar YUM en CentOS 5.7

  1. Ya corrí los dos scripts. Lo había hecho segun la web de net24. Pero aún así no veo yum instalado. Tengo que reiniciar algo para poder usarlo?

  2. Guillermo, yo estoy en la misma, tengo un vps y no tiene instalado el yum en Centos 5.8. Si te sirve de algo acá te dejo una lista de los paquetes rpm que descargue.

    [root@server ~]# cat rpms.sh

    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-NetworkManager-dispatcher-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-aliases-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-allowdowngrade-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-changelog-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-downloadonly-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-filter-data-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-kernel-module-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-keys-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-kmod-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-list-data-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-merge-conf-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-priorities-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-protect-packages-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-protectbase-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-refresh-updatesd-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-security-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-tmprepo-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-tsflags-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-updateonboot-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-upgrade-helper-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-utils-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-verify-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-versionlock-1.1.16-21.el5.centos.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/pygobject2-2.12.1-5.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/pygobject2-devel-2.12.1-5.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/pygobject2-doc-2.12.1-5.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/gamin-python-0.1.7-10.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-python-0.70-9.el5_4.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/createrepo-0.4.11-3.el5.noarch.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-2.6.26-2.1.12.el5_7.2.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-devel-2.6.26-2.1.12.el5_7.2.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.12.el5_7.2.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-27.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/gamin-0.1.7-10.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/gamin-devel-0.1.7-10.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/gamin-python-0.1.7-10.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/kgconfig-0.21-2.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/zlib-devel-1.2.3-4.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/glib2-devel-2.12.3-4.el5_3.1.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/pkgconfig-0.21-2.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/popt-1.10.2.3-27.el5.i386.rpm
    wget http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-libs-4.4.2.3-27.el5.i386.rpm
    #wget http://mirror.centos.org/centos/5/os/i386/CentOS/
    #wget http://mirror.centos.org/centos/5/os/i386/CentOS/
    #wget http://mirror.centos.org/centos/5/os/i386/CentOS/
    #wget http://mirror.centos.org/centos/5/os/i386/CentOS/
    #wget http://mirror.centos.org/centos/5/os/i386/CentOS/
    #wget http://mirror.centos.org/centos/5/os/i386/CentOS/

    # Por si se descargan de nuevo. los borro.
    rm -rf *.1

    # source
    # http://mirror.centos.org/centos/5/os/i386/CentOS/

    [root@server ~]#

  3. gente, el directorio de los repos esta vacío, si entran les va a mostrar un
    “not found”.

    Mañana sigo e intento poner la solución. gracias por la data.
    de todas formas no entiendo para que usaríamos el -Uvh

    -U = es para upgradear un paquete instalado supuestamente.
    -v = modo verbose
    -h = no recuerdo,

  4. I can’t say that it works because I have not tseted it. I’m sure that you will be fine and I would attempt to install them. You can always downgrade if it presents a problem.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

Puedes usar las siguientes etiquetas y atributos HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>