# Install perl with Homebrew, apk, apt, dnf, Nix, pacman, scoop, zypper

Highly capable, feature-rich programming language. Version 5.42.2 via Homebrew; verified 2026-04-20.

## Install

```sh
sudo av install brew:perl
```

## Agent safety answer

perl runs scripts and package workflows that may sit near credentials.

- **Credential access:** Reads environment variables, config files, and script inputs.
- **Remote mutation:** Can run arbitrary automation that calls APIs or changes files.
- **Publish/artifact risk:** Can build or publish CPAN-style artifacts through related tooling.
- **Recommended control:** Gate script execution when secrets or network mutation are involved.
- **Agent-use guidance:** Allow local lint/test scripts; require approval for secret-backed or publishing scripts.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install perl
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add miniperl
```

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

- Debian apt (92%):

```sh
sudo apt install libperl-dev
```

  Evidence: Debian stable package indexes: libperl-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install perl
```

  Evidence: Fedora Rawhide package metadata: perl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#perl
```

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

- pacman (92%):

```sh
sudo pacman -S perl
```

  Evidence: Arch Linux sync databases: perl from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install perl
```

  Evidence: openSUSE Tumbleweed package metadata: perl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/perl
```

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

## Package facts

- **Package key:** brew:perl
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/perl>
- **Version:** 5.42.2
- **Source summary:** Highly capable, feature-rich programming language
- **Homepage:** <https://www.perl.org/>
- **Repository:** <https://github.com/Perl/perl5>
- **Upstream docs:** <https://perldoc.perl.org/>
- **License:** Artistic-1.0-Perl OR GPL-1.0-or-later
- **Source archive:** <https://www.cpan.org/src/5.0/perl-5.42.2.tar.xz>
- **Last updated:** 2026-04-20T03:46:02Z
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- corelist (cli)
- cpan (cli)
- enc2xs (cli)
- encguess (cli)
- h2ph (cli)
- h2xs (cli)
- instmodsh (cli)
- json_pp (cli)
- libnetcfg (cli)
- perl (cli)
- perl5.42.2 (cli)
- perlbug (cli)
- perldoc (cli)
- perlivp (cli)
- perlthanks (cli)
- piconv (cli)
- pl2pm (cli)
- pod2html (cli)
- pod2man (cli)
- pod2text (cli)
- pod2usage (cli)
- podchecker (cli)
- prove (cli)
- ptar (cli)
- ptardiff (cli)
- ptargrep (cli)
- shasum (cli)
- splain (cli)
- streamzip (cli)
- xsubpp (cli)
- zipdetails (cli)
- corelist (alias)
- cpan (alias)
- enc2xs (alias)
- encguess (alias)
- h2ph (alias)
- h2xs (alias)
- instmodsh (alias)
- json_pp (alias)
- libnetcfg (alias)
- perl (alias)
- perl5.42.2 (alias)
- perlbug (alias)
- perldoc (alias)
- perlivp (alias)
- perlthanks (alias)
- piconv (alias)
- pl2pm (alias)
- pod2html (alias)
- pod2man (alias)
- pod2text (alias)
- pod2usage (alias)
- podchecker (alias)
- prove (alias)
- ptar (alias)
- ptardiff (alias)
- ptargrep (alias)
- shasum (alias)
- splain (alias)
- streamzip (alias)
- xsubpp (alias)
- zipdetails (alias)

## Dependencies

- gdbm

## Uses from macOS

- libxcrypt

## Install behavior

- Post-install hook: not defined
- Caveats: By default non-brewed cpan modules are installed to the Cellar. If you wish for your modules to persist across updates we recommend using `local::lib`. You can set that up like this: PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib And add the following to your shell profile e.g. ~/.profile or ~/.zshrc eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 5.42.2
- Package-manager updated: 2026-04-20
- Local data: ok
- Upstream repository: https://www.perl.org/
- info: Release/tag comparison is only available for GitHub repositories.

## Security Notes

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal


## 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.


## Configuration files

- Unix: ~/.cpan/CPAN/MyConfig.pm, ~/.cpan/CPAN/Config.pm, ~/.cpan/CPAN/Config_local.pm

## Credential files

- Unix: ~/.cpan/CPAN/MyConfig.pm, ~/.cpan/CPAN/Config.pm, ~/.cpan/CPAN/Config_local.pm
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** perl
- **Aliases:** perl@5.42
- **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

## Other Package-Manager Records

- Debian apt - libperl-dev - 5.40.1-6: normalized package name match | Debian stable package indexes: libperl-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl library: development files | https://dev.perl.org/perl5/
- Debian apt - libperl5.40 - 5.40.1-6: normalized package name match | Debian stable package indexes: libperl5.40 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared Perl library | https://dev.perl.org/perl5/
- Debian apt - perl - 5.40.1-6: normalized package name match | Debian stable package indexes: perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Larry Wall's Practical Extraction and Report Language | https://dev.perl.org/perl5/
- Debian apt - perl-base - 5.40.1-6: normalized package name match | Debian stable package indexes: perl-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | minimal Perl system | https://dev.perl.org/perl5/
- Debian apt - perl-debug - 5.40.1-6: normalized package name match | Debian stable package indexes: perl-debug from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | debug-enabled Perl interpreter | https://dev.perl.org/perl5/
- Debian apt - perl-doc - 5.40.1-6: normalized package name match | Debian stable package indexes: perl-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl documentation | https://dev.perl.org/perl5/
- Debian apt - perl-modules-5.40 - 5.40.1-6: normalized package name match | Debian stable package indexes: perl-modules-5.40 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Core Perl modules | https://dev.perl.org/perl5/
- Nix - perl: normalized package name match | nixpkgs package indexes: perl from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libperl-dev - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libperl-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Perl library: development files | http://dev.perl.org/perl5/
- Ubuntu apt - libperl5.38t64 - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libperl5.38t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | shared Perl library | http://dev.perl.org/perl5/
- Ubuntu apt - perl - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: perl from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Larry Wall's Practical Extraction and Report Language | http://dev.perl.org/perl5/
- Ubuntu apt - perl-base - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: perl-base from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | minimal Perl system | http://dev.perl.org/perl5/
- Ubuntu apt - perl-debug - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: perl-debug from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | debug-enabled Perl interpreter | http://dev.perl.org/perl5/
- Ubuntu apt - perl-doc - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: perl-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Perl documentation | http://dev.perl.org/perl5/
- Ubuntu apt - perl-modules-5.38 - 5.38.2-3.2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: perl-modules-5.38 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Core Perl modules | http://dev.perl.org/perl5/
- apk - miniperl - 5.42.2-r0: normalized package name match | Alpine Linux edge package indexes: miniperl from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Larry Wall's Practical Extraction and Report Language | https://www.perl.org/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gdbm](https://www.automicvault.com/pkg/brew/gdbm/) - Runtime dependency declared by Homebrew.
- [abcde](https://www.automicvault.com/pkg/brew/abcde/) - Popular package that depends on this formula.
- [abi-dumper](https://www.automicvault.com/pkg/brew/abi-dumper/) - Popular package that depends on this formula.
- [apt](https://www.automicvault.com/pkg/brew/apt/) - Popular package that depends on this formula.
- [carton](https://www.automicvault.com/pkg/brew/carton/) - Popular package that depends on this formula.
- [cpm](https://www.automicvault.com/pkg/brew/cpm/) - Popular package that depends on this formula.
- [dpkg](https://www.automicvault.com/pkg/brew/dpkg/) - Popular package that depends on this formula.
- [epics-base](https://www.automicvault.com/pkg/brew/epics-base/) - Popular package that depends on this formula.
- [irssi](https://www.automicvault.com/pkg/brew/irssi/) - Popular package that depends on this formula.
- [php](https://www.automicvault.com/pkg/brew/php/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, runtime, scripting.
- [gnu-apl](https://www.automicvault.com/pkg/brew/gnu-apl/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, scripting.
- [gosu](https://www.automicvault.com/pkg/brew/gosu/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, scripting.
- [gravity](https://www.automicvault.com/pkg/brew/gravity/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, runtime.
- [groovy](https://www.automicvault.com/pkg/brew/groovy/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, scripting.
- [icon](https://www.automicvault.com/pkg/brew/icon/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, runtime.
- [io](https://www.automicvault.com/pkg/brew/io/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, scripting.
- [janet](https://www.automicvault.com/pkg/brew/janet/) - Shares av.db curated category or tags: cli, language-runtime, programming-language, scripting.

## Combined YAML source

View the package source record on GitHub. [combined/perl.yml](https://github.com/automic-vault/db/blob/main/combined/perl.yml)


## Sources

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