Bug 1415687 - [RFE] ability to specify multiple actions in a single transaction
Summary: [RFE] ability to specify multiple actions in a single transaction
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-01-23 12:44 UTC by Jan Pokorný [poki]
Modified: 2017-03-29 20:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-02-06 12:22:35 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1413579 0 unspecified CLOSED Make libglvnd the default libGL.so.1 (and friends) provider 2021-02-22 00:41:40 UTC

Internal Links: 1413579

Description Jan Pokorný [poki] 2017-01-23 12:44:46 UTC
I've run into a following roadblock removal of which should be intuitively
done combining two actions in one transactions:
- downgrading package A with brought package B on its preceding update
- removal of package B

This might have worked natively using "dnf history undo <transaction>"
where transaction refers to the one that previouslu updated A and brought
B as a new dependency, but unfortunately, the old packages are no longer
tracked in the (rawhide) repository.  This means I have to run:

dnf downgrade https://kojipkgs.fedoraproject.org//packages/A/...rpm

explicitly, but that will not remove package B along, not even after
I provide --allowerasing option to dnf.

What I would really need is to run a dnf transaction that is a composition
of two intertwined actions that will result in a dependencies-satisfying
state: downgrade + removal of particular package(s).

There does not seem to be any way to achieve this ATM.

In my particular case, packages are:
- new: 13.0.3-3.fc26, old: 13.0.3-2.fc26
and I am trying to check the circumstances of [bug 1413579 comment 14]

dnf version:

Comment 1 Igor Gnatenko 2017-02-06 12:22:35 UTC
That's dnf shell is for...

It should appear in rawhide in couple of days or week.

Comment 2 Jan Pokorný [poki] 2017-03-29 19:53:01 UTC
Ah, correct, haven't used "yum shell" before but have just run into it
as the only solution for an unrelated problem.  Thanks.

Comment 3 Jan Pokorný [poki] 2017-03-29 20:43:07 UTC
I can conclude that "dnf shell" (in cooperation with its [new, right?]
depsolving) handles some cases yum won't ([bug 1437230]).

Note You need to log in before you can comment on or make changes to this bug.