Article overview

Help article

How can I keep my DirectAdmin installation up-to-date?

Your CentOS(old)/AlmaLinux(new) and DirectAdmin installation can only be updated separately from each other.


Updating CentOS

 

Step 1

Connect to your DirectAdmin VPS using SSH or your VPS console.


 

Step 2

To check available updates of software on your CentOS VPS, use the command:

yum -y check-update

This command verifies if new updates are available.


 

Step 3

To install available updates type:

yum -y update

Confirm the action with 'y' and CentOS will download and install the available updates.

Please note that the first step is optional. Using yum update you'll install all pending updates, regardless of whether you checked them in advance or not.


Updating AlmaLinux

 

AlmaLinux is updated similarly to CentOS and can be done using the command:

dnf -y update

Updating DirectAdmin

 

When updating DirectAdmin two options are available: updating DirectAdmin as a whole, or its services (such as MariaDB).

 

Updating DirectAdmin

 

Step 1

Connect to your DirectAdmin VPS using SSH or your VPS console.


 

Step 2

To update DirectAdmin, simply run the command below.

/usr/local/directadmin/scripts/getDA.sh current

'Current' can optionally be replaced by alpha, beta, or stable.


 

Updating DirectAdmin's services

 

Step 1

Connect to your DirectAdmin VPS using SSH or your VPS console.


 

Step 2

Updating DirectAdmin should be done through the custombuild script.

cd /usr/local/directadmin/custombuild 
./build update

 

Step 3

You can check which updates are available using the command:

./build versions

This command gives an overview of all the currently installed versions and possible updates.


 

Step 4

Install all pending updates using the command:

./build update_versions

The custombuild command is a process that will compile and install updates. The update process can take some time.


 

This concludes this article. For more information about updating DirectAdmin / software on your DirectAdmin VPS, take a look at our DirectAdmin tutorial series.

Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach us via the ‘Contact Us’ button at the bottom of this page.

If you want to discuss this article with other users, please leave a message under 'Comments'.

Has this article been helpful?

Create an account or log in to leave a rating.

Comments

Create an account or log in to be able to leave a comment.

0
Matthijs van Beek Admin January 6, 2020 (#3954)

@nourieh,

That's really cool! :) I believe the url has changed though, so for convenience here's the updated URL to your page: https://blog.jeyserver.com/how-to-update-direct-admin

1
nourieh December 22, 2019 (#3904)

We translated this post to for who wants to read it in Persian/Farsi. Link: https://blog.jeyserver.com/how-keep-directadmin-installation-up-to-date ما این پست را به فارسی ترجمه کرده ایم.