Amazon Linux 2023 is loosely based on Fedora 34, 35 and 36 as per aws: https://docs.aws.amazon.com/linux/al2023/ug/relationship-to-fedora.html
However redis package is not available in AL2023, instead redis6 is available: https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-al2023-20230322.html
I tried installing it using sudo dnf -y install redis6 and it installed successfully. But I'm not able to find any redis configuration file. A redis6 folder got created and is accessible using sudo cd /etc/redis6 however the folder is empty and doesn't have any configuration file. ls inside /etc/redis6 is not returning anything.
What is the right way to install redis server in AL2023?
[UPDATE]
ls command didn't return any files inside /etc/redis6 folder but a configuration file is actually available. Using sudo nano /etc/redis6/redis6.conf I was able to update the existing redis config file to use systemd and set a password.
So the redis server is working fine now, just need to use redis6 instead of redis everywhere in AL2023, for ex redis6-cli.