Wireshark is the most popular freely available and an open-source best network analyzing tool. Using the Wireshark, the user can record or capture the incoming and outgoing network packets in a real-time environment that is further used for network troubleshooting, communication protocol development, packet analysis, and many more tasks.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Server Monitoring queries.
In this context, we shall look into how to install the Wireshark network analyzer tool on the CentOS 8 system.
How to Install Wireshark network analyzer tool on CentOS ?
Before performing this Installation procedure, ensure that the user has root privileges.
The Wireshark tool can be installed using a quite simple method.
To begin, Open the Terminal from the left sidebar of the 'Activities' section and follow the steps below.
1. Update system packages list
The following command will update the system packages list to ensure that you get the latest release of Wireshark software along with all dependencies.
$ sudo dnf install epel-release
$ sudo dnf update
2. Install Wireshark network analyzer
The Wireshark software you can install from the default CentOS package repositories using the dnf package manager. The following command will help you to install the Wireshark tool on your CentOS system:
$ sudo dnf install wireshark wireshark-cli
3. Access Wireshark tool
If you are running your system without GUI, Wireshark offers the command-line interface. However, you can also launch the GUI Wireshark environment according to your requirement. The best practice is to capture the log using CLI and then review it using the graphical interface. Display the installed Wireshark version by typing the below given command:
$ tshark --version
The installed Wireshark network analyzer version will be displayed on the terminal.
Sometimes, the user gets an error of 'Permission denied', when the Wireshark starts as the local user. In this case, start the Wireshark tool as root user or add this local user to the Wireshark group using the following command:
$ sudo usermod -a -G wireshark username
[Need assistance in fixing Software Packages Installation on Linux System ? We can help you. ]