Premium Only Content

Linux Command Line Interface (CLI) Install, Remove, Purge & Clean
Here’s a concise guide to managing packages using the Linux command line interface (CLI) with apt, including installation, removal, purging, and cleaning up:
1. Install a Package
To install a package, use the apt install command:
sudo apt update # Update the package list
sudo apt install {package} # Replace {package} with the package name
2. Remove a Package
To remove a package but keep its configuration files, use the apt remove command:
sudo apt remove {package} # Replace {package} with the package name
3. Purge a Package
To remove a package along with its configuration files, use the apt purge command:
sudo apt purge {package} # Replace {package} with the package name
4. Clean Up Unused Dependencies
After removing or purging packages, there may be unused dependencies that can be cleaned up using the apt autoremove command:
sudo apt autoremove
5. Clean Up Package Cache
To clean up the local repository of retrieved package files and free up disk space, use the apt clean command:
sudo apt clean
6. Verify Package Installation
To check if a package is installed and view its version, use the following:
{package} --version # Replace {package} with the package name
Summary of Commands:
Install: sudo apt update && sudo apt install {package}
Remove: sudo apt remove {package}
Purge: sudo apt purge {package}
Clean Up Dependencies: sudo apt autoremove
Clean Package Cache: sudo apt clean
These commands will help you manage packages efficiently on a Debian-based system.
-
LIVE
Kim Iversen
1 hour ago"Canada's Trump" Is Trudeau’s Worst Nightmare: Is Maxime Bernier the Future of Canada?
1,443 watching -
DVR
Bannons War Room
10 days agoWarRoom Live
2.58M435 -
16:06
The Rubin Report
7 hours agoProof the Islamist Threat in England Can No Longer Be Ignored | Winston Marshall
34.3K24 -
2:07:07
Robert Gouveia
4 hours agoFBI Files Coverup! Bondi FURIOUS; SCOTUS Stops Judge; Special Counsel; FBI Does
40.5K31 -
56:15
Candace Show Podcast
5 hours agoBREAKING: My FIRST Prison Phone Call With Harvey Weinstein | Candace Ep 153
107K69 -
LIVE
megimu32
1 hour agoON THE SUBJECT: The Epstein List & Disney Channel Original Movies Nostalgia!!
184 watching -
9:06
Colion Noir
10 hours agoKid With Gun Shoots & Kills 2 Armed Robbers During Home Invasion
16.9K3 -
54:28
LFA TV
1 day agoUnjust Man | TRUMPET DAILY 2.27.25 7PM
19.7K2 -
DVR
CatfishedOnline
6 hours ago $1.19 earnedGoing Live With Allen Weekly Recap
21.8K -
20:10
CartierFamily
7 hours agoAndrew Schulz DESTROYS Charlamagne’s WOKE Meltdown on DOGE & Elon Musk!
36.8K45