How To Install passwd on Ubuntu 20.04
Introduction
In this tutorial we learn how to install passwd
on Ubuntu 20.04.
What is passwd
passwd is:
This package includes passwd, chsh, chfn, and many other programs to maintain password and group data.
Shadow passwords are supported. See /usr/share/doc/passwd/README.Debian Task: minimal
Package: passwd Status: install ok installed Priority: required Section: admin Installed-Size: 2667 Maintainer: Ubuntu Developers [email protected] Architecture: amd64 Multi-Arch: foreign Source: shadow Version: 1:4.8.1-1ubuntu5.20.04 Replaces: manpages-tr (« 1.0.5), manpages-zh (« 1.5.1-1) Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.14), libcrypt1 (>= 1:4.1.0), libpam0g (>= 0.99.7.1), libselinux1 (>= 2.1.9), libsemanage1 (>= 2.0.3), libpam-modules Conffiles: /etc/default/useradd 559e87e86a6d1cb4b7f60a6f691d5150 /etc/pam.d/chfn 4d466e00a348ba426130664d795e8afa /etc/pam.d/chpasswd 9900720564cb4ee98b7da29e2d183cb2 /etc/pam.d/chsh a6e9b589e90009334ffd030d819290a6 /etc/pam.d/newusers 1454e29bfa9f2a10836563e76936cea5 /etc/pam.d/passwd eaf2ad85b5ccd06cceb19a3e75f40c63 Description-en: change and administer password and group data This package includes passwd, chsh, chfn, and many other programs to maintain password and group data.
Shadow passwords are supported. See /usr/share/doc/passwd/README.Debian Homepage: https://github.com/shadow-maint/shadow Original-Maintainer: Shadow package maintainers [email protected]
Package: passwd Architecture: amd64 Version: 1:4.8.1-1ubuntu5 Multi-Arch: foreign Priority: required Section: admin Source: shadow Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Shadow package maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2667 Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.14), libcrypt1 (>= 1:4.1.0), libpam0g (>= 0.99.7.1), libselinux1 (>= 2.1.9), libsemanage1 (>= 2.0.3), libpam-modules Replaces: manpages-tr (« 1.0.5), manpages-zh (« 1.5.1-1) Filename: pool/main/s/shadow/passwd_4.8.1-1ubuntu5_amd64.deb Size: 797964 MD5sum: 06c275670fe2897006a090d7dbeef71b SHA1: e2ac7921db80d21c4d13ddea20e302c657ae571b SHA256: c8f18e55f7a79172f81437c6e7b23e630ed12d97c7a927ed8047727362095eb3 Homepage: https://github.com/shadow-maint/shadow Description-en: change and administer password and group data This package includes passwd, chsh, chfn, and many other programs to maintain password and group data.
Shadow passwords are supported. See /usr/share/doc/passwd/README.Debian Task: minimal
There are three methods to install passwd
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 passwd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install passwd
using apt-get
by running the following command:
sudo apt-get -y install passwd
Install passwd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install passwd
using apt
by running the following command:
sudo apt -y install passwd
Install passwd 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 passwd
using aptitude
by running the following command:
sudo aptitude -y install passwd
How To Uninstall passwd on Ubuntu 20.04
To uninstall only the passwd
package we can use the following command:
sudo apt-get remove passwd
Uninstall passwd And Its Dependencies
To uninstall passwd
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove passwd
Remove passwd Configurations and Data
To remove passwd
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge passwd
Remove passwd configuration, data, and all of its dependencies
We can use the following command to remove passwd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge passwd
References
Summary
In this tutorial we learn how to install passwd
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.