Fedora Linux install vnstat network traffic monitor

Originally published at: https://www.cyberciti.biz/faq/fedora-linux-install-vnstat-network-traffic-monitor/

How do I install vnstat network traffic monitor on Fedora Linux system to monitor my hourly, daily, weekly, and monthly bandwidth usage?