RedHat 9 安装 ethereal
如何在rh9上ethereal
======================
虽然tcpdump是Linux系统中最为常用的抓包工具,但是由于是基于命令行的,
所以对于分析整个数据包的全部特征就显得非常不方便了。而ethereal是基于图形
界面的,但是它的语法(filter)确实跟tcpdump兼容,所以很容易过渡到ethereal.
I.软件包源
=========
由于在安装的过程中,老是出现依赖问题,根据所欠缺的依赖包名,从
搜索。以下是所有包源的列表:
[root@localhost ethereal]# ls
beecrypt-2.1.0-1.i386.rpm freetype-devel-2.1.3-6.i386.rpm
ethereal-0.10.0a-1.RH9.src.rpm glib-devel-1.2.10-10.i386.rpm
ethereal-base-net-snmp-0.10.0a-1.RH9.i386.rpm gtk+-devel-1.2.10-25.i386.rpm
ethereal-debuginfo-0.10.0a-1.RH9.i386.rpm libpcap-0.7.2-1.i386.rpm
ethereal-gtk+-net-snmp-0.10.0a-1.RH9.i386.rpm net-snmp-5.0.10.2-1.rh9.i386.rpm
fontconfig-devel-2.1-9.i386.rpm XFree86-devel-4.3.0-2.i386.rpm
其中ethereal-0.10.0a-1.RH9.src.rpm是ethereal源包。从
获得.
而
ethereal-base-net-snmp-0.10.0a-1.RH9.i386.rpm
ethereal-gtk+-net-snmp-0.10.0a-1.RH9.i386.rpm
ethereal-debuginfo-0.10.0a-1.RH9.i386.rpm
三个包是由ethereal-0.10.0a-1.RH9.src.rpm生成。
其他的rpm包是依赖。
II.安装过程
=========
本人的安装过程是先从ethereal-0.10.0a-1.RH9.src.rpm开始,但是为了少走弯路。我们
假设知道了依赖问题(即哪些包需要先安装)。
A.依赖关系
---------
A.依赖包安装过程
---------------
A.1 libpcap
此包在本人主机上已无依赖,可以从获得(以下所有rpm包都是从此站点获得)。
可以直接安装:
[root@localhost ethereal]# rpm -ivh libpcap-0.7.2-1.i386.rpm
warning: libpcap-0.7.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:libpcap ########################################### [100%]
A.2 glib-devel
此包在本人主机上并无依赖,也可以直接安装:
[root@localhost ethereal]# rpm -ivh glib-devel-1.2.10-10.i386.rpm
warning: glib-devel-1.2.10-10.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:glib-devel ########################################### [100%]
A.3 gtk+-devel
依赖关系为:
gtk+-devel->XFree86-devel->fontconfig-devel->freetype-devel
按照依赖关系进行安装:
[root@localhost ethereal]# rpm -ivh freetype-devel-2.1.3-6.i386.rpm
warning: freetype-devel-2.1.3-6.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:freetype-devel ########################################### [100%]
[root@localhost ethereal]# rpm -ivh fontconfig-devel-2.1-9.i386.rpm
warning: fontconfig-devel-2.1-9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:fontconfig-devel ########################################### [100%]
[root@localhost ethereal]# rpm -ivh XFree86-devel
error: open of XFree86-devel failed: 没有那个文件或目录
[root@localhost ethereal]# rpm -ivh XFree86-devel-4.3.0-2.i386.rpm
warning: XFree86-devel-4.3.0-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:XFree86-devel ########################################### [100%]
[root@localhost ethereal]# rpm -ivh gtk+-devel-1.2.10-25.i386.rpm
warning: gtk+-devel-1.2.10-25.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:gtk+-devel ########################################### [100%]
B.ethereal包安装过程
由于ethereal-0.10.0a-1.RH9.src.rpm是rpm源码包,所以使用rpmbuild来安装:
B.1 生成.SPECS
[root@localhost ethereal]# rpm -i ethereal-0.10.0a-1.RH9.src.rpm
将在/usr/src/redhat/SPECS目录生成
ethereal-net-snmp-0.10.0a.spec
B.2 生成rpm包
[root@localhost ethereal]# rpmbuild -bb ethereal-net-snmp-0.10.0a.spec
将在/usr/src/redhat/RPMS/i386目录生成以下三个包:
ethereal-base-net-snmp-0.10.0a-1.RH9.i386.rpm
ethereal-gtk+-net-snmp-0.10.0a-1.RH9.i386.rpm
ethereal-debuginfo-0.10.0a-1.RH9.i386.rpm
现在的问题就是要把这三个包安装进去了,姑且称为派生包。
C.派生包安装
C.1 ethereal-debuginfo
此包可以直接安装进去,并无依赖关系
C.2 依赖包
依赖关系为:
*ethereal-gtk+-net-snmp-0.10.0a-1.RH9.i386.rpm ->
*ethereal-base-net-snmp-0.10.0a-1.RH9.i386.rpm ->
*net-snmp-5.0.10.2-1.rh9.i386.rpm->
(真实情况是:net-snmp >= 5.0.0 is needed by ethereal-base-net-snmp-0.10.0a-1.RH9,由于
rpmfind.net并没有针对于RH9的包,但是它提供了一个从soureforge的链接:
)
*beecrypt-2.1.0-1.i386.rpm
(真实情况:beecrypt is needed by net-snmp-5.0.10.2-1.rh9,同上面,beecrypt的链接:
)
总共要安装4个包
安装的过程如下:
[root@localhost ethereal]# rpm -ivh beecrypt-2.1.0-1.i386.rpm
warning: beecrypt-2.1.0-1.i386.rpm: V3 DSA signature: NOKEY, key ID 2323b6d2
Preparing... ########################################### [100%]
1:beecrypt ########################################### [100%]
[root@localhost ethereal]# rpm -ivh net-snmp-5.0.10.2-1.rh9.i386.rpm
Preparing... ########################################### [100%]
1:net-snmp ########################################### [100%]
[root@localhost ethereal]# rpm -ivh ethereal-base-net-snmp-0.10.0a-1.RH9.i386.rpm
Preparing... ########################################### [100%]
1:ethereal-base-net-snmp ########################################### [100%]
[root@localhost ethereal]# rpm -ivh ethereal-gtk+-net-snmp-0.10.0a-1.RH9.i386.rpm
Preparing... ########################################### [100%]
1:ethereal-gtk+-net-snmp ########################################### [100%]
好了,终于全部安装好了!
- 最新评论