How to install php-sodium on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Wrapper for the Sodium cryptographic library
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | x86_64 | Version |
|---|---|---|---|
| RHEL 7 | Base | 8.4.24 |
Description
The php-sodium package provides a simple, low-level PHP extension for the libsodium cryptographic library.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
Base
RHEL 7
php-sodium on CentOS 7 / RHEL 7
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm sudo yum -y install php-sodium
Package downloads require an active GetPageSpeed subscription — one repository for php-sodium and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install php-sodium on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the php-sodium package with your system package manager.
Which Enterprise Linux versions is php-sodium available for?
php-sodium is available for RHEL 7.