• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

aptitude: command not found

by admin

On a Linux system, the aptitude command is a package manager that is used to install, remove, and manage software packages. It is similar to the apt-get command, but it has a more user-friendly interface and additional features.

To use aptitude, you will need to have root privileges or use the sudo command to run it with superuser permissions. For more information and a complete list of aptitude commands, you can refer to the aptitude man page by running man aptitude in the terminal.

If you encounter the below error while running the aptitude command:

aptitude: command not found

you may install the below package:

# apt-get update
# apt-get -y install aptitude

aptitude Command Examples

1. Synchronize list of packages and versions available. This should be run first, before running subsequent aptitude commands:

# aptitude update

2. Install a new package and its dependencies:

# aptitude install {{package}}

3. Search for a package:

# aptitude search {{package}}

4. Search for an installed package (?installed is an aptitude search term):

# aptitude search '?installed({{package}})'

5. Remove a package and all packages depending on it:

# aptitude remove {{package}}

6. Upgrade installed packages to the newest available versions:

# aptitude upgrade

7. Upgrade installed packages (like aptitude upgrade) including removing obsolete packages and installing additional packages to meet new package dependencies:

# aptitude full-upgrade

8. Put an installed package on hold to prevent it from being automatically upgraded:

# aptitude hold '?installed({{package}})'

Filed Under: Linux

Some more articles you might also be interested in …

  1. Why Does a Lun World Wide ID Starts with the Number 3 in Linux dm-multipath
  2. What are the mount options to improve ext4 filesystem performance in Linux
  3. cewl Command Examples in Linux
  4. chattr Command Examples to Change File Attributes (Make files immutable)
  5. legit: command not found
  6. cake: The command-line processor for the CakePHP framework
  7. ifconfig: command not found
  8. top: command not found
  9. smbpasswd: command not found
  10. repo-add Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright