wiki:OpenvpnAptRepos

Version 8 (modified by Samuli Seppänen, 13 years ago) (diff)

--

Introduction

Latest OpenVPN releases are also available in the project's apt repositories. This allow you to use more up-to-date version of OpenVPN than what's typically available in your distribution's repositories. You need to run these commands as root, e.g. using sudo or su.

Compatibility

Even if a package is built on a particular OS, it does not mean it won't work on older and/or newer versions of the same distro, or even on a different operating system:

PackageWorks on
Debian 5.xDebian 6.xDebian 7.xUbuntu 10.04Ubuntu 10.10Ubuntu 11.04Ubuntu 11.10
Debian 5.x (Lenny)YesUntestedUntestedUntestedUntestedUntestedUntested
Ubuntu 10.04 (Lucid)UntestedUntestedUntestedYesUntestedYesUntested

If you've tested the packages yourself on an OS marked as "Untested", please change the appropriate cell to say "Yes" or "No", depending on whether the package worked or not. If there were any issues with the package, please file a new bug report.

Importing the GPG key

OpenVPN's .deb packages and repository files are signed with GPG. Therefore, you need to import proper public key or you get errors when updating software catalogs (e.g. with apt-get update):

$ wget -O - http://build.openvpn.org/repos/apt/conf/openvpn-apt.gpg.key|apt-key add -

This step is the same regardless of the OS or OS release.

Adding repository files

Debian Lenny (5.x)

The i386 and amd64 architectures are supported. These packages may work on later Debian versions, too.

$ cd /etc/apt/sources.list.d
$ wget http://build.openvpn.org/repos/apt/conf/openvpn-lenny.list

Ubuntu Lucid Lynx (10.04)

The i386 and amd64 architectures are supported. These packages may work on later Ubuntu versions, too.

$ cd /etc/apt/sources.list.d
$ wget http://build.openvpn.org/repos/apt/conf/openvpn-lucid.list

Installing OpenVPN

In most cases, you can just do

$ apt-get update && apt-get install openvpn