WireShark is a popular tool that is used to analyze packets in a network. The tool is free and open source. Before May 2006, it was known by the name Ethereal which was later switched to Wireshark due to some trademark issues. Wireshark helps in network troubleshooting, traffic analysis, software and communications protocol development, and educational purpose.
It is available for Linux, Windows, BSD, Solaris, macOS, and other Unix like operating systems.
Here at LinuxAPT, we shall look into how to install Wireshark on your Manjaro Linux 21.3.1 (Ruah) machine.
To see how you can install Wireshark in Linux Mint 20, check this out:
https://linuxapt.com/blog/530-install-wireshark-on-linux-mint-20
1. Perform System Update
To begin, you need to update the Manjaro system by running the below command:
$ sudo pacman -Syu
2. Install Wireshark
Now that the system is updated, you can install Wireshark by executing the following command:
$ sudo pacman -S wireshark-qt
3. Verify Installation by running Wireshark
We can verify if the installation has been successful or not by simply running the application. Wireshark can be opened through the terminal by using the Wireshark command:
$ Wireshark
This will open an interface of Wireshark. This will confirm if the installation has been a success or not. If the application fails to run, try installing it all over again.
1. Install Flatpak
To install Wireshark via Flatpak, we will first need to install Flatpak.
To install Flatpak, run the below command:
$ sudo pacman -S flatpak
2. Enable Flathub repository
Now, we will enable the flathub repository to get the packages by issuing the following command:
$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
3. Install Wireshark
To install Wireshark, run the below command:
$ flatpak install flathub org.wireshark.Wireshark
4. Run Wireshark
Now you can run Wireshark using the below Wireshark command:
$ Wireshark
Next, you will see Wireshark's interface.
5. Change permissions (optional step)
When you'll run Wireshark and try to capture packets, you will most likely see an error:
Couldn't run /usr/bin/dumpcap in child process: Permission denied
To resolve this issue, we will give execute permissions to the file named dumpcap placed in /usr/bin directory by issuing the following command:
$ sudo chmod +x /usr/bin/dumpcap
After executing the command, close the application and restart it to update the new execute permissions we gave to the dumpcap file. Now you will be able to capture the packets without running into any errors.
This article covers how to install Wireshark on Manjaro Linux 21. In fact, you can easily analyze the traffic in your network with ease. Wireshark analyzes the data packets and presents the details of each packet. One may consider it as a metric to analyze the efficiency of a network that is influenced by network packets.