What are other apt-get flags?

Here are some commonly used apt-get flags:

  1. update: Updates the package index files from their sources.

    sudo apt-get update
  2. upgrade: Upgrades all the installed packages to their latest versions.

    sudo apt-get upgrade
  3. dist-upgrade: Upgrades packages and handles changing dependencies with new versions of packages.

    sudo apt-get dist-upgrade
  4. remove: Removes a specified package but leaves its configuration files.

    sudo apt-get remove package-name
  5. purge: Removes a specified package along with its configuration files.

    sudo apt-get purge package-name
  6. autoremove: Removes packages that were automatically installed to satisfy dependencies for other packages and are no longer needed.

    sudo apt-get autoremove
  7. clean: Clears out the local repository of retrieved package files.

    sudo apt-get clean
  8. install: Installs a specified package.

    sudo apt-get install package-name
  9. search: Searches for a specified package in the package index.

    apt-cache search package-name
  10. show: Displays detailed information about a specified package.

    apt-cache show package-name

These flags can be combined with other options to customize the behavior of the apt-get command.

0 Comments

no data
Be the first to share your comment!