From: Markus Fischer Date: 2010-09-24T06:24:25+09:00 Subject: Re: How to update ruby to version 1.9.2 on linux platform Hi, On 23.09.2010 22:57, Tanawat Limungkura wrote: > I'm very sorry that ask several silly questions.But I'm actually very > new for ruby and linux. So please answer my question > I try to install ruby on Ubuntu with command > apt-get install ruby1.9.1-full > The process is completed.But I cant use ruby command just like > ruby -v > So I try apt-get install ruby It's work.But when I check > version of ruby It's 1.8.7. How I upgrade ruby to latest version on > linux ? Please help me ruby1.9.1-full is a convenient package to install everything related to ruby 1.9.1, thus the real package containing the actual ruby executable is ruby-1.9.1. The binary itself is called "ruby1.9.1", so you need to run $ ruby1.9.1 yourscript.rb Ubuntu, like Debian, has a web gateway to all that package information. If you happen to get lost the next time, you can use it that way: 1. Search your package at http://packages.ubuntu.com/ 2. E.g. find http://packages.ubuntu.com/en/lucid/ruby1.9.1-full 3. Follow to http://packages.ubuntu.com/en/lucid/ruby1.9.1 4. View the list of files -> http://packages.ubuntu.com/en/lucid/i386/ruby1.9.1/filelist Without using the web, you can use $ dpkg -L To list the files contained in a package. But that wouldn't have helped much with the ruby1.9.1-full package ... HTH