Installing packages on CentOS :
1) su , password
2) yum search <name> ( or part of package name )
3) yum install <package>
.. The Package Manager 'Add / Remove Software' can also be used.
So it seems to come down to this, according to 'yum search'
yum install fail2ban
providing fail2ban.noarch, where noarch means :
not architecture dependent = can be used on both an 'i386',
32-bit processor and x86_64, 64 bit processor.
"noarch" packages are usually only containing scripts.
( shell scripts, perl scripts, python .. , etc.)
A "binary" package has suffix .rpm
The files ( source code, etc.) used to build the package are
also packed up, then the suffix is .src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
The "build" directories in /usr/src/ are provided by the package 'rpm-build'