What are common apt commands?

QuestionsQuestions8 SkillsProYour First Linux LabOct, 08 2025
0141

Here are some common apt commands used for package management:

  1. Update package list:

    sudo apt update
  2. Upgrade installed packages:

    sudo apt upgrade
  3. Install a new package:

    sudo apt install package-name
  4. Remove a package:

    sudo apt remove package-name
  5. Search for a package:

    apt search package-name
  6. Show package information:

    apt show package-name
  7. Clean up unused packages:

    sudo apt autoremove
  8. List installed packages:

    apt list --installed

These commands help manage software installations and updates effectively on Debian-based systems.

0 Comments

no data
Be the first to share your comment!