Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had ruby in my Red hat linux pc. I manually deleted the folders of ruby in /usr/lib and /usr/bin. Now when I try to install ruby again it says it conflicts with some files which does not exist.

rpm -i ruby-libs-

file /usr/lib/ruby/1.8/yaml/tag.rb from install of ruby-libs- conflicts with file from package ruby-libs-1.8.5-5.el5 and lot more files

What should I do now ?Can someone guide me.

Regards, Mithun

share|improve this question

If you're sure you really want to install that file, you can use the --force option:

rpm -i --force ruby-libs-
share|improve this answer

Try removing the old installation using rpm

rpm -qa | grep ruby

to get see that it is installed, then

rpm -e ruby-libs-

to uninstall it. Do this for other packages that are conflicting as well.

share|improve this answer

Use rvm if you want to do anything with ruby. Particularly when you're using a distro that tends to be on the conservative side.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.