-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Labels
Area-UpdateResolution-DuplicateThis issue or pull request already existsThis issue or pull request already existsfeature_request
Description
Summary of the new feature / enhancement
When updating PowerShell modules with PowerShellGet, it would be great if the Update-PSResource
cmdlet also handled the trash, that is optionally removing old versions of modules at the same time.
This could at least be an optional feature, maybe a switch?
I'd like this switch to be available and working, both when feeding a given module to update, but also if updating all modules.
The lack of this feature build in made me start work on this huge script some years ago.
I still use it. But if PowerShellGet v3 could get this cleanup functionality built in, it would be much better. :)
Proposed technical implementation details (optional)
Implement a switch for whether old versions should be nuked when a new version get's installed.
Default behavior could be either IMO, as long as we have a switch.
- Least destructive change would be to not change the default behavior I guess.
Metadata
Metadata
Assignees
Labels
Area-UpdateResolution-DuplicateThis issue or pull request already existsThis issue or pull request already existsfeature_request