How To Install vnstat on Fedora 34
Introduction
In this tutorial we learn how to install vnstat
on Fedora 34.
What is vnstat
vnStat is a console-based network traffic monitor that keeps a log of daily network traffic for the selected interface(s). vnStat isn’t a packet sniffer. The traffic information is analyzed from the /proc file-system, so vnStat can be used without root permissions. See the web-page for few ‘screenshots’.
We can use yum
or dnf
to install vnstat
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install vnstat.
Install vnstat on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install vnstat
using dnf
by running the following command:
sudo dnf -y install vnstat
Install vnstat on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install vnstat
using yum
by running the following command:
sudo yum -y install vnstat
How To Uninstall vnstat on Fedora 34
To uninstall only the vnstat
package we can use the following command:
sudo dnf remove vnstat
vnstat Package Contents on Fedora 34
/etc/vnstat.conf
/run/vnstat
/usr/bin/vnstat
/usr/bin/vnstati
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/5806451263918e40c93cdc70b99e407b18aa88
/usr/lib/.build-id/18
/usr/lib/.build-id/18/553ab2d351245683db8682082a50cd475cfc40
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/c20942e4e6ea5eb794946eb7d6510ce978a53b
/usr/lib/systemd/system/vnstat.service
/usr/lib/tmpfiles.d/vnstat.conf
/usr/sbin/vnstatd
/usr/share/doc/vnstat
/usr/share/doc/vnstat/CHANGES
/usr/share/doc/vnstat/FAQ
/usr/share/doc/vnstat/INSTALL
/usr/share/doc/vnstat/README
/usr/share/doc/vnstat/examples
/usr/share/doc/vnstat/examples/vnstat-json.cgi
/usr/share/doc/vnstat/examples/vnstat-json.php
/usr/share/doc/vnstat/examples/vnstat.cgi
/usr/share/licenses/vnstat
/usr/share/licenses/vnstat/COPYING
/usr/share/man/man1/vnstat.1.gz
/usr/share/man/man1/vnstati.1.gz
/usr/share/man/man5/vnstat.conf.5.gz
/usr/share/man/man8/vnstatd.8.gz
/var/lib/vnstat
References
Summary
In this tutorial we learn how to install vnstat
on Fedora 34 using yum and dnf.