What other common apt commands exist?

QuestionsQuestions8 SkillsProDec, 19 2025
0104

Great question! While update and install are the ones you'll use most often, here are the other common apt commands that every Linux user should know:

1. Removing Software

If you want to uninstall a program, use remove:

sudo apt remove htop

2. Searching for Software

Not sure if a program is available or what its exact name is? Use search:

apt search git

This searches the database for any software related to "git".

3. Upgrading Your System

After you run sudo apt update (which updates the list of software), you use upgrade to actually download and install the new versions of everything on your computer:

sudo apt upgrade

4. Cleaning Up

Sometimes installation files stay on your hard drive taking up space. You can clean them out with:

sudo apt autoremove

This removes packages that were installed as dependencies for other programs but are no longer needed.

5. Seeing What's Installed

To see a list of every single package currently installed on your system:

apt list --installed

Summary Table

Command What it does
update Refreshes the list of available software.
install Downloads and installs a new program.
remove Uninstalls a program.
upgrade Updates all currently installed programs to their newest versions.
search Looks for a program in the software "catalog".

Tip: Notice that for commands that change the system (install, remove, upgrade), you need to use sudo. For commands that just look at information (search, list), you usually don't need sudo.

0 Comments

no data
Be the first to share your comment!