I am trying to remove all ruby gems before uninstalling ruby. The command I am using is: sudo gem uninstall --all to achieve this. However, I have to type y continually to remove things. Is there a way I could achieve the same thing without having to type y to remove all of the dependencies?
Is there a way to use this command without having to type 'y' all the time?
command line;gem
Use yes:yes | sudo gem uninstall --all