Skip to content

Uninstall-Module: add ability to uninstall dependent modules #3379

Description

@dmilov

The use-case is to upgrade multiple modules to their new version. When there is a module with number of dependent modules Install-Module allows installing all dependent modules at once. If I need to upgrade the modules to new version with no willing to have multiple versions of certain module I'd expect to be able to uninstall module with all dependent modules at ones using Uninstall-Module.

Here is an example

Module A with version 1.0
Module B with version 1.0, which is required module in the A module's manifest

This call:
Install-Module -Name A -RequiredVersion 1.0

installs both A and B

When new versions of the above modules are published

Module A with version 2.0
Module B with version 2.0

I'd like to be able to

Uninstall-Module -Name A
Install-Module -Name A -RequiredVersion 2.0

and as a result to have installed only

A version 2.0
B version 2.0

Activity

  1. added
    WG-Enginecore PowerShell engine, interpreter, and runtime
    Issue-Enhancementthe issue is more of a feature request than a bug
    on Mar 21, 2017
  2. iSazonov commented on Mar 21, 2017

    @iSazonov
    Collaborator

    We have related Issue #2505 "Reloading module does not reload submodules"
    If we fix this we fix "upgrade multiple modules to their new version" too.

  3. joeyaiello commented on Apr 11, 2017

    @joeyaiello
    Contributor

    This issue was moved to PowerShell/PowerShellGet#114

  4. joeyaiello commented on Apr 11, 2017

    @joeyaiello
    Contributor

    FYI moved this to PowerShellGet as it'd have to implemented in that module rather than PowerShell itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-PowerShellGetspecific to PowerShellGet moduleIssue-Enhancementthe issue is more of a feature request than a bugResolution-ExternalThe issue is caused by external component(s).WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions