How to install or compile GIMP filters/plugins/extensions on Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-install-or-compile-gimp-filterspluginsextensions-on-linux/

How do I install or compile new GIMP filters on a Ubuntu or Debian or Fedora or RHEL (Red Hat Enterprise Linux)/CentOS Linux desktop system?