How to remove ruby ​​from my cygwin installation

My cygwin installation contains the following ruby ​​binaries, how can I delete these binaries since I would like to use ruby ​​192 on my Windows Vista machine.

ruby.exe rubyw.exe 
+6
source share
3 answers

To remove any package on Cygwin, run setup-x86.exe or setup-x86_64.exe (which you already have, or you can get them here ), select "ruby" in the "translators" section, click the round arrow icon until "Uninstall" message does not appear, and then continue. This will remove executable files and libraries and take care of any dependencies. You can delete files directly, but this can leave the system in an inconsistent state, and you can skip something.

Cygwin does not yet have, unfortunately, Ruby 1.9.2 (NOTE: I wrote this a few years ago, and currently I can not verify). How are you going to install it? If you intend to install a clean version of Ruby for Windows (not Cygwin), you may not need to uninstall the version of Cygwin. For example, I have both Cygwin Perl and ActiveState Perl on my Windows 7 system; I use one from the Cygwin environment, the other from the Windows environment.

Or I suppose you could create ruby ​​1.9.2 from a source under Cygwin; in this case, yes, you want to remove the Cygwin ruby ​​system first.

(When I write this update, the latest version of Ruby is 2.3.2.)

http://www.ruby-lang.org/en/downloads/ contains more information on how to install ruby ​​(but nothing special in Cygwin).

+8
source

I tried what says in Cygwin docs :

2.18.

How to remove individual packages?

Run Cygwin Setup in the same way as for installing packages. In the list of packages to install, view the corresponding category or View'' button to get a full listing. Click on the cycle glyph until the action reads View'' button to get a full listing. Click on the cycle glyph until the action reads Delete. '' Continue by clicking “Next.”

But it didn’t work, I did it for “All Users” and “My User” when running the installer.

So, I finally repeated this process, but did not check "Select the required packages (RECOMMENDED)" and the time when it worked. Now:

 $ ruby -v -bash: ruby: command not found 

As a last step, I deleted the .gem file in my Cygwin home folder.

+3
source

Alternatively, you can use RVM (Ruby Version Manager) to install Ruby 1.9.2, while maintaining the current version. To install and compile Ruby, you need curl, git, automake, and mingw.

+1
source

Source: https://habr.com/ru/post/896964/


All Articles