Reinstall Yum after remove sqlite

Issues related to applications and software problems
Mohamed Sobh
Posts: 1
Joined: 2017/12/10 10:38:51

Reinstall Yum after remove sqlite

Postby Mohamed Sobh » 2017/12/10 10:41:18

I remove sqlite using Yum by mistake.

Now yum does not work and gives: No module named sqlite

How would i fix this issue.

User avatar
TrevorH
Forum Moderator
Posts: 22285
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Reinstall Yum after remove sqlite

Postby TrevorH » 2017/12/10 12:30:59

Download the correct sqlite package from one of the mirrors and use rpm to install it.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
avij
Forum Moderator
Posts: 2370
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Reinstall Yum after remove sqlite

Postby avij » 2017/12/10 12:32:31

Odd, when I try yum remove sqlite it refuses to do that because it is a dependency of yum.

If you are lucky, you may be able to fix the situation with rpm -ivh http://mirror.centos.org/centos/6.9/os/x86_64/Packages/sqlite-3.6.20-1.el6_7.2.x86_64.rpm (replace x86_64 with i686 if you're on a 32bit machine).