How To Install openssh-tests on Ubuntu 20.04
Introduction
In this tutorial we learn how to install openssh-tests
on Ubuntu 20.04.
What is openssh-tests
openssh-tests is:
This package provides OpenSSH’s regression test suite. It is mainly intended for use with the autopkgtest system, though can also be run directly using /usr/lib/openssh/regress/run-tests.
Package: openssh-tests Architecture: amd64 Version: 1:8.2p1-4 Multi-Arch: foreign Priority: optional Section: universe/net Source: openssh Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenSSH Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4971 Depends: openssh-client (= 1:8.2p1-4), openssh-server (= 1:8.2p1-4), openssh-sftp-server (= 1:8.2p1-4), openssl, putty-tools (>= 0.67-2), python3-twisted, libc6 (>= 2.26), libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4) Filename: pool/universe/o/openssh/openssh-tests_8.2p1-4_amd64.deb Size: 666676 MD5sum: 0fd7ec1133dc1c1233ce0c89ed060dc5 SHA1: 3ba3260ba3f8d380b6191d0c182f48efd90b870c SHA256: 0777ddccd16a8b2386eaebf8f9b3ac8748492e1fe8e71c9f97e41d2fc4a03314 Homepage: http://www.openssh.com/ Description-en: OpenSSH regression tests This package provides OpenSSH’s regression test suite. It is mainly intended for use with the autopkgtest system, though can also be run directly using /usr/lib/openssh/regress/run-tests.
There are three methods to install openssh-tests
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 openssh-tests Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install openssh-tests
using apt-get
by running the following command:
sudo apt-get -y install openssh-tests
Install openssh-tests Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install openssh-tests
using apt
by running the following command:
sudo apt -y install openssh-tests
Install openssh-tests 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 openssh-tests
using aptitude
by running the following command:
sudo aptitude -y install openssh-tests
How To Uninstall openssh-tests on Ubuntu 20.04
To uninstall only the openssh-tests
package we can use the following command:
sudo apt-get remove openssh-tests
Uninstall openssh-tests And Its Dependencies
To uninstall openssh-tests
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove openssh-tests
Remove openssh-tests Configurations and Data
To remove openssh-tests
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge openssh-tests
Remove openssh-tests configuration, data, and all of its dependencies
We can use the following command to remove openssh-tests
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge openssh-tests
References
Summary
In this tutorial we learn how to install openssh-tests
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.