Add package maintenance commands: autoremove, clean, cache purge and cache management and doctor.

オープン
#6,623 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Issue-Feature Needs-Triage
Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

Please add the following maintenance commands to WinGet:

  1. winget autoremove : Remove unused dependencies.
  2. winget clean: Clean temporary files and old installer data.
  3. winget cache: Show cache size and location.
  4. winget cache list: List cached installers.
  5. winget cache remove: Remove cache for a specific package.
  6. winget cache purge: Remove all cached installers.
  7. winget cache reset --force: Reset and rebuild the cache.
  8. 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
主要言語
C++
スター
26.6k
フォーク
1.8k
平均マージ
3日 10時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/winget-cli のほかの issue

microsoft/winget-cli の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。