# Question about using gem install

**URL:** <https://forums.rockylinux.org/t/question-about-using-gem-install/8243>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 13, 2022, 1:32pm UTC](https://forums.rockylinux.org/t/question-about-using-gem-install/8243 "2022-12-13T13:32:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![microlinux](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/microlinux/32/1244_2.png) [@microlinux](https://forums.rockylinux.org/u/microlinux)\
**Post date:** [December 13, 2022, 1:32pm UTC](https://forums.rockylinux.org/t/question-about-using-gem-install/8243/1 "2022-12-13T13:32:07Z")

</div>

Hi,

I’m running Rocky Linux 8 and I’d like to install the following piece of software:

> **[GitHub - Gazler/githug: Git your game on!](https://github.com/Gazler/githug)**
>
> Git your game on! Contribute to Gazler/githug development by creating an account on GitHub.

Githug is an interactive command-line game to learn Git. I’ve already tested it in a VM, and it’s nice.

According to the documentation, Githug is supposed to be installed like this:

`# gem install githug`

It depends on the `rubygems` package.

Now my question. I usually refrain from installing stuff without using DNF and properly built packages. Only it looks like this time there’s no package to be found for `githug`, not even in Fedora.

When I perform the install as `root`, I end up with a `/usr/local/bin/githug` binary, though I don’t know what other stuff gets install where when running `gem install`.

What’s your take on this ? Can I use `gem install` as `root` without having to fear breakage ?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [December 13, 2022, 1:44pm UTC](https://forums.rockylinux.org/t/question-about-using-gem-install/8243/2 "2022-12-13T13:44:23Z")

</div>

You should be able to find out using:

```auto
bundle show --paths

```

from your Ruby app root directory (where Gemfile exists) most of your system packages will be in /var/lib/gems. I expect for your local one, it will end up in /usr/local/lib/gems or thereabouts.

I’ve been using Redmine for years and have had main system packages and local ones installed with Gem and it’s worked. It’s not best practice, so you can do it without any major adverse effects, but it’s generally not recommended installing them as root user. The same comes for when compiling packages etc. The only time it will make a big difference is if you have a system-wide Ruby installed, and another one somewhere else.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:31am UTC](https://forums.rockylinux.org/t/question-about-using-gem-install/8243/3 "2023-08-25T03:31:11Z")

</div>

Closed on August 25, 2023, 3:31am UTC


