Skip to content

Latest commit

 

History

History
113 lines (85 loc) · 3.14 KB

install_wireshark.md

File metadata and controls

113 lines (85 loc) · 3.14 KB

Install the newest wireshark to Centos 7

you can download the old version of wireshark by

yum install wireshark 

In order to install the newer version, we will do the following:

  1. 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
  1. Download package of the wireshark from its official website
    Wireshark
  • select source code for Linux Opereting System
  1. Extract the package

  2. 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
  1. 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.
  1. 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
  1. 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
  1. Open wireshark
wireshark 

wireshark

  1. Change permission
    Clicking random packet generatorget the following error message.

permission_denied
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

success
it worked!!

Reference