Checklist
Is Your Feature Request Related To A Problem? Please describe.
No. More a, help us match chocolatey dependency gathering info with our scripts.
Describe The Solution. Why is it needed?
I would love to have a command like choco explain <package> or choco why <package> that shows the depenency tree of why some chocolatey package is installed. Even better if it also included version requirement info to help track down why a package can't upgrade because of other dependency.
Being able to pull the info with the cli would allow us to parse this (Json / xml / tree /A like output?) and understand what chocolatey understands in our scripts and such.
User Story
-
As a developer, I want to run choco why <package> or choco explain <package> so I can see which installed packages require it.
-
As a build engineer, I want a cached dependency graph so queries run instantly, since repeated choco info calls are slow.
-
As a developer, I want to see the full dependency chain so I understand root cause.
-
As a developer, I want to know why a package version is constrained so I can troubleshoot upgrades.
-
As a developer, I want to test upgrading a package so I can see what would break.
-
As a build engineer, I want to identify orphaned packages so I can clean up unused installs.
-
As a developer, I want meta-packages (e.g., git vs git.install, dotnet-sdk vs versioned SDKs) to be resolved so I can understand the real install relationships.
Additional Context
No response
Acceptance Criteria
Related Issues
No response
Checklist
Is Your Feature Request Related To A Problem? Please describe.
No. More a, help us match chocolatey dependency gathering info with our scripts.
Describe The Solution. Why is it needed?
I would love to have a command like
choco explain <package>orchoco why <package>that shows the depenency tree of why some chocolatey package is installed. Even better if it also included version requirement info to help track down why a package can't upgrade because of other dependency.Being able to pull the info with the cli would allow us to parse this (Json / xml /
tree /Alike output?) and understand what chocolatey understands in our scripts and such.User Story
As a developer, I want to run
choco why <package>orchoco explain <package>so I can see which installed packages require it.As a build engineer, I want a cached dependency graph so queries run instantly, since repeated
choco infocalls are slow.As a developer, I want to see the full dependency chain so I understand root cause.
As a developer, I want to know why a package version is constrained so I can troubleshoot upgrades.
As a developer, I want to test upgrading a package so I can see what would break.
As a build engineer, I want to identify orphaned packages so I can clean up unused installs.
As a developer, I want meta-packages (e.g.,
gitvsgit.install,dotnet-sdkvs versioned SDKs) to be resolved so I can understand the real install relationships.Additional Context
No response
Acceptance Criteria
choco why <package>/choco explain <package>returns all installed packages that directly or transitively depend on the target packagechoco infocalls and enable fast queries--target-version) reports all blocking packages and their constraints*.install, rollups likedotnet-sdk) are resolved and included in dependency chains (e.g.,git↔git.install,dotnet-sdk→dotnet-10.0-sdk)Related Issues
No response