1. All of these commands must be run as root or with superuser privileges.
  2. Installation
    1. apt-get install package_name1 package_name2 package_name3
    2. apt-get install package_name
    3. apt-get build-dep package_name
    4. This command searches the repositories and installs the build dependencies for package_name.
  3. Maintenance
    1. apt-get update
      1. Run this command periodically to make sure your source list is up-to-date or after changing sources list.
    2. apt-get upgrade
      1. This command upgrades all installed packages.
    3. apt-get dist-upgrade
      1. The same as the above, except add the “smart upgrade” checkbox. It tells APT to use “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary.
    4. apt-get check
      1. It does an update of the package lists and checks for broken dependencies.
    5. apt-get -f install
      1. Do this if you get complaints about packages with “unmet dependences”.
    6. apt-get autoclean
      1. This command removes .deb files for packages that are no longer installed on your system.
    7. apt-get clean
      1. The same as above, except it removes all packages from the package cache. This may not be desirable if you have a slow internet connection, since it will cause you to re-download any packages you need to install a program.
  4. Removal
    1. apt-get remove package_name
      1. This command removes an installed package, leaving configuration files intact.
    2. apt-get purge package_name
      1. This command completely removes a package and the associated configuration files.
    3. apt-get autoremove
      1. This command removes packages that were installed by other packages and are no longer needed.
  5. Search
    1. apt-cache search search_term
      1. This command will find packages that include search_term.
    2. apt-cache show package_name
      1. This command shows the description of package package_name and other relevant information including version, size, dependencies and conflicts.
    3. dlocate package_name
      1. This command determines which installed package owns package_name.
  6. Fuente
    1. http://itblog.gr/861/introduction-to-apt/