Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] PowerShell module updates should remove previous versions #3123

Open
2 tasks done
clairernovotny opened this issue Dec 23, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Milestone

Comments

@clairernovotny
Copy link

Please confirm these before moving forward.

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template.

Describe the new feature

By default, Update-PSResource does not uninstall previous versions. This can lead to many old versions existing.

There is an uninstall command that would work: Uninstall-PSResource. It accepts NuGet-style version ranges, enabling all prior versions to be easily removed. For example, Uninstall-PSResource -Name Microsoft.Graph -Version "(,2.25.0)", will remove all prior versions of Microsoft.Graph, assuming 2.25.0 is the current version.

Describe how this new feature could help users

This would help prevent many old versions of PowerShell modules from cluttering and slowing things down.

@clairernovotny clairernovotny added the new-feature A new feature that could be useful in WingetUI label Dec 23, 2024
@marticliment marticliment modified the milestones: Bugs, Features Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants