EspaceNetworks / IncrediblePBXCentOS7

PIAF
GNU Affero General Public License v3.0
3 stars 4 forks source link

epel-release and fail2ban both fail to install on CentOS 7 32 bit #1

Open chris001 opened 8 years ago

chris001 commented 8 years ago

epel-release is missing from the centos extras repo, this it fails to install. fail2ban requires epel-release in order to install so it fails to install also.

chris001 commented 8 years ago

Modify the main script, IncrediblePBX13-12R.sh , as follows, to fix this issue.

IF cpu architecture IS 'i386' or 'i686' (detect the 32 bit OS)...

$ wget https://dl.fedoraproject.com/pub/epel/epel-release-latest-7.noarch.rpm

This is because package epel-release is not available from the CentOS 7 32bit Extras repos due to CentOS 7 32 bit lagging behind (?!) CentOS 64 bit.

$ sudo rpm -Uvh epel-release-latest-7.noarch.rpm

$ nano /etc/yum.repos.d/epel.repo

Find and replace all occurrences of "$basearch" with "x86_64".

This is because epel is built architecture-independent so intel 64 bit packages will work on intel i386 32 bit architecture OS. The i386 subdirectory does not yet exist on EPEL but it will be just an redirect to the 64 bit.

$ yum install -y fail2ban

END IF..

Yum will pull fail2abn from the epel-release 64 bit folder, yet it is the same code as 32 bit, and works the same on 32 bit machines.

Epel-release package install bug, and Fail2ban package install bug, solved.