Reinstall Yum after remove sqlite

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

Reinstall Yum after remove sqlite

Post by 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
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Reinstall Yum after remove sqlite

Post by TrevorH » 2017/12/10 12:30:59

Download the correct sqlite package from one of the mirrors and use rpm to install it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

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

Re: Reinstall Yum after remove sqlite

Post by 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).

Post Reply