• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Redis 6.0 on Rocky Linux 8.6

  • 00:35 cat /etc/os-release
  • 00:50 dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
  • 01:21 dnf module install redis:remi-6.0 -y
  • 02:34 systemctl enable redis.service
  • 02:47 systemctl start redis.service
  • 03:07 redis-cli
  • 03:17 ping [hello]
  • 03:50 set key hello
  • 04:10 get key
{{postValue.id}}

To install Redis 6 on Rocky Linux 8.6

Introduction:

Redis is an open-source data structure store that is stored in memory. In-memory databases (IMDBs) store computer data in the main memory of a computer instead of on a disk drive to increase response times.

Installation Steps:

Step 1:Check the installed version of OS

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Step 2 : Enable the remi repo:

[root@linuxhelp ~]# dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
Rocky Linux 8 - AppStream                                          5.8 kB/s | 4.8 kB     00:00    
Rocky Linux 8 - AppStream                                          8.6 MB/s |  11 MB     00:01    
Rocky Linux 8 - BaseOS                                             6.0 kB/s | 4.3 kB     00:00    
Rocky Linux 8 - BaseOS                                             7.1 MB/s | 7.9 MB     00:01    
Rocky Linux 8 - Extras                                             4.5 kB/s | 3.5 kB     00:00    
Rocky Linux 8 - Extras                                              15 kB/s |  12 kB     00:00    
remi-release-8.rpm                                                  40 kB/s |  29 kB     00:00    
Dependencies resolved.
===================================================================================================
 Package                 Architecture      Version                   Repository               Size
===================================================================================================
Installing:
 remi-release            noarch            8.6-1.el8.remi            @commandline             29 k
Installing dependencies:
 epel-release            noarch            8-17.el8                  extras                   24 k

Transaction Summary
===================================================================================================
Install  2 Packages

Total size: 53 k
Total download size: 24 k
Installed size: 58 k
Downloading Packages:
epel-release-8-17.el8.noarch.rpm                                   155 kB/s |  24 kB     00:00    
---------------------------------------------------------------------------------------------------
Total                                                               32 kB/s |  24 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                           1/1 
  Installing       : epel-release-8-17.el8.noarch                                              1/2 
  Running scriptlet: epel-release-8-17.el8.noarch                                              1/2 
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Installing       : remi-release-8.6-1.el8.remi.noarch                                        2/2 
  Running scriptlet: remi-release-8.6-1.el8.remi.noarch                                        2/2 
  Verifying        : epel-release-8-17.el8.noarch                                              1/2 
  Verifying        : remi-release-8.6-1.el8.remi.noarch                                        2/2 

Installed:
  epel-release-8-17.el8.noarch                  remi-release-8.6-1.el8.remi.noarch                 

Complete!

Step 3: Install the redis package

[root@linuxhelp ~]# dnf module install redis:remi-6.0 -y 
Extra Packages for Enterprise Linux 8 - x86_64                     3.8 MB/s |  13 MB     00:03    
Extra Packages for Enterprise Linux Modular 8 - x86_64             536 kB/s | 733 kB     00:01    
Remi's Modular repository for Enterprise Linux 8 - x86_64          689  B/s | 833  B     00:01    
Remi's Modular repository for Enterprise Linux 8 - x86_64          3.0 MB/s | 3.1 kB     00:00    
Importing GPG key 0x5F11735A:
 Userid     : "Remi's RPM repository <remi@remirepo.net>"
 Fingerprint: 6B38 FEA7 231F 87F5 2B9C A9D8 5550 9759 5F11 735A
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
Remi's Modular repository for Enterprise Linux 8 - x86_64          477 kB/s | 1.1 MB     00:02    
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64         679  B/s | 833  B     00:01    
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64         3.0 MB/s | 3.1 kB     00:00    
Importing GPG key 0x5F11735A:
 Userid     : "Remi's RPM repository <remi@remirepo.net>"
 Fingerprint: 6B38 FEA7 231F 87F5 2B9C A9D8 5550 9759 5F11 735A
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64         672 kB/s | 2.3 MB     00:03    
Dependencies resolved.
===================================================================================================
 Package           Architecture       Version                       Repository                Size
===================================================================================================
Installing group/module packages:
 redis             x86_64             6.0.16-1.el8.remi             remi-modular             1.1 M
Installing module profiles:
 redis/common                                                                                     
Enabling module streams:
 redis                                remi-6.0                                                    

Transaction Summary
===================================================================================================
Install  1 Package

Total download size: 1.1 M
Installed size: 4.1 M
Downloading Packages:
redis-6.0.16-1.el8.remi.x86_64.rpm                                 536 kB/s | 1.1 MB     00:02    
---------------------------------------------------------------------------------------------------
Total                                                              422 kB/s | 1.1 MB     00:02     
Remi's Modular repository for Enterprise Linux 8 - x86_64          3.0 MB/s | 3.1 kB     00:00    
Importing GPG key 0x5F11735A:
 Userid     : "Remi's RPM repository <remi@remirepo.net>"
 Fingerprint: 6B38 FEA7 231F 87F5 2B9C A9D8 5550 9759 5F11 735A
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                           1/1 
  Running scriptlet: redis-6.0.16-1.el8.remi.x86_64                                            1/1 
  Installing       : redis-6.0.16-1.el8.remi.x86_64                                            1/1 
  Running scriptlet: redis-6.0.16-1.el8.remi.x86_64                                            1/1 
  Verifying        : redis-6.0.16-1.el8.remi.x86_64                                            1/1 

Installed:
  redis-6.0.16-1.el8.remi.x86_64                                                                   

Complete!

step4: Enable the Redis service to start at boot time.

[root@linuxhelp ~]# systemctl enable redis.service 
Created symlink /etc/systemd/system/multi-user.target.wants/redis.service → /usr/lib/systemd/system/redis.service.

Step 5: Start Redis service

[root@linuxhelp ~]# systemctl start redis.service 

Step 6: Login to Redis CLI shell

[root@linuxhelp ~]# redis-cli 

Step 7: Using Ping command in Redis Shell

127.0.0.1:6379> ping [hello]
"[hello]"

Step 8: Setting the string “hello” to the value “keys”

127.0.0.1:6379> set key hello
OK

Step 9: Getting the string in the value “keys”

127.0.0.1:6379> get key
"hello"

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install Redis 6.0 on Rocky Linux 8.6. Your feedback is much welcome

Tags:
michael
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is the use of Redis-CLI?

A

Redis-cli is used to send commands to Redis, and read the replies sent by the server, directly from the terminal.

Q

What is the default port of Redis?

A

The default port of Redis is 6379.

Q

Can Redis be used as a database?

A

Yes, Redis can be used as a database,

Q

What type of database is Redis?

A

Redis is a NoSQL type of database.

Q

How Redis reponse fast ?

A

Instead of using disk drives, it uses the computer's main memory by its response is fast.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ryan ?
how to use visual traceroute tool

Am using traceroute command to check for the route. i got this tool while surfing. So pls help me out installation and usage of Visual traceroute tool.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.