# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper, scoop 安装 perl

查看 perl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

## 代理安全回答

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

- **凭据访问:** Reads environment variables, config files, and script inputs.
- **远程变更:** Can run arbitrary automation that calls APIs or changes files.
- **发布/制品风险:** Can build or publish CPAN-style artifacts through related tooling.
- **推荐控制:** Gate script execution when secrets or network mutation are involved.
- **代理使用指南:** Allow local lint/test scripts; require approval for secret-backed or publishing scripts.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install perl
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add perl
```

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

- Debian apt (92%):

```sh
sudo apt install perl
```

  证据: Debian stable package indexes: perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install perl
```

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

- Nix (92%):

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

  证据: 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
```

  证据: 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
```

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

### Windows

- Scoop (92%):

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

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

## 软件包事实

- **软件包键:** brew:perl
- **软件包管理器:** Homebrew
- **版本:** 5.42.2
- **来源摘要:** Highly capable, feature-rich programming language
- **主页:** <https://www.perl.org/>
- **仓库:** <https://github.com/perl/perl5>
- **最后更新:** 2026-07-17T11:04:23-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.42.2

## 安全说明

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

- **Geiger 风险:** yellow / 中
- 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
## 其他软件包管理器记录

- 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/


## Combined YAML source

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


## 来源

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