uninstalling/upgrading Ruby

A

Alex Nedelcu

Hi,

I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball, install
with the usual make/make install procedure.
How can I uninstall Ruby so I can install Ruby 1.8.4 ?

Also, can you tell how could I build a RPM package so I don't have to
worry about it in the future ?

Sorry about asking, I'm a newbie when it comes to Linux.

Thanks,
 
J

John Gabriele

Hi,

I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball, install
with the usual make/make install procedure.
How can I uninstall Ruby so I can install Ruby 1.8.4 ?

Unfortunately, there's probably no customary "make uninstall". Where
is your version of 1.8.2 installed? You might be able to remove it
manually...

When installing it yourself, you might give Ruby its own install
directory, as described here:
http://wiki.rubygarden.org/Ruby/page/show/InstallingRuby (scroll down
to "Custom Install on GNU/Linux"). This makes for easy removal for
upgrading later on.
Also, can you tell how could I build a RPM package so I don't have to
worry about it in the future ?

If you follow the instructions for putting Ruby off in its own
directory, you don't need an rpm.

---John
 
E

Erik Veenstra

I have Ruby 1.8.2 installed on a RHEL 3 server from the
tarball, install with the usual make/make install procedure.
How can I uninstall Ruby so I can install Ruby 1.8.4 ?

# ls -ld /usr/local/*/{ruby,irb,erb,testrb,rdoc,ri}
# rm -rf /usr/local/*/{ruby,irb,erb,testrb,rdoc,ri}

Use it at your own risk!

gegroet,
Erik V. - http://www.erikveen.dds.nl/
 
M

Mat Schaffer

Hi,

I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball,
install with the usual make/make install procedure.
How can I uninstall Ruby so I can install Ruby 1.8.4 ?

Also, can you tell how could I build a RPM package so I don't have
to worry about it in the future ?

Sorry about asking, I'm a newbie when it comes to Linux.

Thanks,

Chances are good that you can just install 1.8.4. It'll likely
overwrite the old stuff assuming you didn't provide any switches to
the install process.

You can google for how to build RPMs, but it's not easy. The reason
it knows where all the files are is because someone took the time to
list them all in the SPEC file in the RPM. Go for it if you want,
but I'd bet the spray-n-pray method will work fine for you.
-Mat
 
J

Justin Collins

Mat said:
Chances are good that you can just install 1.8.4. It'll likely
overwrite the old stuff assuming you didn't provide any switches to
the install process.

You can google for how to build RPMs, but it's not easy. The reason
it knows where all the files are is because someone took the time to
list them all in the SPEC file in the RPM. Go for it if you want, but
I'd bet the spray-n-pray method will work fine for you.
-Mat
Before you do that, you probably want to see where Ruby is currently:

whereis ruby

Then use ./configure --prefix=/that/prefix

For example:

whereis ruby => /usr/local/bin/ruby

Then use

/configure --prefix=/usr/local/



Hope that helps.

-Justin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top