Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to remove yum which is protected in Centos

Well, I'm trying to execute the following command.

yum remove libffi-3.0.9-1.el5.rf.i386

Because I need that file (?), however facing problems while installing ruby with rvm, as libffi-devel is a dependecy of rvm to install ruby.

However it gives me the following error, and of course it doesn't delete anything.

Error: Trying to remove "yum", which is protected
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I've already tried with --skip-broken and I get this:

Error: Trying to remove "yum", which is protected
 You could try running: rpm -Va --nofiles --nodigest

As you may see, I'm not an expert in Linux, but I need to install Ruby with rvm and I can't because of this error, does anyone of you have an idea of what am i doing wrong?

Thank you :)

like image 466
Uriel Hernández Avatar asked Apr 03 '13 22:04

Uriel Hernández


1 Answers

The right way to do what I was looking for is by doing:

rpm -e --nodeps PACKAGE

in the command line.

like image 149
Uriel Hernández Avatar answered Sep 23 '22 00:09

Uriel Hernández