Many time a rails developer have an situation where they want to uninstall all gems which are installed.
Here we can take an advantage of pipelining output from one command to other command.
This command will remove multiple versions of gems and will keep only higher version of gem.
Here we are using pipelining, where command first will list all gems with no version, and second command will take it for consume.
Extra :
If you need to exclude some gem from being uninstall, use following command,
No comments:
Post a Comment