Listing of all installed Rails gems and their location on disk

This command will list all installed gems by name:

Location on disk

If you are looking for the location gems are stored on you hard drive, you have to start with this command:

The output of gem env will show all gem-related environment variables. To find the location of you gems you will need to look for a section called GEM_PATHS.

The example above is taken from my system. There, gem files are located in /home/hlars/.rvm/gems/ruby-2.2.1 – in the subfolder gems.

On my system I will find the gem files in:

 

(69 Posts)

20 years of coding and working as software engineer but I am still eager to learn more. I am very passionate when it comes to open source, Linux and Java. But I made my peace with Windows long ago to fully enjoy my PC gaming hobby. I have a soft spot for 90s electronic music and Babylon 5. In the evenings you will find me roaming the endless space in Warframe (IGN k05h).