Update via bash

inomi13

Verified User
Joined
Jan 7, 2022
Messages
164
I always update directadmin and to latest version and all services via custombuild. I know that directadmin doesn't update all, for example kernel, perl etc. I have to update via command line and use command dnf update.

I need information which step should be first? Before update directadmin to latest version should I use dnf update?

When I will use dnf update for example php and rest services will update to latest version and custombuild will not show update via directadmin dashboard. It not will be an issue?
 
Last edited:
It not will be an issue?
No it won't be an issue as in RH alike systems the packages maintained by DA are excluded in yum.conf so dns update won't bother with them.

I would indeed always first use dnf update before doing the da update if a lot of work is to be done.
But you don't always need to use dnf update. If all is well, the system will send you a message that system updates are ready. And then you can use dnf update.
 
When directadmin show me available update in dashboard, I always use dnf update before update directadmin.
It is the good practice?

command „dnf update” make update for example services php, httpd etc. so custombuild will not do this, it is correct?
 
Last edited:
Personally I keep the OS updated on a regular basis. Manually mainatined systems at least check/update weekly OS updates (servers running sites that customers can be cranky if something breaks, i have a defined maintance schedule for them), regular systems get OS patched daily via automatic methods (if something breaks monitoring system alerts and gets fixed quickly, rarely happens but it does once in a while). Would suggest signing up to your OS distrubution security mailing list to be notified of when there are important security updates, apply your patches to stay secure.

Then I also monitor this forum for updates for DA at least every couple days. These days you normally only see DA updates when DA itself is updated, I keep DA updates to late on the weekends when servers are slowest for me just in case something breaks while updating. Exception to this is for critical updates, they get patched immediately.

And remember to do your backups and check them to make sure they are good every once in a while.
 
It is the good practice?
Yes when if directadmin shows system update, otherwise it's not needed because dnf does the OS update.

command „dnf update” make update for example services php, httpd etc. so custombuild will not do this, it is correct?
No it's the other way around. The "dnf update" makes update for the OS like kernel, bind, pearl, python, openssh and things like that.
Custombuild takes care of all services Directadmin uses, so httpd, php, mysql/mariadb and such.
 
Back
Top