在AlmaLinux OS 9上安裝Redis 7(AppStream)

首先

使用Application Stream (AppStream) 在 AlmaLinux OS 9 上安装 Redis 7。

支持

如果使用本方法进行导入,则根据《Red Hat Enterprise Linux Application Streams Life Cycle – Red Hat Customer Portal》的信息,预计2026年11月将达到终止生命周期(EOL)。
之后可能不会针对报告的漏洞和问题进行修复。

日志

安装

# cat /etc/redhat-release
AlmaLinux release 9.3 (Shamrock Pampas Cat)

# yum module list redis
Last metadata expiration check: 0:00:26 ago on Thu Nov 23 05:36:27 2023.
AlmaLinux 9 - AppStream
Name                  Stream                Profiles                  Summary
redis                 7                     common [d]                Redis persistent key-value database

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# yum module install -y redis:7
... 略

一种选择是“各种确认”。

# which redis-server
/usr/bin/redis-server

# /usr/bin/redis-server -v
Redis server v=7.0.12 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=fc0dd1598e160a57

# yum info redis
Last metadata expiration check: 0:01:25 ago on Thu Nov 23 05:36:27 2023.
Installed Packages
Name         : redis
Version      : 7.0.12
Release      : 1.module_el9.3.0+38+47d78df1
Architecture : x86_64
Size         : 5.7 M
Source       : redis-7.0.12-1.module_el9.3.0+38+47d78df1.src.rpm
Repository   : @System
From repo    : appstream
Summary      : A persistent key-value database
URL          : https://redis.io
License      : BSD-3-Clause AND BSD-2-Clause AND MIT
Description  : Redis is an advanced key-value store. It is often referred to as a data
             : structure server since keys can contain strings, hashes, lists, sets and
             : sorted sets.
             :
             : You can run atomic operations on these types, like appending to a string;
             : incrementing the value in a hash; pushing to a list; computing set
             : intersection, union and difference; or getting the member with highest
             : ranking in a sorted set.
             :
             : In order to achieve its outstanding performance, Redis works with an
             : in-memory dataset. Depending on your use case, you can persist it either
             : by dumping the dataset to disk every once in a while, or by appending
             : each command to a log.
             :
             : Redis also supports trivial-to-setup master-slave replication, with very
             : fast non-blocking first synchronization, auto-reconnection on net split
             : and so forth.
             :
             : Other features include Transactions, Pub/Sub, Lua scripting, Keys with a
             : limited time-to-live, and configuration settings to make Redis behave like
             : a cache.
             :
             : You can use Redis from most programming languages also.