apt-get
Quick Reference
Command Name:
apt-get
Category:
file management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Software installation
Install software packages from repositories with dependency handling
- 2
System updates
Keep the system up-to-date with security patches and bug fixes
- 3
Package removal
Safely remove unwanted software while maintaining system integrity
- 4
Source code retrieval
Download source code of packages for inspection or modification
Syntax
apt-get [OPTION]... [FILE]...
Options
| Option | Description |
|---|---|
-l |
Use a long listing format |
-a |
Show hidden entries starting with . |
-h |
Human-readable sizes |
-R |
List subdirectories recursively |
Examples
How to Use These Examples
The examples below show common ways to use the apt-get command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.