{"id":2091,"date":"2012-02-28T23:48:56","date_gmt":"2012-02-28T15:48:56","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2091"},"modified":"2023-05-12T16:19:34","modified_gmt":"2023-05-12T16:19:34","slug":"how-to-install-wireshark-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-wireshark-on-centos-6-2\/","title":{"rendered":"How to Install Wireshark on CentOS 6.2"},"content":{"rendered":"<p>Wireshark is a powerful and widely used network protocol analyzer that allows you to capture and analyze network traffic. It is an essential tool for network administrators and security professionals.<\/p>\n<p>In this guide, we will walk you through the steps to install Wireshark on CentOS 6.2.<\/p>\n<h2>Step 1: Enable EPEL Repository:<\/h2>\n<p>Wireshark is not available in the default CentOS 6.2 repositories. To install it, we need to enable the Extra Packages for Enterprise Linux (EPEL) repository. Open your terminal or SSH into your server and execute the following command:<\/p>\n<pre>\r\nsudo yum install epel-release\r\n<\/pre>\n<p>This command installs the EPEL repository, which provides additional packages not found in the default CentOS repositories.<\/p>\n<h2>Step 2: Install Wireshark:<\/h2>\n<p>Once the EPEL repository is enabled, you can proceed to install Wireshark. Run the following command:<\/p>\n<pre>\r\nsudo yum install wireshark\r\n<\/pre>\n<p>This command will download and install Wireshark and its dependencies from the EPEL repository.<\/p>\n<pre>\r\n[root@centos62 ~]# yum install wireshark\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: centos.maulvi.net\r\n * extras: centos.maulvi.net\r\n * updates: centos.maulvi.net\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package wireshark.i686 0:1.2.15-2.el6 will be installed\r\n--> Processing Dependency: libpcap.so.1 for package: wireshark-1.2.15-2.el6.i686\r\n--> Processing Dependency: libsmi.so.2 for package: wireshark-1.2.15-2.el6.i686\r\n--> Processing Dependency: libgnutls.so.26 for package: wireshark-1.2.15-2.el6.i686\r\n--> Processing Dependency: libgnutls.so.26(GNUTLS_1_4) for package: wireshark-1.2.15-2.el6.i686\r\n--> Running transaction check\r\n---> Package gnutls.i686 0:2.8.5-4.el6 will be installed\r\n--> Processing Dependency: libtasn1.so.3(LIBTASN1_0_3) for package: gnutls-2.8.5-4.el6.i686\r\n--> Processing Dependency: libtasn1.so.3 for package: gnutls-2.8.5-4.el6.i686\r\n---> Package libpcap.i686 14:1.0.0-6.20091201git117cb5.el6 will be installed\r\n---> Package libsmi.i686 0:0.4.8-4.el6 will be installed\r\n--> Running transaction check\r\n---> Package libtasn1.i686 0:2.3-3.el6 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n====================================================================================================\r\n Package         Arch       Version                                Repository                  Size\r\n====================================================================================================\r\nInstalling:\r\n wireshark       i686       1.2.15-2.el6                           CentOS6.2-Repository       9.9 M\r\nInstalling for dependencies:\r\n gnutls          i686       2.8.5-4.el6                            CentOS6.2-Repository       336 k\r\n libpcap         i686       14:1.0.0-6.20091201git117cb5.el6       CentOS6.2-Repository       125 k\r\n libsmi          i686       0.4.8-4.el6                            CentOS6.2-Repository       2.4 M\r\n libtasn1        i686       2.3-3.el6                              CentOS6.2-Repository       239 k\r\n\r\nTransaction Summary\r\n====================================================================================================\r\nInstall       5 Package(s)\r\n\r\nTotal download size: 13 M\r\nInstalled size: 64 M\r\nIs this ok [y\/N]: y\r\nDownloading Packages:\r\n----------------------------------------------------------------------------------------------------\r\nTotal                                                                30 MB\/s |  13 MB     00:00\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing : libtasn1-2.3-3.el6.i686                                                          1\/5\r\n  Installing : gnutls-2.8.5-4.el6.i686                                                          2\/5\r\n  Installing : libsmi-0.4.8-4.el6.i686                                                          3\/5\r\n  Installing : 14:libpcap-1.0.0-6.20091201git117cb5.el6.i686                                    4\/5\r\n  Installing : wireshark-1.2.15-2.el6.i686                                                      5\/5\r\n\r\nInstalled:\r\n  wireshark.i686 0:1.2.15-2.el6\r\n\r\nDependency Installed:\r\n  gnutls.i686 0:2.8.5-4.el6 libpcap.i686 14:1.0.0-6.20091201git117cb5.el6 libsmi.i686 0:0.4.8-4.el6\r\n  libtasn1.i686 0:2.3-3.el6\r\n\r\nComplete!\r\n<\/pre>\n<h2>Step 3: Configure Wireshark (Optional):<\/h2>\n<p>By default, Wireshark can only be run by the root user. If you want to allow non-root users to use Wireshark, you need to grant them permission. Execute the following command:<\/p>\n<pre>\r\nsudo groupadd wireshark\r\nsudo usermod -a -G wireshark your_username\r\nsudo chgrp wireshark \/usr\/sbin\/dumpcap\r\nsudo chmod 750 \/usr\/sbin\/dumpcap\r\nsudo setcap cap_net_raw,cap_net_admin=eip \/usr\/sbin\/dumpcap\r\n<\/pre>\n<p>Replace &#8216;your_username&#8217; with the actual username of the non-root user. These commands create a group called &#8216;wireshark&#8217;, add the user to the group, and set the necessary permissions and capabilities.<\/p>\n<h2>Step 4: Start Wireshark:<\/h2>\n<p>After installation and configuration, you can start Wireshark by running the following command:<\/p>\n<pre>\r\nwireshark\r\n<\/pre>\n<p>This command launches the Wireshark graphical user interface (GUI), where you can start capturing and analyzing network traffic.<\/p>\n<h2>Conclusion:<\/h2>\n<p>In this guide, we have learned how to install Wireshark on CentOS 6.2. By following these steps, you can have Wireshark up and running on your system, allowing you to analyze network traffic and troubleshoot network issues. Remember to use Wireshark responsibly and in accordance with applicable laws and regulations.<\/p>\n<p>If you have any questions or suggestions for improvement, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wireshark is a powerful and widely used network protocol analyzer that allows you to capture and analyze network traffic. It is an essential tool for network administrators and security professionals&#8230;.<\/p>\n","protected":false},"author":6,"featured_media":2092,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1253,1536,2109,1630,1744,1932],"class_list":["post-2091","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-centos-6-2","tag-linux","tag-monitoring","tag-packet-capture","tag-security","tag-wireshark"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2091"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2091\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2092"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}