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.
-
DVR
Jerry After Dark
16 hours agoHole In One Challenge | Presented by TGL
277K16 -
3:56:39
Alex Zedra
8 hours agoLIVE! New Game | The Escape: Together
63.4K9 -
5:01:11
FreshandFit
9 hours agoJoe Budden Arrested For Being A Perv! Tesla Cybertruck Explosion
97.5K19 -
2:08:45
Kim Iversen
12 hours agoNew Year, New PSYOP?: The Fort Bragg Connection In The New Years Terror Attacks
80.5K173 -
1:41:18
Glenn Greenwald
12 hours agoTerror Attacks Exploited To Push Unrelated Narratives; Facing Imminent Firing Squad, Liz Cheney Awarded Presidential Medal | SYSTEM UPDATE #381
112K189 -
1:00:32
Man in America
14 hours ago🔴 LIVE: Terror Attacks or False Flags? IT DOESN'T ADD UP!!!
87.3K30 -
1:02:38
Donald Trump Jr.
15 hours agoNew Year’s Terror, Latest Breaking News with Sebastian Gorka | TRIGGERED Ep.204
214K440 -
59:59
The StoneZONE with Roger Stone
11 hours agoAfter Years of Targeting Trump, FBI and DOJ are Unprepared to Stop Terror Attacks | The StoneZONE
74.4K28 -
1:26:42
Leonardaisfunny
9 hours ago $5.44 earnedH-1b Visas: Infinity Indians
49.3K27 -
1:08:33
Josh Pate's College Football Show
14 hours ago $3.07 earnedPlayoff Reaction Special: Ohio State Owns Oregon | Texas Survives | UGA vs Notre Dame Takeaways
43.9K6