Jeff Li

Be another Jeff

Build Latest Wireshark in CentOS 7

As we know, Wireshark has switched from GTK+ to Qt since Version 2. As a Mac and Kubuntu user, the GTK UI was really not harmony with my desktop environments. So after the version 2 was released last year, I upgraded Wireshark in both my Mac and Kubuntu boxes.

For some reason, I have to work on some CentOS 7 boxes in which the latest Wireshark in the yum repo is 1.10. Besides, it is difficult to find any existing Wireshark 2 rpm package in the web. After spending some time on the Wireshark document, I came to know that it is really easy to build Wireshark rpm package only if the dependencies are met.

1
2
3
4
5
sudo yum install gcc gcc-c++ bison flex libpcap-devel qt-devel gtk3-devel rpm-build libtool c-ares-devel qt5-qtbase-devel qt5-qtmultimedia-devel qt5-linguist desktop-file-utils
wget https://1.eu.dl.wireshark.org/src/wireshark-2.0.5.tar.bz2
tar xf wireshark-2.0.5.tar.bz2
./configure
make rpm-package

The RPM files could be found in the package/rpm/RPMs/x86_64 directory.

Hope this note could save you some time.

Updates 1 Wireshark 2.2.X has an extra dependency. If configure script complains about

1
configure: error: I couldn't find lrelease-qt5 or lrelease; make sure it's installed and in your path

, it means qt5-linguist which has been mentioned in the comments by Michel, is missing. Above guide has been updated.

Comments