Installing Koha: Update Debian packages

  1. Installing Koha : Introduction
  2. Installing Koha: Create a User Account on Debian
  3. Installing Koha: Update Debian packages
  4. Installing Koha: Download koha and install required packages
  5. Installing koha: Create MySQL database
  6. Installing Koha: Configure the installer and install koha
  7. Installing Koha: Configure apache2 web server and run koha web installer
  8. Installing Koha: Configure and start Zebra

Koha relies on many other packages to run. These include MySQL database, Apache2 web server and zebra for indexing among others. We therefore need to set-up our new operating system so that it can access, download and install all these packages.

To begin, open and add apt sources for Zebra packages in sources.list file.

    sudo nano /etc/apt/sources.list

At the bottom of the file, paste these lines

    # Zebra/indexdata sources
    deb jessie main
    deb-src jessie main
    #apt repository for koha's debian dependencies
    deb stable main

Then add indexdata* signing key to your Debian system to avoid PGP errors during installation.

    wget -O- | sudo apt-key add -

During this step, look out for the word OK, otherwise an error occurred that you need to resolve.
Then add Debian signing key to your system as well.

     wget -O- | sudo apt-key add -

Update the Debian apt cache to get the latest packages for your system. Basically, you are re-synchronizing your local package index files with their sources as specified in /etc/apt/sources.list file

sudo apt-get update

Upgrade the packages. This actually downloads the updated packages from the remote repository and updates the local ones on your system.

sudo apt-get upgrade

And finally remove any packages installed but no longer required. These include those packages installed for use only during installation.

sudo apt-get clean

Otuoma Sanya

Otuoma Sanya is a full-time systems librarian, tech enthusiast and writer. His areas of interest are data mining, institutional repositories, library automation and web development using python Django.

Leave a Reply