How to Install and Uninstall command-not-found Package on Debian 12 (Bookworm)

Last updated: December 25,2024

1. Install "command-not-found" package

In this section, we are going to explain the necessary steps to install command-not-found on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install command-not-found

2. Uninstall "command-not-found" package

This guide let you learn how to uninstall command-not-found on Debian 12 (Bookworm):

$ sudo apt remove command-not-found $ sudo apt autoclean && sudo apt autoremove

3. Information about the command-not-found package on Debian 12 (Bookworm)

Package: command-not-found
Version: 23.04.0-1
Installed-Size: 522
Maintainer: Julian Andres Klode
Architecture: all
Depends: apt-file (>= 3.0~exp1~), lsb-release, python3-apt, python3:any
Suggests: snapd
Description: Suggest installation of packages in interactive bash sessions
Description-md5: add5e86211cf27a4446f18bd0c777aa8
Tag: implemented-in::python, interface::shell, role::program, scope::utility
Section: admin
Priority: optional
Filename: pool/main/c/command-not-found/command-not-found_23.04.0-1_all.deb
Size: 55240
MD5sum: fd8e80db01c184f0fc36de17b51ae9f6
SHA256: 94f9de3a91f1bcbc68e15e80a205f2c4d8d31ea65715e3f94e9e4bc582d2867e