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
Inverted World Live
3 hours agoGiant Eyeball Falls Out of Sky | Ep. 63
48.5K5 -
LIVE
Badlands Media
8 hours agoBaseless Conspiracies Ep. 138
8,307 watching -
3:00:11
TimcastIRL
4 hours agoTHE WAR IS OVER, Trump Announces CEASEFIRE In Israel Iran War | Timcast IRL
226K161 -
LIVE
RalliedLIVE
6 hours ago $4.33 earnedMonday WZ - Specialist Addict Gets Wins
935 watching -
LIVE
SpartakusLIVE
5 hours agoSpart RETURNS || The Masses REJOICE
390 watching -
2:54:15
Barry Cunningham
5 hours agoBREAKING NEWS: THERE'S SO MUCH WINNING FOR PRESIDENT TRUMP AND AMERICA TONIGHT!!
51.7K52 -
Adam Does Movies
1 day ago $0.15 earnedIs 28 Years Later A Good Movie? - Live Debate
21.7K1 -
LIVE
Spartan
8 hours agoPro Halo Player | Sens Crisis Grind | Ranked Arena, Probably SWTOR at some point
222 watching -
LIVE
7ninja7
2 hours ago $0.04 earnedIF u have time just say HI
78 watching -
1:52:40
RiftTV/Slightly Offensive
9 hours agoIran ATTACKS U.S. Airbases in Qatar, Escalation IMMINENT? | The Rift | Guest: Liz Crokin
54.1K17