How to Install and Uninstall ruby-dev Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 23,2024

1. Install "ruby-dev" package

Please follow the steps below to install ruby-dev on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install ruby-dev

2. Uninstall "ruby-dev" package

This tutorial shows how to uninstall ruby-dev on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the ruby-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Package: ruby-dev
Architecture: amd64
Version: 1:2.7+1
Multi-Arch: same
Priority: optional
Section: devel
Source: ruby-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23
Depends: ruby2.7-dev
Filename: pool/main/r/ruby-defaults/ruby-dev_2.7+1_amd64.deb
Size: 4632
MD5sum: 94ea04f01a47763f5d6a6e07c7ae9804
SHA1: dabff0adc877da42cf31e82c6eadf254dc867dee
SHA256: 608f87df32e58b1b8aed3e1e527412390105794ffbb7d1ef73315332cf036357
Homepage: https://www.ruby-lang.org/
Description: Header files for compiling extension modules for Ruby (default version)
Description-md5: 198959771090d0c0f35e3376a35be299