Install specific version of Hestia

Hello,

I have the need to provision a VPS with Hestia. Given the many posts recently from users having issues since version 1.9, is there a way to install version 1.8.12?

I have 3 other VPS with 1.8.12 with no problems, and I am glad I turned off automatic updates after reading all the issues. Not sure if I will encounter any issues, BUT I don’t have the time to be dealing with them as I need this VPS quick. Hence, why I rather install 1.8.12.

Hope there is a way I can do that.

Thanks!

Hi @aguilar1181

You can use these steps at YOUR OWN RISK.

This example is to install version 1.8.12 on Debian bookworm,bullseye or Ubuntu focal, jammy. You must replace --YourOptions by the options you want to use but keep the --with-debs parameter.

source /etc/os-release
wget "https://raw.githubusercontent.com/hestiacp/hestiacp/refs/heads/releases/v1.8/install/hst-install-${ID}.sh"
sed -i '/Update remaining packages/{n;n;n;/apt-get -y upgrade/s/^/#/}' "hst-install-${ID}.sh"
mkdir /root/hestia-debs/
cd /root/hestia-debs/
wget "https://apt.hestiacp.com/pool/$VERSION_CODENAME/main/h/hestia/hestia_1.8.12_amd64.deb"
wget "https://apt.hestiacp.com/pool/$VERSION_CODENAME/main/h/hestia-nginx/hestia-nginx_1.25.2_amd64.deb"
wget "https://apt.hestiacp.com/pool/$VERSION_CODENAME/main/h/hestia-php/hestia-php_8.2.11_amd64.deb"
cd /root/
bash "hst-install-${ID}".sh --YourOptions --with-debs /root/hestia-debs

Once installed and before reboot, open a new session, hold hestia packages and disable autoupdates:

apt-mark hold 'hestia*'
/usr/local/hestia/bin/v-delete-cron-hestia-autoupdate

Now you can proceed with the reboot.

Double check that the system didn’t update hestia-nginx and hestia-php packages:

❯ dpkg -l | grep hestia
ii  hestia                             1.8.12                                      amd64        hestia
ii  hestia-nginx                       1.25.2                                      amd64        hestia Nginx
ii  hestia-php                         8.2.11                                      amd64        hestia php-fpm

If hestia-nginx is version 1.27.x and/or hestia-php is 8.3.x, you should remove the packages and install them manually.

apt purge hestia-nginx hestia-php
cd /root/hestia-debs/
dpkg -i hestia-nginx_1.25.2_amd64.deb hestia-php_8.2.11_amd64.deb

Thank you very much for the detailed explanation. I will give this a go.

I have one more question: Once I’m prepared to update, can I simply unhold the Hestia packages and execute apt update?

1 Like

You’re welcome.

Yes, that’s correct.

1 Like

it is probally easier to build the packages from source instead then downloading them…

1 Like

Yep, it is but I think it’s faster to download already compiled debs :wink:

You should for sure download hst_install_debian / ubuntu directly instead hst_install.sh script

Also in that file there is an apt update script at the end that should be disabled…

1 Like

Thank you for the note. I saw the first apt-get -y upgrade but didn’t see the second one that updates the Hestia packages. I’ve corrected the steps in the previous post.

Just in case someone wants to compile itself the packages, it will take a few minutes (5 minutes inside a Debian bookworm VM on my laptop).

Note: replace --YourOptions by the options you want to use but keep the --with-debs parameter.

apt install git
git clone https://github.com/hestiacp/hestiacp.git
cd hestiacp
git fetch origin
git checkout releases/v1.8
cd src
./hst_autocompile.sh --all --noinstall --keepbuild '~localsrc'
cd ../install/
source /etc/os-release
sed -i '/Update remaining packages/{n;n;n;/apt-get -y upgrade/s/^/#/}' "hst-install-${ID}.sh"
bash "hst-install-${ID}".sh --YourOptions --with-debs /tmp/hestiacp-src/deb

Once installed and before reboot, open a new session, hold hestia packages and disable autoupdates:

apt-mark hold 'hestia*'
/usr/local/hestia/bin/v-delete-cron-hestia-autoupdate
1 Like