Replies: 2 comments 1 reply
-
There is not really an easy way how to replicate the CLI output, especially from Python. Basically you have to use callbacks, simple example to get you started is in the tutorial.
Regarding the failing snippet I believe the problem is that you don't load the In general the functions have return values and there are ways how to see what went wrong though I understand it is harder without docs and again you would have to look into the cpp dnf5/libdnf5 code to see how to do it. |
Beta Was this translation helpful? Give feedback.
-
On a side note, these are other differences I found with respect to dnf-3:
|
Beta Was this translation helpful? Give feedback.
-
With dnf-3, this is the minimal workflow to install a package matching the CLI output:
Saving this as
test.py
and executing, I get:as expected. Now, I tried to do the same with dnf5 following the current docs, and this is where I got so far:
The first question is how do I replicate the CLI output here, like before. Buf if I execute this, I get:
$ python3 test5.py $ vim bash: vim: command not found
No output, as expected, but the installation didn't work. So the second question is what am I missing?
Beta Was this translation helpful? Give feedback.
All reactions