diff --git a/docs/usage.md b/docs/usage.md index 4bce9b2e..31deb37c 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -31,6 +31,37 @@ curl -fL --output /tmp/pie.phar https://github.com/php/pie/releases/latest/downl && sudo chmod +x /usr/local/bin/pie ``` +### Distribution packages + +> [!WARNING] +> Distribution packages are not maintained by PIE, so may not have the latest version, may have patches applied, or +> the instructions here may be out of date. You should verify the distribution packages before using them. + +#### Fedora and Enterprise Linux 10 + +On Enterprise Linux (CentOS, RHEL, AlmaLinux, RockyLinux, and other clones) you +need to enable the [EPEL](https://docs.fedoraproject.org/en-US/epel/) repository. + +```shell +sudo dnf install pie + +# If you have `gh`, you can verify PIE is authentic: +gh attestation verify --owner=php $(which pie) +``` + +Package information: [pie](https://src.fedoraproject.org/rpms/pie) + +#### Homebrew + +PIE can be installed with Homebrew with: + +```shell +brew install pie + +# If you have `gh`, you can verify PIE is authentic: +gh attestation verify --owner=php $(which pie) +``` + ### Docker installation PIE is published as binary-only Docker image, so you can use it easily during your Docker build: