Description
Checklist
- I have verified this is the correct repository for opening this issue.
- I have verified no other issues exist related to my request.
Is Your Feature Request Related To A Problem? Please describe.
When Chocolatey is configured to use a proxy repository that is configured on a repository manager, like Nexus, the choco upgrade
command only updates packages that are already installed locally.
This means there is no straightforward way to refresh or update the cache of packages on the proxy repository without having those packages installed on the local machine.
This limitation is problematic especially in air-gapped environments, where:
- The internet-connected machine is used only to retrieve packages from the internet and then transfer them to the isolated environment.
- The packages installed on the internet-connected machine are not used locally and therefore we want to avoid polluting that machine with unnecessary package installations.
- While
choco install --noop
can simulate installation and trigger caching in the proxy, it applies to installation and does not solve the problem of upgrading packages in the proxy without local install. - We want a clear and direct way to update all or specific packages in the proxy cache without need to install packages on machine connected to internet.
Describe The Solution. Why is it needed?
I would like to see a feature (such as a new command or an additional flag) that allows administrators to update or refresh the latest version of specified or all packages via the proxy source, without requiring them to be installed locally.
For example:
choco upgrade all --download-only --source="https://my-nexus/repository/choco-proxy"
choco proxy-refresh --source="https://my-nexus/repository/choco-proxy" --all
Additional Context
No response
Related Issues
No response