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

RFE: support install/upgrade/erase in the same transaction from the cli #1125

Open
pmatilai opened this issue Mar 20, 2020 · 3 comments
Open
Labels

Comments

@pmatilai
Copy link
Member

All these years and rpm still cannot perform arbitrary install/update/erase operations in the same transaction from the cli, such as to work your way around conflicting packages. It's plain embarrasing, not to mention extremely annoying.

@pmatilai pmatilai added the RFE label Mar 20, 2020
@ffesti ffesti added this to Needs triage in Ticket Review (Outdated) Apr 1, 2020
@pmatilai
Copy link
Member Author

So the thing is, -i/-e/-U are untouchable because they don't take arguments, they define the mode which then uses the leftover arguments as its arguments, and none of that can be changed without breaking every script and documentation in existence.

Since they can't be changed, they need to be worked around, for example by adding entirely new switches like --add-install <arg> and --add-erase <arg> that can be arbitrarily mixed on the cli, and make -i/-e/-U internally use those. Unraveling rpmInstall() should be good fun 🤪

@pmatilai pmatilai moved this from Needs triage to Yes in Ticket Review (Outdated) Feb 22, 2021
@dmnks
Copy link
Contributor

dmnks commented Feb 22, 2021

Perhaps we could also come up with a simple scheme to specify a list of packages together with the desired action, for example:

--add-packages i:foo i:bar e:baz

Basically, a shorthand for:

--add-install foo --add-install bar --add-erase baz

(Could we use popt's aliasing magic here?)

@dmnks
Copy link
Contributor

dmnks commented Feb 22, 2021

Hmm, although it would probably be easier to just allow a list of package in the --add-install and --add-erase options themselves:

--add-install foo,bar --add-erase baz

@ffesti ffesti removed this from Yes in Ticket Review (Outdated) Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants