Install yum from centos vault
Tue, 02/12/2013 - 14:53 — sandipI had to update an old release of CentOS-5.5 on an OpenVZ container where yum was not available.
The below script should automatically download and install the required rpms from "vault.centos.org".
#!/bin/bash
# install_yum.sh
rpms="
&nbs p; rpm-libs-4.4.2.3-18.el5.x86_64 .rpm
&nbs p; popt-1.10.2.3-18.el5.x86_64.rp m
&nbs p; rpm-4.4.2.3-18.el5.x86_64.rpm< br /> &nbs p; python-elementtree-1.2.6-5.x86 _64.rpm
&nbs p; python-iniparse-0.2.3-4.el5.no arch.rpm
&nbs p; python-sqlite-1.1.7-1.2.1.x86_ 64.rpm
&nbs p; rpm-python-4.4.2.3-18.el5.x86_ 64.rpm
&nbs p; python-urlgrabber-3.1.0-5.el5. noarch.rpm
&nbs p; yum-fastestmirror-1.1.16-14.el 5.centos.1.noarch.rpm
&nbs p; yum-metadata-parser-1.1.2-3.el 5.centos.x86_64.rpm
&nbs p; yum-3.2.22-26.el5.centos.noarc h.rpm
"
for rpm in $rpms
do
rpm -Uvh --nodeps http://vault.centos.org/5.5/os /x86_64/CentOS/${rpm};
done
- sandip's blog
- Login or register to post comments
- Read more
Replacing sysklogd with rsyslog
Sun, 11/21/2010 - 00:56 — sandipIf you need to replace old sysklogd with recent rsyslog on centos, `rpm -e --nodeps sysklogd` is rather kludgy as yum will remove initscripts, upon which most of the system is dependent on. However, it is possible to install and remove via the yum shell in one go, which resolves the dependency issues.
# yum shell
> install rsyslog
> remove sysklogd
> run
> quit
Metadata file does not match checksum
Mon, 06/09/2008 - 23:27 — sandipIf getting the error "Metadata file does not match checksum", try running `
# yum clean metadata
`yum clean all` should also resolve the issue if the metadata fails.
- sandip's blog
- Login or register to post comments