Skip to content

Cleanup functionality, where only the latest version of a module is kept #581

Open
@Jawz84

Description

@Jawz84

Summary of the new feature / enhancement

As a user/administrator I want to only keep the latest version of any module, so I don't accumulate many outdated versions on the systems that I manage.

Proposed technical implementation details (optional)

Functional implementation ideas

  1. Update-PsResource -KeepLatestOnly
  2. Uninstall-PsResource -KeepLatest

Technical idea
The GetHelper class could be used and expanded to implement a filter returning all modules except the latest version. With that, the proper uninstalls could be performed (option 2) after installing the newest version (option 1).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions