Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure outdated packages get removed from the cache #62

Closed
wants to merge 1 commit into from

Conversation

ryphill
Copy link

@ryphill ryphill commented Jan 23, 2020

If a package has a new version released upstream the prior version
will remain in the cache. Similarly if a package has any
dependencies changed to a different package or removed, those
unneeded packages will remain in the cache as well. Due to this
the slug size will slowly balloon overtime as long as the stack
or Aptfile is not changed.

This tracks the packages that are downloaded during installation
and removes all debs not in that list from the cache archive.
apt-get autoclean is not used because it will only clean out
packages that can no longer be downloaded so not all outdated
versions will be removed. If the cache has version 1, 2, and 3
of a package in it and version 1 is removed from upstream
then version 1 will be removed but 2 will remain.

Relates to #61

If a package has a new version released upstream the prior version
will remain in the cache. Similarly if a package has any
dependencies changed to a different package or removed, those
unneeded packages will remain in the cache as well. Due to this
the slug size will slowly balloon overtime as long as the stack
or Aptfile is not changed.

This tracks the packages that are downloaded during installation
and removes all debs not in that list from the cache archive.
`apt-get autoclean` is not used because it will only clean out
packages that can no longer be downloaded so not all  outdated
versions will be removed. If the cache has version 1, 2, and 3
of a package in it and version 1 is removed from upstream
then version 1 will be removed but 2 will remain.
@jrochkind
Copy link

I'm interested in this! Is there anything that needs to be done or changed to make progress?

@edmorley edmorley closed this Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants