How to Install Ruby 2.6.8 with Your System Package Manager

  • By:BAOPACK
  • 23-04-2024
  • 137

How to Install Ruby 2.6.8 with Your System Package Manager

When it comes to managing programming languages on your system, utilizing the package manager can be a lifesaver. In this guide, we will walk you through the process of installing Ruby 2.6.8 using your system’s package manager.

Installing Ruby 2.6.8 on Ubuntu

If you are using Ubuntu, updating and installing Ruby 2.6.8 is quite straightforward. Start by opening your terminal and running the following commands:


sudo apt update
sudo apt install ruby-full=2.6.8

This will ensure that Ruby 2.6.8 is installed on your Ubuntu system. You can verify the installation by typing:


ruby --version

Installing Ruby 2.6.8 on Fedora

For Fedora users, the process is a bit different. You can install Ruby 2.6.8 by using the DNF package manager. Run the following commands in your terminal:


sudo dnf install ruby-2.6.8

Once the installation is complete, you can verify the Ruby version by typing:


ruby -v

Conclusion

By following these steps, you should now have Ruby 2.6.8 successfully installed on your system using the package manager. Enjoy coding with the latest version of Ruby!



vr

+VR TOUR

INQUIRY

    Online Service