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

Feature Request: paccache style purge options #93

Open
fhteagle opened this issue Sep 20, 2023 · 1 comment
Open

Feature Request: paccache style purge options #93

fhteagle opened this issue Sep 20, 2023 · 1 comment

Comments

@fhteagle
Copy link

Recent convert to pacoloco here.

I have one pacoloco docker container on my router/file server host that serves requests to half a dozen machines of various architectures on my LAN. I prefer to keep only the latest 2 copies of any given package for each arch. Of course I can run paccache -r -k2 via cron, systemd timer, etc. against each pacoloco per arch cache directory. But it would be more elegant if pacoloco handled this itself. Time-based purging or no purging is the only option currently, correct? How hard would it be to have pacoloco allow paccache style purge options on its own cache dirs instead?

Thanks.

@anatol
Copy link
Owner

anatol commented Sep 20, 2023

There is indeed no way to perform paccache style purging right now. But it should be doable by adding such functionality into https://github.com/anatol/pacoloco/blob/master/purge.go

It could be a great task for a first-time project contributor.

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

No branches or pull requests

2 participants