# How to uninstall locally installed ruby?

**URL:** <https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361>\
**Category:** Ruby\
**Created:** [March 30, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361 "2008-03-30T22:42:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artem\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Post date:** [March 30, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361/1 "2008-03-30T22:42:05Z")

</div>

Linux.

1. Why there is no target ‘uninstall’ in Makefile (generated by  
./configure)?
2. How to uninstall locally installed ruby?

I just compiled and locally installed version 1.9 and want to roll back  
to 1.8

Thanks!

Artem

---

<div class="post-metadata">

**Author:** ![Artem\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Post date:** [March 30, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361/2 "2008-03-30T22:47:35Z")

</div>

On 30/03/2008, Artem V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Linux.
> 
> 1. Why there is no target ‘uninstall’ in Makefile (generated by ./configure)?

Pass.

> 1. How to uninstall locally installed ruby?

Assuming you have the original source tree, you could do:

make -n install \> ./somefile

And edit “somefile”: s/cp|install/rm -fr/g – as apropos, and then  
run the file through your shell.

– Thomas A.

---

<div class="post-metadata">

**Author:** ![Artem\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Post date:** [March 30, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/how-to-uninstall-locally-installed-ruby/133361/3 "2008-03-30T22:55:01Z")

</div>

2008/3/31, Thomas A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 

Hmm. I’d prefer there was better way.

But thanks!
