I am trying to install yum in centos. But all download links are broken. I get this error. [root@exaspring src]# rpm -Uvh http://mirror.centos.org/centos-5/5.0/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm Retrieving http://mirror.centos.org/centos-5/5.0/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm error: skipping http://mirror.centos.org/centos-5/5.0/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm - transfer failed - Unknown or unexpected error warning: u 0x807d9b0 ctrl 0x807e178 nrefs != 0 (mirror.centos.org http) centos repositories do not get updated. I think. Can anybody suggest something, please?
Try this Login to your server as root and create yum directory # cd /usr/local/src/ # mkdir youm # cd yum Now download some rpms that yum needs: # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-urlgrabber-2.9.6-2.noarch.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-sqlite-1.1.6-1.i386.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-elementtree-1.2.6-4.i386.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-urlgrabber-2.9.6-2.noarch.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/sqlite-3.2.2-1.i386.rpm # rpm -Uvh *rpm Download and install yum: # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/centos-yumconf-4-4.3.noarch.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/yum-2.4.0-1.centos4.noarch.rpm # rpm -Uvh *rpm
It may possible that server settings or firewall blocking the access. As an alternative, you can download the RPMs in local system and then you can upload it to your server.