Linux中tcpreplay安装

like male

直接yum -y install tcpreplay

①报No package tcpreplay available.

先:yum -y install epel-release
后:yum -y install tcpreplay

②又报Cannot retrieve metalink for repository: epel. Please verify its path and try again

把/etc/yum.repos.d/epel.repo,文件第3行注释去掉,把第四行注释掉即可,如下

将

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
修改为

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

③清理源 yum clean all,然后重新执行yum -y install tcpreplay即可
阅读 212
1 声望
0 粉丝
0 条评论
1 声望
0 粉丝
宣传栏