Page 1 of 1

Removed YUM by mistake :( what to do ?

Posted: 2009/04/14 03:05:50
by omara007
Hi guys ..

I have removed yum from my CentOS 4 by mistake when I was removing 'sqlite' package :( .. what should I do to return it back ?
Given that when I removed 'sqlite', the following were the dependencies that were removed as well:
=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
sqlite i386 3.3.6-2 installed 365 k
Removing for dependencies:
python-sqlite i386 1.1.7-1.2.1 installed 103 k
yum noarch 2.4.3-4.el4.centos installed 1.3 M
yum-metadata-parser i386 1.0-8.el4.centos installed 50 k

Transaction Summary
=============================================================================


Please help.

Re: Removed YUM by mistake :( what to do ?

Posted: 2009/04/14 12:53:43
by AlanBartlett
[quote]I have removed yum from my CentOS 4 by mistake when I was removing 'sqlite' package :( .. what should I do to return it back ?[/quote]
Download ([b]wget[/b]) the packages from your local mirror site (http://www.centos.org/modules/tinycontent/index.php?id=31) into a temporary directory that contains no other files then, as [i]root[/i], install them --

[code]
[b]rpm -ivh *.rpm[/b]
[/code]
The [i]sqlite[/i] package is required by [i]yum[/i] so, basically, you will need to perform a manual reinstall of those four packages.