How to Install and Uninstall wireguard Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 21,2024

1. Install "wireguard" package

Here is a brief guide to show you how to install wireguard on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install wireguard

2. Uninstall "wireguard" package

Please follow the steps below to uninstall wireguard on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove wireguard $ sudo apt autoclean && sudo apt autoremove

3. Information about the wireguard package on Ubuntu 20.04 LTS (Focal Fossa)

Package: wireguard
Architecture: all
Version: 1.0.20200513-1~20.04.2
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Daniel Kahn Gillmor
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 17
Depends: wireguard-dkms (>= 0.0.20200121-2) | wireguard-modules (>= 0.0.20191219), wireguard-tools (>= 1.0.20200513-1~20.04.2)
Filename: pool/universe/w/wireguard/wireguard_1.0.20200513-1~20.04.2_all.deb
Size: 3264
MD5sum: 25d9f8f4f72eb73291adb1d713b2a9dc
SHA1: 2bab5c92a2f5c6ca066f5951b3caf2e9863c5516
SHA256: 9b82aa5a9a311b951f51ca7916a615b92c2f48bb1ea650d5bb0a12c94829fd04
SHA512: cf2c7912ba983f7d6785ebc71d338ceea6dd4721d30c06fd51653f39d891b3aa4d0f69b3aab772a667fb6df9c949185c3731cf735bb2e4e47380e14b7f943e9b
Homepage: https://www.wireguard.com
Description: fast, modern, secure kernel VPN tunnel (metapackage)
Description-md5: bd6dd7a30cf34800a40219e3d2df9dc3

Package: wireguard
Architecture: all
Version: 1.0.20200319-1ubuntu1
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Daniel Kahn Gillmor
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16
Depends: wireguard-dkms (>= 0.0.20200121-2) | wireguard-modules (>= 0.0.20191219), wireguard-tools (>= 1.0.20200319-1ubuntu1)
Filename: pool/universe/w/wireguard/wireguard_1.0.20200319-1ubuntu1_all.deb
Size: 2912
MD5sum: e1d56c744df5696758d0cf44a5c91bb7
SHA1: 4e2afb8514739da59562b43998b8e5cc2c8413d2
SHA256: f3197b5280cdf663467fa5df5eb34baad86a99c4363be22bef1da6648cd4f61a
Homepage: https://www.wireguard.com
Description: fast, modern, secure kernel VPN tunnel (metapackage)
Description-md5: bd6dd7a30cf34800a40219e3d2df9dc3