• 欢迎加入EmulatedLab主群:593920308,EmulatedLab②群:178989902!
  • 如果您喜欢本站,那么赶紧按Ctrl+D收藏EmulatedLab吧!

14.EVE-NG更新方便,不费劲儿!

EVE-NG Maosen | 森 4年前 (2017-05-07) 8197次浏览 2个评论 扫描二维码
文章目录[隐藏]

请在微信公众号中回复“EVE-NG”获取下载链接!

请在微信公众号中回复“Dynamips”获取Dynamips下载链接,回复“IOL”获取IOL下载链接!

请在微信公众号中回复“QEMU”获取QEMU下载链接!

请在微信公众号中回复“Plus”获取H3CHuawei等非官方支持镜像的下载链接!

请在微信公众号中回复“Tools”获取Tools下载链接!

14.EVE-NG更新方便,不费劲儿!

 

目前我的EVE-NG版本是2.0.3-59

14.EVE-NG更新方便,不费劲儿!

 

 

【在线更新】

由于EVE-NG服务器在国外,你们懂的,速度很慢,不建议用在线更新!

 

官方更新方法如下:

apt-get update    

apt-get upgrade (更新底层ubuntu可用的更新包,这里面不仅包含了eve-ng,也包含其他更新包)

root@eve-ng:~#apt-get update

Get:1 http://security.ubuntu.com/ubuntuxenial-security InRelease [102 kB]

Get:2 http://us.archive.ubuntu.com/ubuntuxenial InRelease [247 kB]

Get:3 http://us.archive.ubuntu.com/ubuntuxenial-updates InRelease [102 kB]

Get:4 http://security.ubuntu.com/ubuntuxenial-security/main amd64 Packages [257 kB]

……

……

……

root@eve-ng:~#apt-get upgrade

Reading package lists… Done

Building dependency tree

Reading state information… Done

Calculating upgrade… Done

The following packages have been kept back:

linux-headers-generic linux-headers-virtual linux-image-virtual linux-virtual

The following packages will be upgraded:

 apt apt-utils distro-info-data dpkg dpkg-dev eve-ngghostscript libapt-inst2.0 libapt-pkg5.0 libdns-export162

  libdpkg-perl libfreetype6 libgs9 libgs9-common libicu55 libisc-export160 libnspr4 libnss3 libnss3-nssdb libsystemd0

  libudev1 libxslt1.1 linux-libc-dev login mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server

  mysql-server-5.7 mysql-server-core-5.7 ntp openvswitch-common openvswitch-pki openvswitch-switch

  openvswitch-testcontroller passwd python3-software-properties software-properties-common systemd systemd-sysv udev

41 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Need to get 68.1 MB of archives.

After this operation, 65.5 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

总共有41个包,如果更新全部,那速度非常慢。

所以我们可以只更新eve-ng,命令:apt-get install eve-ng

14.EVE-NG更新方便,不费劲儿!

也可以先下载下来然后share给其他人。命令:apt-get download eve-ng

如果您想提高速度,更新Ubuntu所有可用包,可以换国内的源。下面介绍一个最简单的方法,将Ubuntu默认的源从us改成cn,更新速度能快一点,当然,这仅仅只能提高非eve-ng的更新速度,对eve-ng相关的更新包无效!

root@eve-ng:~# sed -i “s/us.archive/cn.archive/g” /etc/apt/sources.list     #替换us,改为cn

root@eve-ng:~#

root@eve-ng:~# apt-get update

Get:1 http://cn.archive.ubuntu.com/ubuntuxenial InRelease [247 kB]

Get:2 http://cn.archive.ubuntu.com/ubuntuxenial-updates InRelease [102 kB]

Get:3 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]

Get:4 http://cn.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB]

Get:5 http://security.ubuntu.com/ubuntuxenial-security InRelease [102 kB]

Get:6 http://cn.archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]

Get:7 http://cn.archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8,344 B]

Get:8 http://cn.archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8,684 B]

Get:9 http://cn.archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 B]

Get:10 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]

Hit:11 http://www.eve-ng.net/repo xenial InRelease

Get:12 http://cn.archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7,512 kB]

Get:13 http://cn.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]

Get:14 http://cn.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]

Get:15 http://cn.archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]

Get:16 http://cn.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]

Get:17 http://cn.archive.ubuntu.com/ubuntuxenial-updates/main amd64 Packages [527 kB]

Get:18 http://cn.archive.ubuntu.com/ubuntuxenial-updates/main i386 Packages [513 kB]

Get:19 http://cn.archive.ubuntu.com/ubuntuxenial-updates/main Translation-en [214 kB]

