How to install Wireshark in Linux

Dear Folks,
I have seen in some places that some Fedora Core users are facing lots of installation issues while installing Wireshark Tool. I will tell you an easy method on how you can install Wireshark without messing up with anything.

Why is this guide for?
If suppose you have installed Wireshark through yum command line (and it showed installation successful), but still you are coming across with Gtk+ or some header file linking errors while opening Wireshark and its not opening the application then this guide is for you! Read the full post first and then go ahead! This guide can be followed for new installation of Wireshark as well but in that case you don’t have to follow Common procedure ‘a’ initially.

Common procedure for Method 1 and 2:

  • a. Uninstall Wireshark first.
    $ sudo yum uninstall wireshark
    Accept the message by pressing 'Y' at the command line parameter and your wireshark will be uninstalled successfully.
  • b. Install libpcap and libpcap-devel package through yum or download them from any third party rpm/source package providers i.e. Pbone // RPMFind or you may make use of yum installer as well which is mentioned below:
    $ sudo yum install libpcap
    $ sudo yum install libpcap-devel
  • c. In Core10 GUI Mode, Press <Alt+F1> shortcut key, and under “Accessories” Choose “Add/Remove Software”, search for Wireshark, choose
    “wireshark-gnome” (2nd search result) display tool, click on Apply, Give your password and wait till it installs the wireshark-gnome
    display packages completely.

    Alternative of Step ‘c’:

  • Download wireshark-gnome-1.2.x.rpm from (Pbone) and install it through rpm command line.
    $ sudo rpm -ivh wireshark-gnome-1.2.x.rpm
  • Method-1 (With user privileges):

  • Do an updatedb “$ sudo updatedb” and wait till it gets finished.
  • Download Wireshark source file from http://www.wireshark.com downloads page. Let’s say for our purpose we will download
    wireshark-1.3.2.tar.gz. Then keep it in your Desktop folder and follow the as usual build procedure like below:
  • $ cd /home/[UserName]/Desktop/
    $ tar -zxvf wireshark-1.3.2.tar.gz
    $ cd wireshark-1.3.2
    $ ./configure
    $ make
    $ make install
    $ sudo updatedb [It will take some couple of minutes to update completely]
    $ sudo ldconfig
    $ sudo reboot
    Select your ethernet adapter and start capturing 

    NOTE: You may come across with some errors while building the package (while you use ‘make’ command with normal user privileges). Then in that case repeat all the above process from ’03′ to ’10′, but with “root” user privileges. Below is the process on how to do it:

    Method-2 (With root privileges):
    If the above method doesn’t work then with the root privileges you can follow the below procedure.

    $ cd wireshark-1.3.2
    $ su
    # ./configure
    # make
    # make install
    # updatedb
    # ldconfig
    # reboot
    # wireshark &amp;amp;amp;amp;
    Select your Ethernet adapter and start capturing

    Please drop your suggestions/feedback on this post so that I can come up with some more valuable posts. :-)

    Hope, it helps.
    Enjoy!
    XyluX

    Dec 12th, 2009 | Posted in Linux
    No comments yet.

    Leave a comment

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Current ye@r *