Tech & Engineering

I uninstalled sqlite on my Linux box !!!

Well I somehow felt I could yum erase sqlite since I do not need it. Well I did not see the dependencies that would be removed too! The result: yum, rpm, php, h...

Sumit Datta··2 min read

Well I somehow felt I could yum erase sqlite since I do not need it. Well I did not see the dependencies that would be removed too! The result:

yum, rpm, php, httpd, rpm-python and many related packages all Erased !!! OMG I said. :P

I am not very friendly with Linux as yet at this level. I knew I had screwed all hopes of getting that box in clean shape. I searched the net for “reinstll RPM”, “install RPM” and similar. Got a link to How to reinstall rpm

In case you can not reach to it, it says something like:

I guess you could try :

  • Copying the “rpm2cpio” binary from another machine

  • Copying the rpm package locally

  • Running something like :

cd /

rpm2cpio /path/to/rpm-4.*.rpm | cpio -dimv

Then you could clean up what you just did (in case it’s a different version of rpm, mainly) :

rpm -e –justdb –nodeps rpm

rpm -Uvh /path/to/rpm-4.*.rpm

YMMV…

Matthias

That gave me some hope. I followed the instructions. Switched to root user, went to / and executed rpm2cpio with the downloaded rpm of RPM itself. RPM

Then got an error about librpm shared lib missing. So downloaded librpm. Now rpm works!!!

Now I just searched for the latest versions of rpms for getting yum up and running. This included sqlite, python-sqlite, rpm-python, yum-metadata-parser, urlgrabber, etc. And finally installed yum !!!

I mainly used rpm.pbone.net for searching rpms

Well thats it: I am almost saved :D

Share
Written by
Sumit Datta

Software engineer and entrepreneur, 16+ years at fast-paced startups across the US, Canada, Germany and India.

Comments

Hook this up to your favourite commenting platform — Giscus, Disqus, or your own.

Continue reading

Tech & Engineering·

Shift from mod_wsgi to uwsgi

The last couple weeks we have been thinking to shift from our current web serving platform which was powered by nginx + Apache + mod\ wsgi to nginx + uwsgi. The...

Sumit Datta · 2 min
Tech & Engineering·

PHP libxml issue while compiling

Today I had some trouble getting libxml to work in PHP. I was compiling PHP 5.3.10 for a client's Joomla site and it needs libxml. The issue seemed to be common...

Sumit Datta · 1 min
Tech & Engineering·

My laptop: my local web server

Well two months back I bought my first laptop. A Compaq V3155AU with following configuration: AMD Turion64 (single core) 2.0Ghz Hyper Threading support 512MB DD...

Sumit Datta · 2 min

A quieter inbox.

One thoughtful letter every other Sunday — new essays, things worth reading, and the occasional photograph.

Free. Unsubscribe in one click.