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

Đang mở
#6,623 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
26.6k
Fork
1.8k
Merge trung bình
3 ngày 10 giờ
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/winget-cli

Tất cả issue của microsoft/winget-cli

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.