System packages upgrade

DanielM

Verified User
Joined
Oct 30, 2019
Messages
5
Hello,

what is the best method to install updates to a Debian system running DirectAdmin? It's about Linux update, not DirectAdmin performance, I have these fixes quite a lot "197 upgradable packages"

BR
 
So just like that, we use the update command as it is in Debian and it won't break anything in DirectAdmin?
so use regular apt upgrade
So just like that, we use the update command as it is in Debian and it won't break anything in DirectAdmin?
 
it fine if you don't have any custom thing relate to OS Package. Directadmin will automatics exclude from install/update on package that manual compiler from custombuild.
 
Thank you very much for allaying my concerns. The update was simple and nothing bad happened. Thank you everyone
 
so use regular apt upgrade
I'm rather new to Debian, but isn't apt dist-upgrade better? Because this takes care of dependencies also and can remove old stuff?

Also, odd enough as I read, only a dist-upgrade should also do kernel updates, but I just did "apt upgrade" and still a kernel update happened. Not that I mind, but isn't that odd?
 
I'm rather new to Debian, but isn't apt dist-upgrade better? Because this takes care of dependencies also and can remove old stuff?
dist-upgrade is preferred when you change the /etc/apt/sources.list to upgrade to 12 from 11 for example......
So it'll upgrade everything
 
So it'll upgrade everything
Aren't you confusing dist-upgrade with full-upgrade (I hope that is correct English).

This is what I read at most places on the internet.
The “dist-upgrade” switch asks Ubuntu to handle any dependencies intelligently. That is, if a particular software package is dependent on another software package to run, this command will make sure that the second package is upgraded before upgrading the first one.

sudo apt dist-upgrade
once complete do
sudo apt --purge autoremove and sudo apt autoclean to clean any residual packages and configuration files.
So that seems much safer to run to be sure everything is updated correctly.

As for upgrading major releases for example from 11 to 12 what you are talking about, then the source-list.txt change comes into sight and then then the commands:
apt upgrade --without-new-pkgs
and
apt full-upgrade
are used.

According to manuals I find on the internet. So now I'm getting a bit confused. Yum automatically checks dependencies, I presume Debian should check and upgrade them too if needed. Then the dist-upgrade command seems better, doesn't it?
 
I have not yet decided to upgrade Debian from version 10 to 11, although I see that even version 12 is already supported. Then I will probably use the command: apt dis-upgrade to update the distro.
 
Then I will probably use the command: apt dis-upgrade to update the distro.
I just used that one on Debian 11 and that worked fine. However keep in mind that this could also give you a kernel update when present, and then you need (at some time) to reboot your server to have the kernel update become effective.

I did a fresh install of Debian 11 and something to keep in mind when thinking about 12, is that 12 is using openssl 3.0 and you can't use anything lower than php 8.1 without customisation with openssl 3.0.
Since loads of things do not support 8.1, and several do support 8.0 (or still are at 7.4) we choose to use Debian 11.
 
Back
Top