luet icon indicating copy to clipboard operation
luet copied to clipboard

Add support for downgrade and upgrade of packages with different heuristics

Open geaaru opened this issue 5 years ago • 1 comments

Currently luet upgrade upgrades a system to the latest available packages, not taking care of downgrades of any sort. E.g. if a package is downgraded from a repository, the client will refuse to downgrade to that version, but will prefer the local installed one.

The idea is to implement a command like luet upgrade --purge/--sync for:

  • [ ] permit downgrade of packages related to a removed repository (example: foo-1.0@removed-repo and foo-0.2.0@active-repo)

  • [ ] permit downgrade of packages no more available from a specific repository for an error server side

  • [x] permit to upgrade of packages with the same version but with different build date (an option could be --sync-by-date)

geaaru avatar Dec 30 '19 18:12 geaaru

This is the behavior of luet upgrade --universe, we have just to add more tests to it and promote its usage

mudler avatar Nov 10 '20 19:11 mudler