This package includes the ‘adduser’ and ‘deluser’ commands for creating and removing users. In this tutorial, I will show you how to install adduser on Ubuntu 22.04.
- OS: Ubuntu 22.04 or older Ubuntu versions
- Privileges: Ensure that you are able to execute the sudo commands line.
Install adduser Ubuntu 22.04
adduser is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.
Install adduser using APT
This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install adduser on your Ubuntu.
Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:
Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install adduser Ubuntu by pasting this command into the terminal and executing it.
Install adduser using Aptitude
Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.
Then, you can now install adduser by following these steps:
Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:
Step 2: Start the package installation on Ubuntu 22.04. You can now install adduser Ubuntu by executing this command in the terminal.
Uninstall adduser on Ubuntu 22.04
Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just adduser.
You can uninstall adduser Ubuntu by running this command if you installed it using APT or Aptitude.
You can also execute this command if you want to uninstall adduser and remove its data and dependencies:
In this guide, I showed you ways to install adduser on Ubuntu 22.04 and ways to uninstall adduser too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.