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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. Linux / UNIX : How to send mails with attachments using mailx command
  2. /var/log/chrony Directory Empty in CentOS/RHEL
  3. latte-dock: command not found
  4. How to check failed or bad login attempts in Linux
  5. Order of environment calls for different OS shells in Linux
  6. How to Install and Configure Kerberos in CentOS/RHEL 7
  7. How to Install dmg File on Mac from Command Line
  8. What is the purpose of “mysql.sys@localhost” user
  9. apt-file Command Examples in Linux
  10. tuned-adm and Oracle

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright