How To Install openconnect on CentOS 8

openconnect is Open client for Cisco AnyConnect VPN, Juniper Network Connect/Pulse, PAN GlobalProtect

Introduction

In this tutorial we learn how to install openconnect on CentOS 8.

What is openconnect

This package provides a multiprotocol VPN client for Cisco AnyConnect, Juniper SSL VPN / Pulse Connect Secure, and Palo Alto Networks GlobalProtect SSL VPN.

We can use yum or dnf to install openconnect on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install openconnect.

Install openconnect on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install openconnect using dnf by running the following command:

sudo dnf -y install openconnect

Install openconnect on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install openconnect using yum by running the following command:

sudo yum -y install openconnect

How To Uninstall openconnect on CentOS 8

To uninstall only the openconnect package we can use the following command:

sudo dnf remove openconnect

openconnect Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/80b444477ca293f44148e082a86ca1ee901930
/usr/lib/.build-id/79
/usr/lib/.build-id/79/a236c04830fb310f1e80e252816347c6ee5243
/usr/lib64/libopenconnect.so.5
/usr/lib64/libopenconnect.so.5.6.0
/usr/libexec/openconnect
/usr/libexec/openconnect/csd-post.sh
/usr/libexec/openconnect/csd-wrapper.sh
/usr/libexec/openconnect/hipreport.sh
/usr/libexec/openconnect/tncc-emulate.py
/usr/sbin/openconnect
/usr/share/bash-completion/completions/openconnect
/usr/share/doc/openconnect
/usr/share/doc/openconnect/COPYING.LGPL
/usr/share/doc/openconnect/TODO
/usr/share/locale/ar/LC_MESSAGES/openconnect.mo
/usr/share/locale/bs/LC_MESSAGES/openconnect.mo
/usr/share/locale/ca/LC_MESSAGES/openconnect.mo
/usr/share/locale/cs/LC_MESSAGES/openconnect.mo
/usr/share/locale/da/LC_MESSAGES/openconnect.mo
/usr/share/locale/de/LC_MESSAGES/openconnect.mo
/usr/share/locale/el/LC_MESSAGES/openconnect.mo
/usr/share/locale/en_GB/LC_MESSAGES/openconnect.mo
/usr/share/locale/en_US/LC_MESSAGES/openconnect.mo
/usr/share/locale/es/LC_MESSAGES/openconnect.mo
/usr/share/locale/eu/LC_MESSAGES/openconnect.mo
/usr/share/locale/fi/LC_MESSAGES/openconnect.mo
/usr/share/locale/fr/LC_MESSAGES/openconnect.mo
/usr/share/locale/gl/LC_MESSAGES/openconnect.mo
/usr/share/locale/hu/LC_MESSAGES/openconnect.mo
/usr/share/locale/id/LC_MESSAGES/openconnect.mo
/usr/share/locale/it/LC_MESSAGES/openconnect.mo
/usr/share/locale/lt/LC_MESSAGES/openconnect.mo
/usr/share/locale/nl/LC_MESSAGES/openconnect.mo
/usr/share/locale/pa/LC_MESSAGES/openconnect.mo
/usr/share/locale/pl/LC_MESSAGES/openconnect.mo
/usr/share/locale/pt/LC_MESSAGES/openconnect.mo
/usr/share/locale/pt_BR/LC_MESSAGES/openconnect.mo
/usr/share/locale/sk/LC_MESSAGES/openconnect.mo
/usr/share/locale/sl/LC_MESSAGES/openconnect.mo
/usr/share/locale/sr/LC_MESSAGES/openconnect.mo
/usr/share/locale/sr@latin/LC_MESSAGES/openconnect.mo
/usr/share/locale/sv/LC_MESSAGES/openconnect.mo
/usr/share/locale/tg/LC_MESSAGES/openconnect.mo
/usr/share/locale/tr/LC_MESSAGES/openconnect.mo
/usr/share/locale/ug/LC_MESSAGES/openconnect.mo
/usr/share/locale/uk/LC_MESSAGES/openconnect.mo
/usr/share/locale/zh_CN/LC_MESSAGES/openconnect.mo
/usr/share/locale/zh_TW/LC_MESSAGES/openconnect.mo
/usr/share/man/man8/openconnect.8.gz

References

Summary

In this tutorial we learn how to install openconnect on CentOS 8 using yum and dnf.