# ruby をインストール

ruby のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ruby
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ruby
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ruby
```

  証拠: MacPorts ports tree: lang/ruby/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ruby
```

  証拠: Alpine Linux edge package indexes: ruby from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ruby
```

  証拠: Debian stable package indexes: ruby from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ruby
```

  証拠: Fedora Rawhide package metadata: ruby from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ruby
```

  証拠: nixpkgs package indexes: ruby from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ruby
```

  証拠: Arch Linux sync databases: ruby from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ruby
```

  証拠: openSUSE Tumbleweed package metadata: ruby from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ruby
```

  証拠: Chocolatey community package catalog: ruby from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','reshack'

- Scoop (92%):

```sh
scoop install main/ruby
```

  証拠: Scoop official bucket manifest trees: bucket/ruby.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:ruby
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ruby>
- **バージョン:** 4.0.5
- **ソース概要:** Powerful, clean, object-oriented scripting language
- **ホームページ:** <https://www.ruby-lang.org/>
- **上流ドキュメント:** <https://www.ruby-lang.org/>
- **ライセンス:** Ruby
- **ソースアーカイブ:** <https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.5.tar.gz>
- **更新:** 2026-05-20T10:58:38Z
- **生成ソース:** 2026-05-26T17:25:59+00:00

## 実行可能ファイル

- bundle (cli)
- bundler (cli)
- erb (cli)
- gem (cli)
- irb (cli)
- minitest (cli)
- racc (cli)
- rake (cli)
- rbs (cli)
- rdbg (cli)
- rdoc (cli)
- ri (cli)
- ruby (cli)
- syntax_suggest (cli)
- test-unit (cli)
- typeprof (cli)
- bundle (エイリアス)
- bundler (エイリアス)
- erb (エイリアス)
- gem (エイリアス)
- irb (エイリアス)
- minitest (エイリアス)
- racc (エイリアス)
- rake (エイリアス)
- rbs (エイリアス)
- rdbg (エイリアス)
- rdoc (エイリアス)
- ri (エイリアス)
- ruby (エイリアス)
- syntax_suggest (エイリアス)
- test-unit (エイリアス)
- typeprof (エイリアス)

## 依存関係

- libyaml
- openssl@3

## ビルド依存関係

- autoconf
- pkgconf
- rust

## macOS 提供ライブラリ

- gperf
- libffi
- libxcrypt

## インストール挙動

- post-install フック: 定義済み
- Caveats: By default, binaries installed by gem will be placed into: $HOMEBREW_PREFIX/lib/ruby/gems/4.0.0/bin You may want to add this to your PATH.
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 鮮度

- ページ生成日: 2026-05-26
- マネージャ版: 4.0.5
- マネージャ更新日: 2026-05-20
- ローカルデータ: ok
- 上流リポジトリ: https://www.ruby-lang.org/
- info: Release/tag comparison is only available for GitHub repositories.

## セキュリティノート

doc example: interpreter runtime.

- **Geiger リスク:** yellow / high
- doc example: interpreter runtime
- **radioisotope:** Plain Text RubyGems Credentials

## 関連リンク

- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [libyaml](https://www.automicvault.com/pkg/brew/libyaml/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cocoapods](https://www.automicvault.com/pkg/brew/cocoapods/) - Popular package that depends on this formula.
- [fastlane](https://www.automicvault.com/pkg/brew/fastlane/) - Popular package that depends on this formula.
- [macvim](https://www.automicvault.com/pkg/brew/macvim/) - Popular package that depends on this formula.
- [asciidoctor](https://www.automicvault.com/pkg/brew/asciidoctor/) - Popular package that depends on this formula.
- [tmuxinator](https://www.automicvault.com/pkg/brew/tmuxinator/) - Popular package that depends on this formula.
- [cdxgen](https://www.automicvault.com/pkg/brew/cdxgen/) - Popular package that depends on this formula.
- [weechat](https://www.automicvault.com/pkg/brew/weechat/) - Popular package that depends on this formula.
- [foreman](https://www.automicvault.com/pkg/brew/foreman/) - Popular package that depends on this formula.
- [ruby@3.3](https://www.automicvault.com/pkg/brew/ruby-3-3/) - Package name indicates the same formula family.
- [ruby@3.2](https://www.automicvault.com/pkg/brew/ruby-3-2/) - Package name indicates the same formula family.
- [ruby@3.4](https://www.automicvault.com/pkg/brew/ruby-3-4/) - Package name indicates the same formula family.
- [portable-ruby](https://www.automicvault.com/pkg/brew/portable-ruby/) - Shares the same upstream homepage.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/)
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## ソース

- Nucleus package database
- Geiger risk classifier
- radioisotope security manifest
- local isotope README
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
