you can download the old version of wireshark by
yum install wireshark
In order to install the newer version, we will do the following:
- Install required for compilers and so on.
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
- Download package of the wireshark from its official website
Wireshark
- select
source code
for Linux Opereting System
-
Extract the package
-
Execute configure file
cd wireshark-2.4.6
./configure
- if you get some warnings, like below, then you might get your hands dirty.
lz4-devel is needed by wireshark-2.4.6-1.x86_64
snappy-devel is needed by wireshark-2.4.6-1.x86_64
libnghttp2-devel is needed by wireshark-2.4.6-1.x86_64
- In my case, I need to install three libraries
sudo yum install libgcrypt libgcrypt-devel gcc-c++
sudo yum install snappy-devel
sudo yum install libnghttp2-devel
- Generate RPM package
make rpm-package
- in my case, some liberaries are not installed, so install them with the following command:
sudo yum install epel-release
sudo yum install lz4
sudo yum install lz4-devel
sudo yum install snappy-devel
- if you get the following message, then you can successfully generate RPM package.
Package successfully built in /home/kaya/Applications/wireshark-2.4.6/packaging/rpm/RPMS.
- Check the package
cd ./packaging/rpm/RPMS/x86_64
ls
wireshark-2.2.11-1.x86_64.rpm wireshark-qt-2.2.11-1.x86_64.rpm
- Install the two of rpm files with using yum
yum install wireshark-2.2.11-1.x86_64.rpm
yum install wireshark-qt-2.2.11-1.x86_64.rpm
- Open wireshark
wireshark
- Change permission
Clickingrandom packet generator
get the following error message.
So, need to change the permission for this directry
- check permission
ls -l /usr/local/bin/dumpcap
-rwxr-x---. 1 root wireshark 342336 Apr 5 00:35 /usr/local/bin/dumpcap
- As it shows, we do not have a permission to read and execute as others.
- we will let others read and execute
sudo chmod 755 /usr/local/bin/dumpcap
ls /usr/local/bin/dumpcap
-rwxr-xr-x. 1 root wireshark 342336 Apr 5 00:35 /usr/local/bin/dumpcap