Upgrade Rudder on Debian or Ubuntu

Before upgrading, especially for minor and major version upgrades, please read the upgrade notes.

Rudder includes a script for upgrading all files, databases, etc…​ which need migrating. Therefore, you should not replace your old files by the new ones when apt asks about this, unless you want to reset all your parameters.

Add Rudder’s package repository:

# If lsb_release is not installed on your machine, change $(lb_release -cs) by your distribution codename.
# Ex:
#   stretch for Debian 9
#   bionic  for Ubuntu 18.04 LTS

echo "deb [arch=$(dpkg --print-architecture)] http://repository.rudder.io/apt/8.1/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/rudder.list

If you have an active subscription, use the following to get access to long term support. You need to replace the username (LOGIN) and the password (PASSWORD) by your Rudder account:

echo "deb [arch=$(dpkg --print-architecture)] https://download.rudder.io/apt/8.1/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/rudder.list

# for recent debian (>=10) and ubuntu (>=20)
echo 'machine download.rudder.io login LOGIN password PASSWORD' > /etc/apt/auth.conf.d/rudder.conf
chmod 640 /etc/apt/auth.conf.d/rudder.conf

# on old debian (<10) and ubuntu (<20) use this instead
#echo 'machine download.rudder.io login LOGIN password PASSWORD' >> /etc/apt/auth.conf
#chmod 640 /etc/apt/auth.conf

Update your local package database to retrieve the list of packages available in our repository:

apt-get update

Rudder agent

For Rudder agent, upgrade the agent package:

apt-get install rudder-agent

Rudder server

For Rudder server, upgrade the server packages:

apt-get install rudder-server

Note: If you have manually edited the built-in techniques in the git repository, you might need to upgrade you techniques manually.

← Upgrade notes on RHEL/CentOS/Amazon Linux →