how correctly update via ssh? apt or apt-get?

Iacov

Member
Jan 24, 2024
40
0
6
hey

should I always update pve via the GUI or could I update via ssh and then also reboot via ssh?

the correct command is
Code:
apt-get update && apt-get dist-upgrade
right? that's the one that also installs dependencies etc?

can I also use apt? I'm used to
Code:
 apt update && apt upgrade
my Linux vms... it would simply help my muscle. memory if I could use that too. or would I nerd another command to. mimic dist-upgrade?

and is reboot the correct command to shut all vms down and do a full reboot or is there something specific to use?
 
can I also use apt? I'm used to
Code:
 apt update && apt upgrade
my Linux vms... it would simply help my muscle. memory if I could use that too. or would I nerd another command to. mimic dist-upgrade?
Yes, but don't run apt upgrade, always run apt dist-upgrade or apt full-upgrade (like apt-get).
 
Yes, but don't run apt upgrade, always run apt dist-upgrade or apt full-upgrade (like apt-get).
thank you

I don't fully understand the difference between dist-upgrade and full-upgrade? is one better for proxmox than the other?
 
i'll give it a try, thank you
and can i simply reboot via the reboot command in ssh or does this immediately kill my VMs without them being shut down correctly?
 
and can i simply reboot via the reboot command in ssh or does this immediately kill my VMs without them being shut down correctly?
reboot and shutdown -r now and other command line commands (locally or via remote/SSH login) will work the same as pressing the Shutdown button in the web GUI. Proxmox will stop (in reverse order) all running VMs and CTs gracefully (unless they time out and are stopped or killed).