Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to completely remove rails 4.0.0.rc1 from Linux Mint v14 Nadia

I decided to completely remove rails 4.0.0.rc1 and install rails 3.2.13.

I need instructions how to remove rails 4.0.0.rc1.

like image 775
Askar Avatar asked May 23 '13 09:05

Askar


2 Answers

If you get the following error:

ERROR: While executing gem ... (Gem::InstallError) gem "rails" is not installed

Enter:
sudo gem uninstall rails -v 4.0.0
Then enter:
sudo gem uninstall railties

The command line will prompt you with something similar to this:
Select gem to uninstall:
1. railties-3.2.13
2. railties-4.0.0
3. All versions

select the version you want to uninstall by typing the corresponding number. In this case 2.

like image 40
C_Collins Avatar answered Nov 17 '22 02:11

C_Collins


You can try this:

gem uninstall rails -v 4.0.0.rc1

Update:

gem uninstall railties

or if you already have more version installed:

gem uninstall railties -v 4.0.0.rc1

You can check which rails gem installed with gem list rails

Of course you can install after your desired gem:

gem install rails -v 3.2.13

like image 59
Zoltan Avatar answered Nov 17 '22 01:11

Zoltan