Add package maintenance commands: autoremove, clean, cache purge and cache management and doctor.
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
This is a large feature request bundling several commands (autoremove, clean, cache management, doctor) with no implementation detail about where cache or dependency tracking lives in the codebase. Start by reading how existing commands are registered under src/AppInstallerCLICmds and how the installer cache directory is managed, then discuss scope with maintainers — this likely needs design work and maintainer buy-in before any code. Done would mean accepted command specs and then incremental implementation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Relevant area(s)
WinGet CLI
Description of the new feature / enhancement
Please add the following maintenance commands to WinGet:
- winget autoremove : Remove unused dependencies.
- winget clean: Clean temporary files and old installer data.
- winget cache: Show cache size and location.
- winget cache list: List cached installers.
- winget cache remove: Remove cache for a specific package.
- winget cache purge: Remove all cached installers.
- winget cache reset --force: Reset and rebuild the cache.
- winget doctor: Checks corrupted cache, broken package registrations, source issues, and installation problems.
Benefits:
- Saves disk space.
- Simplifies package maintenance.
- Better for power users and developers.
Proposed technical implementation details
- Track downloaded installer cache.
- Track package dependencies installed through WinGet.
- Add safe cleanup and dependency removal.
- Support --whatif for previewing changes.
- Display reclaimed disk space after cleanup.
- Support JSON output for automation.
Example:
winget autoremove --whatif winget clean --whatif winget cache purge --whatif
Add:
winget doctor
Checks:
- Corrupted cache
- Broken package registrations
- Source issues
- Installation problems
- Lingua principale
- C++
- Stelle
- 26.6k
- Fork
- 1.8k
- Merge medio
- 3g 10h
- PR unite (30g)
- 41
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/winget-cli
-
Issue-Docs Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
microsoft/winget-cli#6692 ·
I maintainer di solito rispondono entro 2 giorni
-
Issue-Docs Possible-Duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
microsoft/winget-cli#6493 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
WinGetSourceCreator: PackWithMappingFile should verify makeappx.exe exists before invoking itApertaIssue-Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/winget-cli#6427 ·
I maintainer di solito rispondono entro 2 giorni
-
Issue-Docs msstore
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
microsoft/winget-cli#6331 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Command-Source Issue-Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/winget-cli#6148 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di microsoft/winget-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stratum-mining/sv2-tp#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Sign up button opens the Sign in page instead of the Sign up page for Enterprise edition serversApertaauth bug ui/ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
MerginMaps/mobile#4795 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
HarperFast/rocksdb-js#1118 ·
I maintainer di solito rispondono entro 1 giorno
-
bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
26.04 bug dark-mode Easy Hack impress symptom: visual
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CollaboraOnline/online#16421 · 1 commento ·