SEARCH
TOOLBOX
LANGUAGES
Gem

Gem

From GarrettHoneycutt

Jump to: navigation, search

Contents

List installed gems

# gem list --local

Updating gems

update the gem system

# gem update --system --no-rdoc --no-ri -y

install missing gems

# gem install --no-rdoc --no-ri -y rack

update all gems, with exceptions

The exceptions in this case are `ruby2ruby` and `ParseTree`

$ for gem in $(gem list --local |grep ^[a-zA-Z] | awk '{print $1}' |grep -ve ruby2ruby -e ParseTree -e ^$); \
do echo "updating gem: $gem"; sudo gem update $gem -y --no-rdoc --no-ri ; done