[Koha] How to Update and Upgrade Koha

Hector Gonzalez Jaime cacho at genac.org
Thu Sep 16 11:25:40 NZST 2021


Hi, as with anything else, you should first have a good (tested) backup 
of everything.  Koha, server software, and database.

Then, if you used the debian packages, you should check which version 
you are "tracking", something like:

grep -Ri koha /etc/apt/*

would return something like:

/etc/apt/sources.list.d/koha.list:deb 
http://debian.koha-community.org/koha 19.11 main

That means there is a file /etc/apt/sources.list.d/koha.list which you 
should edit and change to the version you want to track now.  The 
content of the file would be:

deb http://debian.koha-community.org/koha 21.05 main

if you want to track koha 21.05

Then you would:

apt-get update
apt-get upgrade

and it should do the upgrade.  With the following exception, if apt-get 
upgrade says it would need to update mariadb-server or mysql-server, 
then you should upgrade that first and separately, like this:

apt-get update
apt-get install mariadb-server-10.3
apt-get upgrade

If you don't upgrade mariadb first, it will be DOWN when koha wants to 
upgrade the database, leaving you with a half upgraded system.  (And 
using that backup).

Hope this helps.

On 9/15/21 6:04 PM, Charles Kelley wrote:
> Hi, all!
>
>      I think I have asked about this before, but I don't recall getting a
> definitive answer. But it's awhile, so here goes.
>
>      I have seen announcements about updates and upgrades to Koha. ("Come
> and get it!") Alas, I don't find instructions for installing updates and
> upgrades. There are initial installation instructions aplenty, but alas, if
> there are ones for updates and upgrades, I don't see them. So I ask:
>
>          How does one update or upgrades Koha?
>
>      Thanks for your help, everyone.
>
-- 
Hector Gonzalez
cacho at genac.org



More information about the Koha mailing list