[Koha] Newbie question concerning system maintenance
Magnus Enger
magnus at libriotech.no
Tue Jan 19 21:38:37 NZDT 2021
Hi!
Den 19.01.2021 09:26, skrev Andreas Tomiak:
> Hello,
>
> I´ve tried to find some information in koha´s documentation, but I
> failed to find anything usable. Sorry for my question:
>
> Does Koha have a common way (script?) to update it to newer versions or
> do I have to make a new installation of it, configure it and reinstall
> the previous dumped database?
It depends on how you installed Koha in the first place. Did you install
using the Debian packages (sudo apt-get install koha-common)?
If you did, an upgrade is as easy as this:
sudo apt-get update
sudo apt-get upgrade
This will upgrade to the latest minor version, e.g. from 19.11.10 til
19.11.13.
If you want to upgrade to a newer major version (e.g. from 19.11.x to
20.05.x) you need to adjust the file /etc/apt/sources.list.d/koha.list
before you do "sudo apt-get update". See "Pick which Koha version to
follow" on the following wiki page for an idea of what you need to do.
https://wiki.koha-community.org/wiki/Koha_on_Debian#Pick_which_Koha_version_to_follow
Then, after adjusting /etc/apt/sources.list.d/koha.list you should be
able to upgrade with the same commands:
sudo apt-get update
sudo apt-get upgrade
Sometimes this will not upgrade Koha, because it is "held back" (I think
this happens when the upgrade means you have to install new packages on
the server, e.g. new Perl modules). In that case you have to try again
with this command:
sudo apt-get dist-upgrade
Remember to always scan the output of these commands for any error
messages related to the upgrading of the Koha database.
Good luck!
Magnus
More information about the Koha
mailing list