Skip to content

Commit f374f7c

Browse files
committed
Add new apt list rm command & apt clean description to Ubuntu article
This matches the previous commits' additions to the Pop!_OS article.
1 parent 0287765 commit f374f7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/package-manager-ubuntu.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ If your system complains about a failed upgrade, package manager conflicts, brok
2424

2525
```bash
2626
sudo apt clean
27+
sudo rm -r /var/lib/apt/lists/*
2728
sudo apt update
2829
sudo dpkg --configure -a
2930
sudo apt install -f
@@ -33,7 +34,8 @@ sudo apt autoremove --purge
3334

3435
## What Do These Do?
3536

36-
- `apt clean` - The `clean` command clears out the local repository of retrieved package files.
37+
- `apt clean` - The `clean` command clears out the local repository of retrieved package files (including older versions) from `/var/cache/apt/archives/`.
38+
- `sudo rm -r /var/lib/apt/lists/*` - This command clears all locally cached apt repository metadata (package lists and index files). This forces apt to fully re-fetch and rebuild its database of available packages on the next `apt update`.
3739
- `apt update` - the `update` option fetches indexes from all configured sources. These indexes are used by other apt options to determine which packages can be upgraded or installed.
3840
- `dpkg --configure -a` - The `--configure -a` command configures any unpacked but not yet configured packages.
3941
- `apt install -f` - The `-f` option attempts to correct broken dependencies

0 commit comments

Comments
 (0)