Bug 20131 - Migrate package installation engine to DNF
Summary: Migrate package installation engine to DNF
Status: ASSIGNED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Low enhancement
Target Milestone: ---
Assignee: Angelo Naselli
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 16002
  Show dependency treegraph
 
Reported: 2017-01-16 12:03 CET by Neal Gompa
Modified: 2022-05-07 22:24 CEST (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Neal Gompa 2017-01-16 12:03:13 CET
Description of problem:

In order to complete our migration from urpmi to DNF, the installer needs to be converted to use DNF. The most obvious way to pull this off would be to move to using libdnf (the core library for DNF, and the library used by PackageKit-Dnf backend).

This will also solve a number of problems related to sanely managing local and online repository configuration for classic installs, as well as giving us a must faster installation process for network installs, among other things.
Neal Gompa 2017-01-16 12:03:41 CET

Assignee: bugsquad => thierry.vignaud
Target Milestone: --- => Mageia 7
Priority: Normal => release_blocker

Neal Gompa 2017-01-16 12:04:05 CET

Blocks: (none) => 16002

Comment 1 Neal Gompa 2017-01-16 12:11:31 CET
Since libdnf is a glib2 backed library, it supports GObject Introspection as an bindings engine, so in addition to the hand-crafted Hawkey Python binding, there are automatically generated Python and Perl bindings through G-I. For using libdnf in the installer, Perl through G-I is one way to go.

The other way would be to either use python-hawkey or the higher level DNF API through PyPerl or Inline::Python from Perl. This is also useful if the goal is to gradually transition the installer from Perl to Python.
Samuel Verschelde 2017-01-16 14:32:41 CET

Priority: release_blocker => High

Dave Hodgins 2017-07-06 23:01:04 CEST

CC: (none) => davidwhodgins

Ulrich Beckmann 2017-10-31 12:14:20 CET

CC: (none) => bequimao.de

Comment 2 Neal Gompa 2018-04-22 20:33:32 CEST
This is currently in progress. Angelo Naselli has started working on this[1][2].

[1]: https://gitlab.com/mdklinux/Mageia/drakx/tree/topic/switching_to_dnf
[2]: https://github.com/manatools/python-manatools-pkgs

Summary: Migrate package installation engine to libdnf => Migrate package installation engine to DNF
Status: NEW => ASSIGNED
Assignee: thierry.vignaud => anaselli

Comment 3 Aurelien Oudelet 2020-09-19 18:09:10 CEST
Hi,
This is High priority bug for a good reason.

Making Mageia even better than ever is best direction.
In order to do right thing, this bug should be examined and fixed as soon as possible.

Packagers, please make the status to Assigned when you are working on this.
Feel free to reassign the bug if bad-triaged. Also, if bug is old, please close it.

On October 1st 2020, we will drop priority to normal.
Comment 4 Bruno Cornec 2020-10-09 21:28:07 CEST
I don' t understand why mirgating from urpmi to dnf is a high priority. THis has not been discussed on the dev ML and I think it's contrary to what other des think we should do.

CC: (none) => bruno

Comment 5 Angelo Naselli 2020-10-09 21:41:27 CEST
I don't understand your sarcasm. this bug is open since 2017 :p
Comment 6 Aurelien Oudelet 2020-10-09 21:45:44 CEST
My comment 3 was done as mass commit on all High priority report. I haven't seen all of these in particular. Feel free to drop priority.
My intend is to ping all already High priority bug report.
Comment 7 Dave Hodgins 2020-10-09 23:27:17 CEST
Priority changed to be more appropriate.

Priority: High => Low
Severity: major => enhancement

Comment 8 Bruno Cornec 2020-10-10 15:49:41 CEST
(In reply to Angelo Naselli from comment #5)
> I don't understand your sarcasm. this bug is open since 2017 :p

It's not a sarcasm, it's a matter of strategy for Mageia. I've never seen the strategy to drop urpmi in favour of dnf. And in that case, I'm not sure I'd like to continue working with it then. SO thanks David to clarify this is not considered as a high priority for us as a community.
Morgan Leijström 2020-10-10 23:25:59 CEST

Target Milestone: Mageia 7 => ---
CC: (none) => fri

Comment 9 Angelo Naselli 2020-10-10 23:27:25 CEST
You know I like you, buy as one goes one comes...
I can't see any real strategies to be honest but that is OT here
Comment 10 Morgan Leijström 2020-10-10 23:32:30 CEST
No offense, and we like you too :)

Just kind of updating.

https://wiki.mageia.org/en/Feature:Switch_to_DNF
State target Mageia 8, and 0% so far

Seems we need decision and/or more manpower?
Comment 11 Morgan Leijström 2020-10-10 23:34:19 CEST
Better link:
https://wiki.mageia.org/en/Feature:Port_installer_to_use_DNF
Comment 12 Angelo Naselli 2020-10-11 00:00:17 CEST
(In reply to Morgan Leijström from comment #10)
> No offense, and we like you too :)
No worries I gave up years ago :p

> 
> Just kind of updating.
> 
> https://wiki.mageia.org/en/Feature:Switch_to_DNF
> State target Mageia 8, and 0% so far
> 
> Seems we need decision and/or more manpower?

https://github.com/rpm-software-management/dnf-URPM
https://gitlab.com/mdklinux/Mageia/drakx/commits/topic/switching_to_dnf

And I gave up there too, I've seen no one giving any suggestions or help,
Mageia is a great community but sooner or later can't be  composed by users only.
I'm always ready to help, but i decided to focus my little spare time in things in wihch i have fun and enjoy.

And btw i had to fight enough with our beautiful installer and rescue to get two systems working with mageia 7 so please don't say all is ok, I'm not a low skilled user...
Comment 13 Neal Gompa 2020-10-15 05:36:54 CEST
(In reply to Angelo Naselli from comment #12)
> (In reply to Morgan Leijström from comment #10)
> > No offense, and we like you too :)
> No worries I gave up years ago :p
> 
> > 
> > Just kind of updating.
> > 
> > https://wiki.mageia.org/en/Feature:Switch_to_DNF
> > State target Mageia 8, and 0% so far
> > 
> > Seems we need decision and/or more manpower?
> 
> https://github.com/rpm-software-management/dnf-URPM
> https://gitlab.com/mdklinux/Mageia/drakx/commits/topic/switching_to_dnf
> 
> And I gave up there too, I've seen no one giving any suggestions or help,
> Mageia is a great community but sooner or later can't be  composed by users
> only.
> I'm always ready to help, but i decided to focus my little spare time in
> things in wihch i have fun and enjoy.
> 
> And btw i had to fight enough with our beautiful installer and rescue to get
> two systems working with mageia 7 so please don't say all is ok, I'm not a
> low skilled user...

I haven't *completely* given up, but I had refocused on trying to get an official Perl binding for DNF to replace all of perl-URPM and urpmi usage with perl-libdnf.

I've got a COPR project[1] with experimental snapshot builds (that are *not* ready for the distro itself yet) that I'm periodically updating as I track development upstream that can be used for porting DrakX over.

[1]: https://copr.fedorainfracloud.org/coprs/ngompa/dnf5-mga/
Neal Gompa 2020-10-15 05:37:27 CEST

CC: (none) => thierry.vignaud

Comment 14 Morgan Leijström 2020-10-15 09:36:19 CEST
OK, thank you for your time, link, and work :)
Florian Hubold 2022-05-07 22:24:28 CEST

CC: (none) => doktor5000


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