Package Management

Streamlined APT commands for installing, upgrading, and cleaning your Debian/Ubuntu system.

⚠️ Platform Note: This module is only active on Debian/Ubuntu-based Linux distributions that use the apt package manager. On macOS and Arch/Fedora Linux, these aliases are safely skipped. Use your native package manager (brew, pacman, dnf) instead.


Aliases

update

  • Description: Refresh package lists from all repositories (and check aliaskit updates)
  • Usage: update
  • Example: update
update
# Runs: sudo apt update && ak update --auto

💡 Note: If you opted into the APT hook during install, this also silently checks for Aliaskit updates in the background!

upgrade

  • Description: Update package lists and upgrade all installed packages
  • Usage: upgrade
  • Example: upgrade
upgrade
# Runs: sudo apt update && sudo apt upgrade -y

full-upgrade

  • Description: Full system upgrade including dependency resolution, then clean up
  • Usage: full-upgrade
  • Example: full-upgrade
full-upgrade
# sudo apt update && sudo apt full-upgrade -y
# sudo apt autoremove -y && sudo apt autoclean

install

  • Description: Install an APT package with confirmation
  • Usage: install <pkg>
  • Example: install curl

remove

  • Description: Remove a package and its config files
  • Usage: remove <pkg>
  • Example: remove firefox
  • Description: Search for a package in APT
  • Usage: search <term>
  • Example: search python3

clean

  • Description: Auto-remove unused packages and clean cache
  • Usage: clean
  • Example: clean

-- Part of the Packages module of Aliaskit --

⭐ Star Aliaskit on GitHub · 📖 Back to Manual