Ways to Install or Uninstall dh-r on Ubuntu 22.04

Updated: October 24, 2022

Provides the R package buildsystem for debhelper. In this guide, I will show you ways to install dh-r Ubuntu 22.04.

Prerequisites

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install dh-r on Ubuntu 22.04

Install dh-r Ubuntu 22.04

dh-r is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install dh-r using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install dh-r 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 this Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install dh-r Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install dh-r

Install dh-r 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. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing, you can now install dh-r, just following these steps:

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. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install dh-r Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude -y install dh-r

Uninstall dh-r on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a dh-r, can be easily uninstalled by anyone.

If you installed dh-r using APT or Aptitude, you could uninstall dh-r on Ubuntu by running this command

sudo apt remove --auto-remove dh-r

If you want to uninstall dh-r and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge dh-r

Conclusion

In this tutorial, I showed you ways to install dh-r on Ubuntu 22.04 and ways to uninstall dh-r too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.