How to upgrade EVE Community to the newest version

How to update EVE CE Community Edition to the newest version

Steps how to update your EVE-NG Community to the newest version
Internet and DNS resolve the name is a must for your EVE before upgrade!

RED RULE: DO NOT upgrade your Ubuntu version even it is offered on CLI, EVE-NG OS version is 24.04. Upgrade to the newer Ubuntu will fail all your EVE !

First please check what EVE-NG Community version you have. SSH to your EVE-NG Community and type: dpkg -l eve-ng

This will show which version your EVE-NG Community has. 

dpkg -l 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 6.0.1-8 amd64 A new generation software for networking labs.
root@eve-ng:~#

Update/Upgrade steps

1. Free up your EVE from older packages:

apt autoremove

2. make sure you have free space on EVE HDD, to check issue command. vg-root and /boot should not be in 100% or close to that.

df -h

root@eve-ng:~# df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              1.6G  1.3M  1.6G   1% /run
efivarfs                           256K   48K  204K  19% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv  194G   11G  174G   6% /
tmpfs                              7.9G     0  7.9G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              7.9G     0  7.9G   0% /run/qemu
/dev/sda2                          2.0G  287M  1.6G  16% /boot
/dev/sda1                          1.1G  6.1M  1.1G   1% /boot/efi
tmpfs                              1.6G  4.0K  1.6G   1% /run/user/0
root@eve-ng:~

3. Verify named ping, example, ping www.google.com, if success, follow step 4. If ping is not success, check your DNS IP assigned for EVE.

root@eve-ng:~# ping www.google.com
PING www.google.com (142.250.74.68) 56(84) bytes of data.
64 bytes from arn09s23-in-f4.1e100.net (142.250.74.68): icmp_seq=1 ttl=115 time=37.4 ms
64 bytes from arn09s23-in-f4.1e100.net (142.250.74.68): icmp_seq=2 ttl=115 time=37.7 ms
64 bytes from arn09s23-in-f4.1e100.net (142.250.74.68): icmp_seq=3 ttl=115 time=37.6 ms
^C
--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 37.382/37.542/37.680/0.122 ms
root@eve-ng:~

4. Execute command

apt update

5. Execute command, when it prompt to confirm, answer “Y”

apt upgrade

NOTE: Making upgrade from older EVE Community version, installation optionally can ask to confirm some of installation steps:

Answer for screenshot above, N