Created
February 13, 2026 01:06
-
-
Save yeiichi/d5413c1ff09d6aff21e2e0d4fb02a8ca to your computer and use it in GitHub Desktop.
Repair and clean apt installed packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. Configures unpacked packages | |
| # 2. Fixes broken dependencies | |
| # 3. Removes unused packages | |
| # 4. Clears out the local repository of retrieved package files | |
| repair-clean: ## | |
| @sudo dpkg --configure -a && \ | |
| sudo apt install -f && \ | |
| sudo apt autoremove -y && \ | |
| sudo apt autoclean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment