How to Install and Uninstall ruby Package on Debian 12 (Bookworm)

Last updated: November 07,2024

1. Install "ruby" package

Please follow the step by step instructions below to install ruby on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install ruby

2. Uninstall "ruby" package

This guide covers the steps necessary to uninstall ruby on Debian 12 (Bookworm):

$ sudo apt remove ruby $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby package on Debian 12 (Bookworm)

Package: ruby
Source: ruby-defaults
Version: 1:3.1
Installed-Size: 29
Maintainer: Debian Ruby Team
Architecture: amd64
Replaces: irb, rdoc, rubygems
Provides: irb, rdoc, rubygems
Depends: ruby3.1, libruby (= 1:3.1), ruby-rubygems
Suggests: ri, ruby-dev
Conflicts: ruby-activesupport-2.3, ruby-activesupport-3.2
Breaks: ruby-bootsnap (<< 1.4.6-1), ruby-switch (<= 0.1.0)
Description: Interpreter of object-oriented scripting language Ruby (default version)
Description-md5: 4a8f64f82049fcedc6a9e45cb74e85f4
Multi-Arch: allowed
Homepage: https://www.ruby-lang.org/
Tag: devel::interpreter, devel::lang:ruby, devel::runtime,
implemented-in::ruby, interface::commandline, role::dummy,
role::metapackage, role::program, works-with::software:source
Section: ruby
Priority: optional
Filename: pool/main/r/ruby-defaults/ruby_3.1_amd64.deb
Size: 5868
MD5sum: 743a298d9e01d1de07357a1aff40176e
SHA256: 4617d5eb715441bdc92e710d127f28654bbf05e888fbb492a14538d4189f3eef