Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

RubyGems

Like Pip, we can check which version of RubyGems we have installed with a simple gem command:

$ gem --version2.7.6

To list the installed gems, we can use list, funnily enough:

$ gem list*** LOCAL GEMS ***bigdecimal (default: 1.3.4)cmath (default: 1.0.0)csv (default: 1.0.0)date (default: 1.0.0)dbm (default: 1.0.0)did_you_mean (1.2.0)...

If we want to search for a package, we use gem search (we also have the --exact option in RubyGems, which Pip lacks):

$ gem search -e chef*** REMOTE GEMS ***chef (14.5.33 ruby universal-mingw32, 12.3.0 x86-mingw32)

We can also install (as a user) with gem install:

$ gem install chef --user-install

Note that by default, the .local gem installation location will not be in your PATH, but we can call it ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content