Get:20 http://cn.archive.ubuntu.com/ubuntuxenial-updates/restricted amd64 Packages [7,776 B]

Get:21 http://cn.archive.ubuntu.com/ubuntuxenial-updates/restricted i386 Packages [7,792 B]

Get:22 http://cn.archive.ubuntu.com/ubuntuxenial-updates/restricted Translation-en [2,548 B]

Get:23 http://cn.archive.ubuntu.com/ubuntuxenial-updates/universe amd64 Packages [460 kB]

Get:24 http://cn.archive.ubuntu.com/ubuntuxenial-updates/universe i386 Packages [446 kB]

Get:25 http://cn.archive.ubuntu.com/ubuntuxenial-updates/universe Translation-en [180 kB]

Get:26 http://cn.archive.ubuntu.com/ubuntuxenial-updates/multiverse amd64 Packages [8,916 B]

Get:27 http://cn.archive.ubuntu.com/ubuntuxenial-updates/multiverse i386 Packages [7,712 B]

Get:28 http://cn.archive.ubuntu.com/ubuntuxenial-updates/multiverse Translation-en [4,136 B]

Fetched 25.6 MB in 22s (1,125 kB/s)

Reading package lists… Done

注意:

如果您在国外,那么我非常建议您使用在线更新。如果您在国内,我还是建议您使用离线更新,请看下面的介绍。

 

 

【离线更新】

一、查看与eve-ng相关的包都有哪些

root@eve-ng:~# dpkg -l | grep eve-ng

ii  eve-ng                               2.0.3-59                                   amd64        A new generation software for networking labs.

ii  eve-ng-dynamips                      2.0.2-2                                    amd64        Dynamips files for Eve-NG.

ii  eve-ng-guacamole                     2.0.1-60                                   amd64        Guacamole for UNetLab/EVE-NG

ii  eve-ng-qemu                          2.0.2-16                                   amd64        QEMU files for Eve-NG.

ii  eve-ng-schema                        2.0.1-60                                   amd64        Database schema for UNetLab/EVE-NG

ii  eve-ng-vpcs                          1.0-eve-ng                                 amd64        vpcs Eve-NG compatible

ii  linux-headers-4.4.14-eve-ng-ukms+    4.4.14-eve-ng-ukms-brctl                   amd64        Header files related to Linux kernel, specifically,

ii  linux-image-4.4.14-eve-ng-ukms+      4.4.14-eve-ng-ukms-brctl                   amd64        Linux kernel binary image for version 4.4.14-eve-ng-ukms+

root@eve-ng:~#

 

目前,最新版deb包列表如下:

14.EVE-NG更新方便,不费劲儿!

 

对比一下只有eve-ng有最新版,eve-ng_2.0.3-60

 

二、将离线包上传到EVE

14.EVE-NG更新方便,不费劲儿!

三、SSH登录,查看当前版本

root@eve-ng:~# dpkg -l eve-ng

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name           Version      Architecture Description

+++-==============-============-============-=================================

ii  eve-ng        2.0.3-59     amd64        A new generation software for net

root@eve-ng:~#

四、更新

root@eve-ng:~# ls

eve-ng_2.0.3-60_amd64.deb

root@eve-ng:~# dpkg -i eve-ng_2.0.3-60_amd64.deb

(Reading database … 92388 files and directories currently installed.)

Preparing to unpack eve-ng_2.0.3-60_amd64.deb …

Checking MySQL… done

Unpacking eve-ng (2.0.3-60) over (2.0.3-59) …

Setting up eve-ng (2.0.3-60) …

Processing triggers for ureadahead (0.100.0-19) …

root@eve-ng:~#

14.EVE-NG更新方便,不费劲儿!

五、验证

root@eve-ng:~# dpkg -l eve-ng

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name           Version      Architecture Description

+++-==============-============-============-=================================

ii  eve-ng        2.0.3-60     amd64        A new generation software for net

root@eve-ng:~#

14.EVE-NG更新方便,不费劲儿!

 

 

当然,想更新dynamipsvpcs等其他包,也可以用同样方法!这里不详细介绍了……

……其他更新包已经全部上传到QQ群中……

 


如未注明,均为原创,版权归EmulatedLab所有!转载请注明出处,否则追究法律责任!
喜欢 (8)
[sms1107]
分享 (0)
Maosen | 森
关于作者:
真正的强者从不畏惧别人比你更强!

您必须 登录 才能发表评论!

(2)个小伙伴在吐槽
  1. https://tostpost.cn/ - https://tostpost.cn/fashion/ ??
    Robertdobby2018-06-01 02:40