fedora下安装wireshark

来源:互联网 发布:c语言经典编程282例pdf 编辑:程序博客网 时间:2024/05/16 07:43

一、安装 
以root用户运行:yum install wireshark

二、运行
在终端中键入命令:
#wireshark
bash:wireshark:command not found

#whereis wireshark
wireshark: /usr/lib/wireshark /usr/share/wireshark
#cd /usr/lib/wireshark
#ls
plugins
#cd /usr/share/wireshark; ls
AUTHORS-SHORT  dtds          mergecap.html   tshark.html
capinfos.html  dumpcap.html  radius          wimaxasncp
cfilters       editcap.html  rawshark.html   wireshark-filter.html
colorfilters   help          services        wireshark.html
COPYING        idl2wrs.html  smi_modules     ws.css
dfilters       ipmap.html    text2pcap.html
diameter       manuf         tpncp

解决方法:

http://forums.fedoraforum.org/showthread.php?p=1307301

yum search wireshark
yum install wireshark-gnome.i386

(注意,此处需要根据你安装的wireshare包进行修改,比如我安装了 wireshark-1.4.9-1.fc14.i686,

所以需要改成yum install wireshark-gnome.i686 )

#whereis wireshark
wireshark: /usr/bin/wireshark /usr/sbin/wireshark /usr/share/wireshark /usr/share/man/man1/wireshark.1.gz

#wireshark

成功!
本篇文章来源于:开发学院 http://edu.codepub.com   原文链接:http://edu.codepub.com/2011/0219/29489.php

whereis:

whereis命令是定位可执行文件、源代码文件、帮助文件在文件系统中的位置

whereis命令的语法:whereis [-bmsu] [BMS 目录名 -f ] 文件名

whereis命令的各选项含义如下:

-b   定位可执行文件。
-m   定位帮助文件。
-s   定位源代码文件。
-u   搜索默认路径下除可执行文件、源代码文件、帮助文件以外的其它文件。
-B   指定搜索可执行文件的路径。
-M   指定搜索帮助文件的路径。
-S   指定搜索源代码文件的路径。

转自:http://www.cnblogs.com/wwillforever/archive/2011/02/20/1959124.html

0 0
原创粉丝点击