How to Upgrade Koha to Stable Version
A new version of Koha is regularly released every six months with new features and enhancements. Each koha release has a version number that consists of the year and month of the release. Here are the easy steps to upgrade the koha to a stable release.
Before upgrading koha to a new version, I would recommend taking a backup of your koha database.
Apply the following commands in the Terminal
Upgrade the Koha
sudo apt-get update
sudo apt-get upgrade
apt-cache policy koha-common | grep -E 'Installed|Candidate'
It shows
Installed: 21.05.01-1
Candidate: 21.05.09-1
Then Update the koha to stable version
sudo apt-get upgrade
This will upgrade to the latest minor version, e.g. from 22.05.04 til 22.11.05 (It will also upgrade all the other software on your server that needs an upgrade.)
The upgrade will print a list of software to be updated, please read this list before proceeding with the upgrade, and if packages related to mysql or mariadb are present, you should cancel and run the database upgrade first. If the package listed was mariadb-server*, first run:
sudo apt-get install mariadb-server
sudo apt-get upgrade
Upgrade Database Schema
sudo koha-upgrade-schema library
('library' is the name of the koha instance)
Rebuild the Zebra Index
sudo koha-rebuild-zebra -v -f library
Upgrading Koha to a major version
sudo apt-get update
apt-cache policy koha-common | grep -E 'Installed|Candidate'
It shows
Installed: 19.05.14-1
Candidate: 21.05.04-1
Then run these commands
sudo apt-get upgrade
sudo apt-get dist-upgrade
Upgrade Database Schema
sudo koha-upgrade-schema library
('library' is the name of the koha instance)
Rebuild the Zebra Index
sudo koha-rebuild-zebra -v -f library
Confirm the 'koha-common' package has been installed successfully
dpkg -s koha-common | grep Status
Status: install ok installed
If face any error in upgrading using this command for solve
sudo a2dismod mpm_event
sudo apt-get install -f
(or try this)
The above commands not working try below.
Other way to upgrade the Koha commands.
Install repository key for the latest stable or oldstable version (change in the command stable or oldstabale)
sudo apt-get update
sudo apt-get upgrade
echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list
sudo apt-get update
Install the latest koha version
sudo apt-get install koha-common
Clean the packages after upgradation
sudo apt-get clean
Upgrade Database Schema
sudo koha-upgrade-schema library
('library' is the name of the koha instance)
Rebuild the Zebra Index
sudo koha-rebuild-zebra -v -f library
Comments
Post a Comment