Uninstall Legacy Ruby Installations
Last modified: November 30, 2020
Overview
We deprecated the legacy Ruby codebase in cPanel & WHM version 66. We will not support any applications you create with the following interfaces:
-
cPanel’s Ruby on Rails interface (cPanel » Home » Software » Ruby on Rails).
-
cPanel’s RubyGems interface (cPanel » Home » Software » RubyGems).
-
The Ruby Gem installer feature in WHM’s Module Installers interface (WHM » Home » Software » Module Installers).
To install Ruby and create Ruby web applications in cPanel & WHM version 66 and later, follow the directions in our How to Create Ruby Web Applications documentation.
You can use several different methods to uninstall Ruby in cPanel & WHM version 64 and earlier.
Manual Compilation
If you manually compiled Ruby on your server, run the make uninstall
command in the package directory.
After you uninstall Ruby from your server, the system may leave several files and folders on your server. We recommend that you run the following commands to archive any Ruby files and folders that the uninstall
command did not remove. This process prevents conflicts with future installations of Ruby:
|
|
The rpm command
To determine whether Ruby exists on your server, run the following command:
rpm -qa|grep -i ruby
The command returns output that resembles the following example:
|
|
To remove a package, run the rpm e --nodeps packagename
command, where packagename
represents the name of a package.
The yum command
To determine whether Ruby exists on your server, run the following command:
yum provides ruby
The command returns output that resembles the following example:
|
|
To remove a package, run the yum erase packagename
command, where packagename
represents the name of a package.