# ruby mit Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für ruby in AI-Agent-Workflows.

## Installation

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

## Antwort zur Agent-Sicherheit

ruby runs project tooling, package builds, and scripts that often sit near credentials.

- **Credential-Zugriff:** Reads environment variables, bundle config, gem credentials, and app secrets.
- **Änderungen an Remote-Zustand:** Can run deploy scripts, API clients, and database tasks.
- **Publish-/Artefakt-Risiko:** Can build or publish gems and generated application artifacts.
- **Empfohlene Kontrolle:** Gate gem publish, deploy tasks, and script execution with injected secrets.
- **Hinweise für Agent-Nutzung:** Allow local tests; require approval for publishing, deploy commands, and secret-backed tasks.

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install ruby
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ruby
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: Fedora Rawhide package metadata: ruby from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

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

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: openSUSE Tumbleweed package metadata: ruby from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ruby
```

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

- Scoop (92%):

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

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

## Paketfakten

- **Paketschlüssel:** brew:ruby
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/ruby>
- **Version:** 4.0.6
- **Quellzusammenfassung:** Powerful, clean, object-oriented scripting language
- **Homepage:** <https://www.ruby-lang.org/>
- **Repository:** <https://github.com/ruby/ruby>
- **Upstream-Dokumentation:** <https://www.ruby-lang.org/>
- **Lizenz:** Ruby
- **Quellarchiv:** <https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.6.tar.gz>
- **Zuletzt aktualisiert:** 2026-07-31T16:13:39Z
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- 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 (Alias)
- bundler (Alias)
- erb (Alias)
- gem (Alias)
- irb (Alias)
- minitest (Alias)
- racc (Alias)
- rake (Alias)
- rbs (Alias)
- rdbg (Alias)
- rdoc (Alias)
- ri (Alias)
- ruby (Alias)
- syntax_suggest (Alias)
- test-unit (Alias)
- typeprof (Alias)

## Abhängigkeiten

- libyaml
- openssl@3

## Build-Abhängigkeiten

- pkgconf
- rust

## Von macOS bereitgestellte Bibliotheken

- libffi
- libxcrypt

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Einschränkungen: 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: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 4.0.6
- Manager aktualisiert: 2026-07-31
- lokale Daten: OK
- Upstream-Repository: https://www.ruby-lang.org/
- Info: Release/tag comparison is only available for GitHub repositories.

## Sicherheitshinweise

doc example: interpreter runtime.

- **Geiger-Risiko:** yellow / hoch
- doc example: interpreter runtime


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ~/.gem/credentials
## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ruby
- **Aliases:** ruby@4, ruby@4.0
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Andere Paketmanager-Einträge

- Debian apt - ruby - 1:3.3+b1: normalized package name match | Debian stable package indexes: ruby from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Interpreter of object-oriented scripting language Ruby (default version) | https://www.ruby-lang.org/
- Nix - ruby: normalized package name match | nixpkgs package indexes: ruby from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - ruby - 1:3.2~ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: ruby from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Interpreter of object-oriented scripting language Ruby (default version) | https://www.ruby-lang.org/
- apk - ruby - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An object-oriented language for quick and easy programming | https://www.ruby-lang.org/
- apk - ruby-dbg - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An object-oriented language for quick and easy programming (debug symbols) | https://www.ruby-lang.org/
- apk - ruby-dev - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An object-oriented language for quick and easy programming (development files) | https://www.ruby-lang.org/
- apk - ruby-doc - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An object-oriented language for quick and easy programming (documentation) | https://www.ruby-lang.org/
- apk - ruby-full - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby-full from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Ruby with all bundled gems | https://www.ruby-lang.org/
- apk - ruby-libs - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Libraries necessary to run Ruby | https://www.ruby-lang.org/
- apk - ruby-rdoc - 3.4.10-r0: normalized package name match | Alpine Linux edge package indexes: ruby-rdoc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Ruby documentation tool | https://www.ruby-lang.org/
- dnf - ruby - 4.0.6-37.fc45: normalized package name match | Fedora Rawhide package metadata: ruby from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | An interpreter of object-oriented scripting language | https://www.ruby-lang.org/
- dnf - ruby-bundled-gems - 4.0.6-37.fc45: normalized package name match | Fedora Rawhide package metadata: ruby-bundled-gems from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Bundled gems which are part of Ruby StdLib | https://www.ruby-lang.org/
- dnf - ruby-default-gems - 4.0.6-37.fc45: normalized package name match | Fedora Rawhide package metadata: ruby-default-gems from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Default gems which are part of Ruby StdLib | https://www.ruby-lang.org/
- dnf - ruby-devel - 4.0.6-37.fc45: normalized package name match | Fedora Rawhide package metadata: ruby-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A Ruby development environment | https://www.ruby-lang.org/
- dnf - ruby-doc - 4.0.6-37.fc45: normalized package name match | Fedora Rawhide package metadata: ruby-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for ruby | https://www.ruby-lang.org/
- dnf - ruby-libs - 4.0.6-37.fc45: normalized package name match | Fedora Rawhide package metadata: ruby-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Libraries necessary to run Ruby | https://www.ruby-lang.org/


## Verwandte Links

- [Package publisher tools](https://pkg.so/de/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/de/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/de/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openssl@3](https://pkg.so/de/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/de/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/de/brew/rust/) - Build dependency declared by Homebrew.
- [cocoapods](https://pkg.so/de/brew/cocoapods/) - Popular package that depends on this formula.
- [fastlane](https://pkg.so/de/brew/fastlane/) - Popular package that depends on this formula.
- [macvim](https://pkg.so/de/brew/macvim/) - Popular package that depends on this formula.
- [asciidoctor](https://pkg.so/de/brew/asciidoctor/) - Popular package that depends on this formula.
- [cdxgen](https://pkg.so/de/brew/cdxgen/) - Popular package that depends on this formula.
- [tmuxinator](https://pkg.so/de/brew/tmuxinator/) - Popular package that depends on this formula.
- [weechat](https://pkg.so/de/brew/weechat/) - Popular package that depends on this formula.
- [lolcat](https://pkg.so/de/brew/lolcat/) - Popular package that depends on this formula.
- [ruby@3.3](https://pkg.so/de/brew/ruby-3-3/) - Package name indicates the same formula family.
- [ruby@3.2](https://pkg.so/de/brew/ruby-3-2/) - Package name indicates the same formula family.
- [ruby@3.4](https://pkg.so/de/brew/ruby-3-4/) - Package name indicates the same formula family.
- [portable-ruby](https://pkg.so/de/brew/portable-ruby/) - Shares the same upstream homepage.
- [lua](https://pkg.so/de/brew/lua/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language, scripting.
- [picat](https://pkg.so/de/brew/picat/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language, scripting.
- [arturo](https://pkg.so/de/brew/arturo/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language, scripting.
- [php](https://pkg.so/de/brew/php/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [perl](https://pkg.so/de/brew/perl/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [luau](https://pkg.so/de/brew/luau/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.

## Combined YAML source

View the package source record on GitHub. [combined/ruby.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ruby.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
