These are some of the most commonly used apt commands for package management in Debian-based Linux distributions like Ubuntu.
| #sudo apt update | This command updates the local package |
#sudo apt upgrade | This command upgrades all installed packages to their latest available versions. |
| #sudo apt install package_name | This command installs a specific package. |
| #sudo apt remove package_name | This command removes a specific package from the system. |
| #sudo apt purge package_name | This command removes a package along with its configuration files. It’s useful when you want to completely remove all traces of a package. |
| # apt show package_name | This command displays detailed information about a specific package, including its description, version, dependencies, and more |
| #sudo apt autoremove | This command removes packages that were automatically installed to satisfy dependencies for other packages but are no longer needed |
| #sudo apt clean | This command clears the local package cache, freeing up disk space by removing downloaded package files. |
Leave a comment