Introduction
In this tutorial we learn how to install charon-cmd
on Ubuntu 20.04.
What is charon-cmd
charon-cmd is:
The strongSwan VPN suite uses the native IPsec stack in the standard
Linux kernel. It supports both the IKEv1 and IKEv2 protocols.
This package contains the charon-cmd command, which can be used as a client to
connect to a remote IKE daemon.
Package: charon-cmd
Architecture: amd64
Version: 5.8.2-1ubuntu3
Priority: optional
Section: universe/net
Source: strongswan
Origin: Ubuntu
Maintainer: Ubuntu Developers [email protected]
Original-Maintainer: strongSwan Maintainers [email protected]
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 213
Depends: libstrongswan (= 5.8.2-1ubuntu3), libc6 (>= 2.4), strongswan-libcharon (>= 5.8.2)
Filename: pool/universe/s/strongswan/charon-cmd_5.8.2-1ubuntu3_amd64.deb
Size: 22028
MD5sum: 2a2eca39c909d9569e98afa5a16b18f7
SHA1: 6636aa7abacac8f8bbdb616732b7474a6e2c4fc2
SHA256: 1a3048f57638452fcf702043ad1412bfe734c7ef1bceb3ff64ca838d6593dbee
Homepage: http://www.strongswan.org
Description-en: standalone IPsec client
The strongSwan VPN suite uses the native IPsec stack in the standard
Linux kernel. It supports both the IKEv1 and IKEv2 protocols.
This package contains the charon-cmd command, which can be used as a client to
connect to a remote IKE daemon.
There are three methods to install charon-cmd
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install charon-cmd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install charon-cmd
using apt-get
by running the following command:
sudo apt-get -y install charon-cmd
Install charon-cmd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install charon-cmd
using apt
by running the following command:
sudo apt -y install charon-cmd
Install charon-cmd Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install charon-cmd
using aptitude
by running the following command:
sudo aptitude -y install charon-cmd
How To Uninstall charon-cmd on Ubuntu 20.04
To uninstall only the charon-cmd
package we can use the following command:
sudo apt-get remove charon-cmd
Uninstall charon-cmd And Its Dependencies
To uninstall charon-cmd
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove charon-cmd
Remove charon-cmd Configurations and Data
To remove charon-cmd
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge charon-cmd
Remove charon-cmd configuration, data, and all of its dependencies
We can use the following command to remove charon-cmd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge charon-cmd
References
Summary
In this tutorial we learn how to install charon-cmd
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.