--- categories: - docs - operate - stack - oss linkTitle: AlmaLinux/Rocky 8.10 title: Build and run Redis Open Source on AlmaLinux/Rocky Linux 8.10 weight: 5 --- Follow the steps below to build and run Redis Open Source from its source code on a system running AlmaLinux and Rocky Linux 8.10. {{< note >}} Docker images used to produce these build notes: - AlmaLinux: - almalinux:8.10 - almalinux:8.10-minimal - Rocky Linux: - rockylinux/rockylinux:8.10 - rockylinux/rockylinux:8.10-minimal {{< /note >}} ## 1. Prepare the system {{< note >}} For 8.10-minimal, you'll need to install `sudo` and `dnf` as follows: ```bash microdnf install dnf sudo -y ``` For 8.10 (regular), you'll need to install `sudo` as follows: ```bash dnf install sudo -y ``` {{< /note >}} Clean the package metadata, enable required repositories, and install development tools: ```bash sudo dnf clean all # Add GoReleaser repo sudo tee /etc/yum.repos.d/goreleaser.repo > /dev/null <.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz ``` Replace `` with the three-digit Redis release number, for example `8.0.0`. Extract the source: ```bash cd /usr/src tar xvf redis-.tar.gz rm redis-.tar.gz ``` ## 5. Build Redis Enable the GCC toolset and build Redis with support for TLS and modules: ```bash source /etc/profile.d/gcc-toolset-13.sh cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all ``` ## 6. (Optional) Verify the installation Check the installed Redis server and CLI versions: ```bash ./src/redis-server --version ./src/redis-cli --version ``` ## 7. Start Redis To start Redis, use the following command: ```bash ./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` ./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors] module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[] module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors] module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` ## 8. (Optional) Install Redis to its default location ``` cd /usr/src/redis- sudo make install ```