How to Uninstall and Install pciutils on Ubuntu 22.04

Updated: September 7, 2022

This package contains various utilities for inspecting and setting of devices connected to the PCI bus. In this guide, I will show you how to install pciutils on Ubuntu 22.04.

Software Requirement

  • OS: pciutils needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install pciutils on Ubuntu 22.04

Install pciutils Ubuntu 22.04

pciutils 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 that you think is easy and you can follow.

Install pciutils using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install pciutils on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install pciutils Ubuntu by executing this command in the terminal.

sudo apt install pciutils

Install pciutils 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 install aptitude

Then, you can now install pciutils, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install pciutils Ubuntu by executing this command in the terminal.

sudo aptitude install pciutils

Uninstall pciutils on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed pciutils using APT or Aptitude, you could uninstall pciutils on Ubuntu by following this step:

sudo apt remove --auto-remove pciutils

If you want to uninstall pciutils and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge pciutils

Ending

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