Remove orphaned without distupgrade
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 609
- Forks
- 177
- PR merge metrics
- No merged PRs in 30d
Description
Im using libsolv in a capacity where I provide everything I want to install upfront. When I do not specify a certain package and it is provided in the list of installed package I want it to be removed. It was my understanding that SOLVER_DROP_ORPHANED would yield that behavior but it appears it only makes sense to use this with the SOLVER_DISTUPGRADE flag.
What I want to achieve is the following:
1) "install" A B -> install package A and B in the environment
2) "install" A -> B is no longer specified so it should be removed
I also want A to remain the same version if it doesn't need to be upgraded. Ideally, I want to derive this information purely from the currently installed packages.
What would be the best way to achieve this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by reading the SOLVER_DROP_ORPHANED and SOLVER_DISTUPGRADE documentation and implementation, then reproduce the A/B installation sequence against the current package state. Done means establishing or implementing a way to remove omitted packages while preserving A's version when no upgrade is needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100