## Upgrade on Debian (optional) Upgrade on Debian (optional) — How to upgrade milter manager related softwares on Debian GNU/Linux |

## About this document

This document describes how to upgrade milter manager on Debian GNU/Linux. See Install to Debian (optional) for newly install information.

You need to upgrade milter manager before you upgrade optional packages. See Upgrade on Debian if you don't upgrade milter manager yet.

## Upgrade milter-manager-log-analyzer

You already upgrade milter-manager-log-analyzer when you upgrade milter-manager package.

## Upgrade milter manager admin

### Upgrade gems

    % sudo gem install rails -v '2.3.4'
    % sudo gem install passenger -v '2.2.5'

### Upgrade Passenger

To build Passenger we run the following command:

    % (echo 1; echo) | sudo /var/lib/gems/bin/passenger-install-apache2-module

We upgrade Passenger version in /etc/apache2/mod-available/passenger.{load,conf} to 2.2.5:

/etc/apache2/mods-available/passenger.load:

    LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so

/etc/apache2/mods-available/passenger.conf:

    PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.5
    PassengerRuby /usr/bin/ruby1.8

    RailsBaseURI /milter-manager

We restart Apache:

    % sudo /etc/init.d/apache2 restart

### Upgrade milter manager admin

We upgrade milter manager admin and its database schema:

    % tar cf - -C /usr/share/milter-manager admin | sudo -u milter-manager -H tar xf - -C ~milter-manager
    % cd ~milter-manager/admin
    % sudo -u milter-manager -H /var/lib/gems/1.8/bin/rake gems:install
    % sudo -u milter-manager -H /var/lib/gems/1.8/bin/rake RAILS_ENV=production db:migrate

## Conclusion

We can upgrade milter manager related softwares as easily as milter manager. We can upgrade if we want improvements in newer version.