Installation
Script Installation
The simplest way to install pig is to run the following installation script:
Default Installation (Cloudflare CDN):
China Mirror:
This script downloads the latest pig RPM/DEB package from the Pigsty software repository and installs it using rpm or dpkg.
Script installation targets Linux x86_64 / aarch64 RPM or DEB distributions. On macOS, use the binary from the release tarball.
Specify Version
You can request a particular version that is already published on the selected mirror by passing the version number as an argument:
Default Installation (Cloudflare CDN):
China Mirror:
Mirror publication can lag the GitHub release. For the exact current release, use the GitHub artifacts below.
Download Release Artifacts
Current v1.8.0 installation packages (RPM/DEB/tarball) are available from the GitHub Release, with published hashes in checksums.txt. Use the following direct URL pattern:
https://github.com/pgsty/pig/releases/download/v1.8.0/<filename>
After extracting, place the binary file in your system PATH. The equivalent Pigsty mirror directory becomes available after repository synchronization; check the target URL before using a version-pinned installer command.
Repository Installation
The pig software is located in the pigsty-infra repository. You can add this repository to your operating system and then install using the OS package manager:
YUM
For RHEL, RockyLinux, CentOS, Alma Linux, OracleLinux, and other EL distributions:
APT
For Debian, Ubuntu, and other DEB distributions:
Update
To upgrade an existing pig version to the latest available version, use the following command:
To update the extension data of an existing pig to the latest available version, use the following command:
Uninstall
Build from Source
You can also build pig yourself. pig is developed in Go and is very easy to build. The source code is hosted at github.com/pgsty/pig
All RPM/DEB packages are automatically built through GitHub CI/CD workflow using goreleaser.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)