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
The Quartering
22 hours agoYule Log Christmas MAGA Edition With Memes! Come Hang Out!
1,555 watching -
38:41
MYLUNCHBREAK CHANNEL PAGE
1 day agoTimeline Begins in 1800? - Pt 1 & 2
27.9K29 -
1:23:41
Game On!
21 hours ago $8.98 earnedNetflix NFL Christmas Games Preview and Predictions!
51.5K9 -
2:05:07
Darkhorse Podcast
1 day agoWhy Trump Wants Greenland: The 257th Evolutionary Lens with Bret Weinstein and Heather Heying
285K452 -
8:50:58
Right Side Broadcasting Network
1 day ago🎅 LIVE: Tracking Santa on Christmas Eve 2024 NORAD Santa Tracker 🎅
329K46 -
2:48
Steven Crowder
1 day agoCROWDER CLASSICS: What’s This? | Nightmare Before Kwanzaa (Nightmare Before Christmas Parody)
309K12 -
33:49
Quite Frankly
1 day agoThe Christmas Eve Midnight Telethon
113K22 -
2:12:46
Price of Reason
1 day agoAmber Heard BACKS Blake Lively Lawsuit Against Justin Baldoni! Is Disney CEO Bob Iger in TROUBLE?
65.1K24 -
1:01:17
The StoneZONE with Roger Stone
19 hours agoChristmas Edition: Why the Panama Canal is Part of the America First Agenda | The StoneZONE
135K47 -
18:12:15
LFA TV
1 day agoLFA TV CHRISTMAS EVE REPLAY
145K19