Ubuntu

The ocserv package is included in Ubuntu universe. Install with apt-get install -y ocserv

RHEL / CentOS

ocserv is available in the EPEL repository. Install after enabling EPEL with yum install -y ocserv.

Fedora

ocserv is available in Fedora. Install with yum install -y ocserv.

Debian

ocserv is available in Debian. Install with apt-get install -y ocserv.

FreeBSD

There are ports packages available.

OpenBSD

There are ports packages available.

OpenWRT

ocserv is part of OpenWRT packages collection.

VyOS

ocserv is available in VyOS.