Install command-not-found on Ubuntu: sudo apt-get install command-not-found

Learn how to install command-not-found with the command sudo apt-get install command-not-found on Ubuntus.


 

Ads

Quick installation of command-not-found:

Step 1: Update system:

	sudo apt-get update

Step 2: Install: command-not-found

Ater updaing the OS run following command to install the packae:

	sudo apt-get install command-not-found

Package Details

Package:command-not-found
Version:0.2.46ubuntu6
Maintainer:Michael Vogt
Home page:
Description:Suggest installation of packages in interactive bash sessions This package will install a handler for command_not_found that looks up programs not currently installed but available from the repositories.
Distro:Ubuntu 12.04 LTS
Release:
Repo/Section:admin

How to install command-not-found on Ubuntu 12.04 LTS?

Install command-not-found on Ubuntu: sudo apt-get install command-not-found

First of all update your system with the command:

sudo apt-get update

Ads

Above command will download the package lists for Ubuntu 12.04 LTS on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If command-not-found is not installed on your compter then the command 'dpkg -L command-not-found' will give followin error.


Installing command-not-found:

After system update use the following command to install command-not-found:

sudo apt-get install command-not-found

Above command will confirm before installing the package on your Ubuntu 12.04 LTS Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove command-not-found from Ubuntu 12.04 LTS?

Now we will see the commands for uninstalling the command-not-found from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the command-not-found following command is used:

sudo apt-get remove  command-not-found

Following command is used to remove the command-not-found package along with its dependencies:

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

This will remove command-not-found and all its dependent packages which is no longer needed in the system.

Completely removing command-not-found with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge command-not-found

or you can use following command also:

sudo apt-get purge --auto-remove command-not-found

Above command will remove all the configuration files and data associated with command-not-found package. You can can't recover the delete data, so, use this command with care.