How To Install Wireshark In Linux (Ubuntu, Debian, Mint, CentOS)?

Wireshark is a network sniffing, packet capture, and analysis tool. It is a very popular free and open-source tool that is initially released in 1998. Originally it was named “Etheral” but in 2006 named “Wireshark”. Even Wireshark is a cross-platform tool that is supported by Linux, Windows, MacOSX, Android, BSD it was initially created for the Linux platform.

Install Wireshark For Ubuntu, Debian and Mint

The apt-based distributions provide the Wireshark with the package named wireshark, wireshark-qt, wireshark-gtk etc. The wireshark package is the core package which provides the libraries of the wireshark and wireshark-gtk and wireshark-qt are GUI part of the wireshark. The wireshark-gtk is absolute and the wireshark-qt should be installed with the following command.

First we will show the Wireshark package information with the apt show command to learn which version of the wireshark is provided.

$ sudo apt show wireshark
Wireshark Package Information

We will install the Wireshark by just providing the wireshark and wireshark-qt package names to the “sudo apt install” command. But installing the wireshark-qt will also automatically install the wireshark package as a dependency without a problem.

$ sudo apt install wireshark wireshark-qt

During the install, we will be asked with the following screen if non-superusers be able to capture packets. This simply means do you want to enable normal users to capture network packets. I urge you to accept this by clicking on the <Yes> like below.

Enable Normal Users Capture Network Packages

Install Wireshark For CentOS, Fedora and RHEL

Wireshark also provided for the yum and dnf based distirbutions like CentOS, Fedora, RHEL. The yum install or dnf install commands can be used to install the Wireshark. The package information about the wireshark can be displayed with the dnf info or yum info command like below.

$ dnf info wireshark
CentOS, Fedora, RHEL Wireshark Package

We can install the wireshark with the following yum install or dnf install command. The package name is wireshark. The root privileges can be provided with the sudo command like below.

$ sudo dnf install wireshark

Or the yum install command can be used like below.

$ sudo yum install wireshark

Open Wireshark

Wireshark can be opened in different ways from the Start Menu or command line interface. Just type the “wireshark” to the start menu. In the following example the KDE desktop environment provides the Wireshark from the start menu like below.

Open Wireshark In KDE

Alternatively the command line interface can be used to start Wireshark. The wireshark command can be used to start Wireshark from the command line interface or bash like below.

$ wireshark
Wireshark Main Menu
See also  How To Check Linux Memory Usage?

Leave a Comment