• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to uninstall rbenv from Ubuntu

by admin

Developers can install Ruby across all the platforms using a tool called Rbenv; I personally use this. Rbenv will let you jump across Ruby versions easily and install and test out new Ruby distributions with the help of Rbenv’s plugin, ruby-build.

rbenv works by intercepting Ruby commands using shim executables injected into your PATH. It will then determine which Ruby version has been set for a particular application and pass your commands to the specified Ruby installation.

A shim in computer programming is a small library that intercepts API calls, changes the arguments passed, and handles or redirects the operations transparently.

You can uninstall or removes an installed rbenv package itself from Ubuntu through the terminal, using the below command:

$ sudo apt-get remove rbenv 

Uninstall rbenv including dependent package

If you would like to remove rbenv and its dependent packages which are no longer needed from Ubuntu:

$ sudo apt-get remove --auto-remove rbenv 

Use Purging rbenv

If you use with purge options to rbenv package, all the configuration and dependent packages will be removed.

$ sudo apt-get purge rbenv 

If you use purge options along with auto-remove, will be removed everything regarding the package, It’s really useful when you want to reinstall it again.

$ sudo apt-get purge --auto-remove rbenv 

Filed Under: Linux, Ubuntu

Some more articles you might also be interested in …

  1. just Command Examples in Linux
  2. loc Command Examples
  3. dircolors: Output commands to set the LS_COLOR environment variable and style ls, dir, etc
  4. Using cut on Linux Terminal
  5. lpr: command not found
  6. CentOS / RHEL : How to set chroot jail for vsftp for all the users
  7. fio: Flexible I/O tester
  8. tcptraceroute: command not found
  9. fdisk: command not found
  10. make Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright