Installing Suricata on Amazon Linux 2023

Please find the information Below:

  • Suricata version - Suricata 6
  • Operating system and/or Linux distribution - Amazon Linux 2023
  • How you installed Suricata - Looking for official packages for the above image
[root@ip-172-31-20-89 scripts]# dnf install suricata
Amazon Linux 2023 repository                                                                       44 MB/s |  22 MB     00:00    
Amazon Linux 2023 Kernel Livepatch repository                                                     870 kB/s | 165 kB     00:00    
No match for argument: suricata
Error: Unable to find a match: suricata
[root@ip-172-31-20-89 scripts]# 

Tried the official Do : 3. Installation — Suricata 6.0.2 documentation

[root@ip-172-31-20-89 scripts]# dnf copr enable @oisf/suricata-6.0
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.



Do you really want to enable copr.fedorainfracloud.org/@oisf/suricata-6.0? [y/N]: y
Error: It wasn't possible to enable this project.
Repository 'epel-2023-x86_64' does not exist in project '@oisf/suricata-6.0'.
Available repositories: 'epel-8-aarch64', 'epel-8-x86_64', 'fedora-38-s390x', 'epel-9-aarch64', 'fedora-37-s390x', 'epel-9-x86_64', 'fedora-38-aarch64', 'fedora-37-aarch64', 'fedora-39-x86_64', 'fedora-37-x86_64', 'fedora-39-aarch64', 'epel-7-x86_64', 'fedora-38-x86_64'

If you want to enable a non-default repository, use the following command:
  'dnf copr enable @oisf/suricata-6.0 <repository>'
But note that the installed repo file will likely need a manual modification.
[root@ip-172-31-20-89 scripts]# 

Tried passing few epel repo

[root@ip-172-31-20-89 scripts]# dnf copr enable @oisf/suricata-6.0 epel-7-x86_64
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/@oisf/suricata-6.0? [y/N]: y
Repository successfully enabled.
(reverse-i-search)`ins': dnf install dnf-plug^Cs-core
[root@ip-172-31-20-89 scripts]# ^C
[root@ip-172-31-20-89 scripts]# dnf install suricata
Copr repo for suricata-6.0 owned by @oisf                                                          55 kB/s |  11 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides python2-pyyaml needed by suricata-1:6.0.15-1.el7.x86_64
  - nothing provides /usr/bin/python2.7 needed by suricata-1:6.0.15-1.el7.x86_64
  - nothing provides libevent-2.0.so.5()(64bit) needed by suricata-1:6.0.15-1.el7.x86_64
  - nothing provides libevent_pthreads-2.0.so.5()(64bit) needed by suricata-1:6.0.15-1.el7.x86_64
  - nothing provides libhiredis.so.0.12()(64bit) needed by suricata-1:6.0.15-1.el7.x86_64
  - nothing provides liblua-5.1.so()(64bit) needed by suricata-1:6.0.15-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
[root@ip-172-31-20-89 scripts]# 

More about system

[root@ip-172-31-20-89 scripts]# cat /etc/os-release 
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-15"
[root@ip-172-31-20-89 scripts]# 

Tried dnf copr enable @oisf/suricata-6.0 epel-9-x86_6 as well but the chain of dependency error

[root@ip-172-31-18-236 hiredis]# dnf copr enable @oisf/suricata-6.0 epel-9-x86_6
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/@oisf/suricata-6.0? [y/N]: y
Repository successfully enabled.
[root@ip-172-31-18-236 hiredis]# dnf install suricata
Copr repo for suricata-6.0 owned by @oisf                                                          13 kB/s | 1.8 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides libhiredis.so.1.0.0()(64bit) needed by suricata-1:6.0.15-1.el9.x86_64
  - nothing provides libhs.so.5()(64bit) needed by suricata-1:6.0.15-1.el9.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
[root@ip-172-31-18-236 hiredis]# 

We don’t have a target for Amazon Linux. I believe these days it’s based on Fedora, but even then we might not have a compatible build.

From Relationship to Fedora - Amazon Linux 2023, Amazon Linux is based on a Fedora and CentOS 9 stream, but there doesn’t appear to be an effort to be compatible with any of them.