How to Install Wireshark on CentOS 8

Install Wireshark on CentOS 8

In this article, we will have explained the necessary steps to install and configure Wireshark on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Wireshark is the best tool for network analysis and packet investigation and is an open-source and freely available network analyzing tool. With Wireshark, you can capture network traffic in real-time and use it for network analysis, troubleshooting, education, development e.t.c. One of the features of Wireshark that you will love to learn is the display filter which lets you inspect only that traffic you are really interested in. Wireshark is available for various platforms including Windows, Linux, macOS, FreeBSD, and some others.

Install Wireshark on CentOS 8

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo dnf install epel-release
sudo dnf update

Step 2. Install Wireshark on the CentOS system.

Run the command below to install the Wireshark package:

sudo dnf install wireshark

Step 3. Accessing Wireshark.

Once this finishes, you should be able to run tshark --version or launch the Wireshark GUI and go to help -> about and see the latest version.

Note: If you are getting a ‘Permission Denied’ error when starting Wireshark as a local user, you can start the Wireshark as root or with sudo privileges or add the local user to the Wireshark group using the following command:

sudo usermod -a -G wireshark username

Now try starting Wireshark again. It should work. Once the Wireshark is working, you can then select any port to start the packet capture & then can apply filters for analyzing the data.

That’s all you need to do to install Wireshark on CentOS 8. I hope you find this quick tip helpful. For further reading on Wireshark, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.