How To Install packagekit-command-not-found on Ubuntu 18.04

In this tutorial we learn how to install packagekit-command-not-found on Ubuntu 18.04. packagekit-command-not-found is Offer to install missing programs automatically

Introduction

In this tutorial we learn how to install packagekit-command-not-found on Ubuntu 18.04.

What is packagekit-command-not-found

packagekit-command-not-found is:

PackageKit allows performing simple software management tasks over a DBus interface e.g refreshing the cache, updating, installing and removing software packages or searching for multimedia codecs and file handlers.

This package contains a simple handler for command_not_found that offers to install missing packages on the command line using PackageKit.

There are three methods to install packagekit-command-not-found on Ubuntu 18.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 packagekit-command-not-found Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install packagekit-command-not-found using apt-get by running the following command:

sudo apt-get -y install packagekit-command-not-found

Install packagekit-command-not-found Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install packagekit-command-not-found using apt by running the following command:

sudo apt -y install packagekit-command-not-found

Install packagekit-command-not-found 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 packagekit-command-not-found using aptitude by running the following command:

sudo aptitude -y install packagekit-command-not-found

How To Uninstall packagekit-command-not-found on Ubuntu 18.04

To uninstall only the packagekit-command-not-found package we can use the following command:

sudo apt-get remove packagekit-command-not-found

Uninstall packagekit-command-not-found And Its Dependencies

To uninstall packagekit-command-not-found and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove packagekit-command-not-found

Remove packagekit-command-not-found Configurations and Data

To remove packagekit-command-not-found configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge packagekit-command-not-found

Remove packagekit-command-not-found configuration, data, and all of its dependencies

We can use the following command to remove packagekit-command-not-found configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge packagekit-command-not-found

References

Summary

In this tutorial we learn how to install packagekit-command-not-found package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.