• 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. qsub Command Examples in Linux
  2. dar Command Examples in Linux
  3. pacman-key Command Examples
  4. mount: command not found
  5. createrepo Command Examples in Linux
  6. a2query Command Examples in Linux
  7. avrdude: Driver program for Atmel AVR microcontrollers programming (Command Examples)
  8. How to Count lines in a file in UNIX/Linux
  9. ab – Apache HTTP server benchmarking tool (Command Examples)
  10. MySQL Fails to Start Using systemctl On systemd Linux Distributions

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage blob” Command Examples (Manage blob storage containers and objects in Azure)
  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright