How to Install Redis on Oracle Linux 7 (Legacy Guide)
Legacy Redis installation notes for Oracle Linux 7, now in Extended Support; use a supported Linux release for new deployments.
On this page
Legacy system: Oracle Linux 7 moved from Premier Support to Extended Support on January 1, 2025. Updates and support depend on the applicable Oracle support entitlement. Do not use Oracle Linux 7 for a new Redis deployment. For a supported RPM-based option, see Redis on Rocky Linux 9 or follow the official Redis Linux installation guide.
This page preserves a historical package-based procedure for maintaining an existing Oracle Linux 7 host when your organization still provides an approved repository. Package availability and versions depend on that source; these steps do not imply that the operating system or package is currently supported.
Install Redis from an available package source
If a trusted, approved repository configured for the existing host provides Redis, install it with:
sudo yum install redis
If the package is unavailable, consult the repository administrator. Do not switch to unverified archives or third-party mirrors for a production server.
Start and test the service
sudo systemctl enable --now redis
sudo systemctl status redis
Test the local service with the Redis client:
redis-cli PING
A healthy local server responds with:
PONGSecure the Redis endpoint
Keep Redis accessible only to trusted application hosts. Before allowing remote connections, verify the listening interfaces, authentication or ACL configuration, and firewall rules. Do not expose TCP port 6379 directly to the public internet. See the official Redis security guide.
For information on Oracle Linux 7’s support phase, see Oracle’s support notice.