How to Install and Uninstall ruby Package on Debian 11 (Bullseye)

Last updated: May 03,2024

1. Install "ruby" package

This guide let you learn how to install ruby on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install ruby

2. Uninstall "ruby" package

This guide covers the steps necessary to uninstall ruby on Debian 11 (Bullseye):

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

3. Information about the ruby package on Debian 11 (Bullseye)

Package: ruby
Source: ruby-defaults
Version: 1:2.7+2
Installed-Size: 35
Maintainer: Debian Ruby Team
Architecture: amd64
Replaces: irb, rdoc, rubygems
Provides: irb, rdoc, rubygems
Depends: ruby2.7, ruby-rubygems
Suggests: ri, ruby-dev
Conflicts: ruby-activesupport-2.3, ruby-activesupport-3.2
Breaks: apt-listbugs (<< 0.1.6), rbenv (<= 0.4.0-1), ruby-bootsnap (<< 1.4.6-1), ruby-debian (<< 0.3.8+b3), ruby-switch (<= 0.1.0)
Description: Interpreter of object-oriented scripting language Ruby (default version)
Description-md5: 53b76e874611c6e48c73acd5da40075e
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_2.7+2_amd64.deb
Size: 11708
MD5sum: 96930f034fe84f91cee71d0b46cbee47
SHA256: bfef89ab7b12d4048f4692764f0a39c2c855abe01689733d31bd244aed77dbb1