How to install iftop on CentOS

Written by

I’m keeping this short and sweet…

iftop isn’t in the CentOS repo by default which is a shame, luckily there is an rpm on repoforge available; just run this little bash command/script to install the correct version depending on arch or display saying it’s unavailable.

if uname -a | grep -q "64"; then rpm -ivh; elif uname -a | grep -q "86"; then rpm -ivh; else echo Not available for your arch.; fi

This should work on Fedora and Red Hat too.