Problem scenario
You want to install Snort on a Red Hat Enterprise Linux server. How do you do this?
Solution
1. Log into the server.
2. Create a file /tmp/snortinstaller.sh with the following content:
yum -y install libdnet
yum -y install https://www.snort.org/downloads/snort/daq-2.0.6-1.f21.x86_64.rpm
curl https://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libnghttp2-1.28.0-1.fc28.x86_64.rpm > libnghttp2-1.28.0-1.fc28.x86_64.rpm
rpm -ivh libnghttp2-1.28.0-1.fc28.x86_64.rpm
yum -y install https://www.snort.org/downloads/snort/snort-2.9.11-1.f25.x86_64.rpm
ln -s /usr/lib64/libdnet.so.1.0.1 /usr/lib64/libdnet.1
3. Run this command: sudo bash /tmp/snortinstaller.sh
4. Test it by running this: snort -V
5. If you want to learn more about using Snort rules, see steps 2 through 10 of these directions.