How to upgrade ruby to the latest version in ubuntu?

@ubuntu:~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
@ubuntu:~$

I am using Ubuntu 12.10. Can it be upgraded to the latest version of
ruby?

when I installed it I didn't use the rvm, I used the bellow command:

sudo apt install ruby

···

--
Posted via http://www.ruby-forum.com/.

you can use brightbox's ppa
refer to this link: http://wiki.brightbox.co.uk/docs:ruby-ng
or: Ruby packages for Ubuntu - Docs - Brightbox
or: http://docs.brightbox.com/ruby/ubuntu/

no ruby 2.0 yet though..

···

On Mon, Feb 25, 2013 at 1:06 AM, Love U Ruby <lists@ruby-forum.com> wrote:

@ubuntu:~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
@ubuntu:~$

I am using Ubuntu 12.10. Can it be upgraded to the latest version of
ruby?

when I installed it I didn't use the rvm, I used the bellow command:

sudo apt install ruby

--
Posted via http://www.ruby-forum.com/\.

--
Regards,
Kiswono P
GB

Kiswono Prayogo wrote in post #1098865:

you can use brightbox's ppa
refer to this link: http://wiki.brightbox.co.uk/docs:ruby-ng
or:
Ruby packages for Ubuntu - Docs - Brightbox
or: http://docs.brightbox.com/ruby/ubuntu/

no ruby 2.0 yet though..

Thanks for your suggestions.

I wanted to know why the version 'Ruby 1.9.3-p392' has not been updated
while I used the below?

sudo apt-get install ruby1.9.3

the above installed the version : "ruby 1.9.3p194"

···

--
Posted via http://www.ruby-forum.com/\.

umm.. i'm using that PPA, and my ruby version is:

$ ruby --version
ruby 1.9.3p327 (2012-11-10) [i686-linux] Brightbox

$ dpkg --list | grep ruby1.9
ii libruby1.9.1 1:1.9.3.327-1bbox2~quantal1 i386 Libraries necessary to run Ruby 1.9.1
ii ruby1.9.1 1:1.9.3.327-1bbox2~quantal1 i386 Interpreter of object-oriented scripting language Ruby
ii ruby1.9.1-dev 1:1.9.3.327-1bbox2~quantal1 i386 Header files for compiling extension modules for the Ruby 1.9.1

maybe you should install brightbox's ruby1.9.1

sudo apt-get install ruby1.9.1

$ apt-cache show ruby1.9.1 | grep Version
Version: 1:1.9.3.327-1bbox2~quantal1
Version: 1.9.3.194-1ubuntu1.3
Version: 1.9.3.194-1ubuntu1

···

On 02/25/2013 03:30 PM, Love U Ruby wrote:

Kiswono Prayogo wrote in post #1098865:

you can use brightbox's ppa
refer to this link: http://wiki.brightbox.co.uk/docs:ruby-ng
or:
Ruby packages for Ubuntu - Docs - Brightbox
or: http://docs.brightbox.com/ruby/ubuntu/

no ruby 2.0 yet though..

Thanks for your suggestions.

I wanted to know why the version 'Ruby 1.9.3-p392' has not been updated
while I used the below?

sudo apt-get install ruby1.9.3

the above installed the version : "ruby 1.9.3p194"

I guess, p194 was the current version when 12.10 was released. You'll only get security updates for your packages (if the maintainer takes care about this). If you want to get the latest version automatically, you should not use release-based linux distros (like debian,ubuntu, rh,...). It's not the philosophy behind releases, that you'll get bleeding edge versions for everything. I'm using archlinux for several years now, which has a rolling (i.e. no) release cycle - it's not perfectly stable, but I always get the latest version for most of the packages, e.g. ruby: https://www.archlinux.org/packages/extra/x86_64/ruby\.

hth
ralf

···

On 02/25/2013 09:30 AM, Love U Ruby wrote:

Kiswono Prayogo wrote in post #1098865:

you can use brightbox's ppa
refer to this link: http://wiki.brightbox.co.uk/docs:ruby-ng
or:
http://blog.brightbox.co.uk/posts/next-generation-ruby-packages-for-ubuntu
or: http://docs.brightbox.com/ruby/ubuntu/

no ruby 2.0 yet though..

Thanks for your suggestions.

I wanted to know why the version 'Ruby 1.9.3-p392' has not been updated
while I used the below?

sudo apt-get install ruby1.9.3

the above installed the version : "ruby 1.9.3p194"

Kiswono Prayogo wrote in post #1098915:

umm.. i'm using that PPA, and my ruby version is:

$ ruby --version
ruby 1.9.3p327 (2012-11-10) [i686-linux] Brightbox

$ dpkg --list | grep ruby1.9
ii libruby1.9.1
1:1.9.3.327-1bbox2~quantal1
     i386 Libraries necessary to run Ruby 1.9.1
ii ruby1.9.1
1:1.9.3.327-1bbox2~quantal1
     i386 Interpreter of object-oriented scripting language Ruby
ii ruby1.9.1-dev
1:1.9.3.327-1bbox2~quantal1

Should I need uninstall my existing one? If so Could you guide from
uninstallation to installation of "1.9.3p327" ?

···

--
Posted via http://www.ruby-forum.com/\.

to install, just follow the link on the site i gave you earlier..

to uninstall, just type sudo apt-get purge ruby1.9.3

···

On 02/25/2013 03:49 PM, Love U Ruby wrote:

Kiswono Prayogo wrote in post #1098915:

umm.. i'm using that PPA, and my ruby version is:

$ ruby --version
ruby 1.9.3p327 (2012-11-10) [i686-linux] Brightbox

$ dpkg --list | grep ruby1.9
ii libruby1.9.1
1:1.9.3.327-1bbox2~quantal1
      i386 Libraries necessary to run Ruby 1.9.1
ii ruby1.9.1
1:1.9.3.327-1bbox2~quantal1
      i386 Interpreter of object-oriented scripting language Ruby
ii ruby1.9.1-dev
1:1.9.3.327-1bbox2~quantal1

Should I need uninstall my existing one? If so Could you guide from
uninstallation to installation of "1.9.3p327" ?