In this article, we will have explained the necessary steps to install and configure Wireshark on Ubuntu 18.04 LTS. 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 a free and open-source network analysis tool and packet analyzer. With Wireshark, you can capture network traffic in real-time and use it for network analysis, troubleshooting, education, development e.t.c.
Install Wireshark on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install Wireshark on Ubuntu.
- Method 1.
Wireshark is available on the default Ubuntu 18.04 repositories. Installing Wireshark using following command:
apt-cache policy wireshark
- Method 2.
First, install the required dependencies:
sudo apt install qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev build-essential automake autoconf libgtk2.0-dev libglib2.0-dev flex bison libpcap-dev libgcrypt20-dev cmake
Next, download the Wireshark source code:
wget https://1.eu.dl.wireshark.org/src/wireshark-$3.0.2.tar.xz -P /tmp cd /tmp tar Jxf wireshark-3.0.2.tar.xz
Then, compile Wireshark:
mkdir /tmp/build cd /tmp/build cmake /tmp/wireshark-3.0.2 make make install
After a successful installation, verify the Wireshark version:
$ wireshark -v Wireshark 3.0.2 (Git commit 621ed35BMWc9)
Step 3. Accessing Wireshark.
Launching a Wireshark application can be done from the CLI or applications launcher. To start Wireshark from GUI, search for Wireshark and hit the enter button. The same can be done from the command line by typing:
That’s all you need to do to install Wireshark on Ubuntu 18.04. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.