Skip to content

When reinstalling a package, chocolatey always deletes download cache #2697

@slycordinator

Description

@slycordinator

When one reinstalls a package, chocolatey:

  1. Removes the download cache directory at "C:\Users$user\AppData\Local\Temp\chocolatey$package$version" as part of the uninstall function.
    For this, it seems to be calling "remove_cache_for_package(config, packageVersion)" in NugetServices.cs

  2. Then, it redownloads the files that had previously been in the cache

  3. Then, verifies the checksums of the newly downloaded files

This is not optimal as chocolatey could simply reuse the files in the cache directory, verify their checksums, and redownload only when the sums don't match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions