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

dnf a new package provider for fedora 22 #23553

Closed
aboe76 opened this issue May 11, 2015 · 9 comments
Closed

dnf a new package provider for fedora 22 #23553

aboe76 opened this issue May 11, 2015 · 9 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior P1 Priority 1 Platform Relates to OS, containers, platform-based utilities like FS, system based apps
Milestone

Comments

@aboe76
Copy link
Contributor

aboe76 commented May 11, 2015

fedora 22 will use dnf by default and won't be shipping yum:
http://dnf.baseurl.org/2015/05/11/yum-is-dead-long-live-dnf/

more information
http://dnf.baseurl.org/2015/05/11/dnf-1-0-and-dnf-plugins-core-0-1-7-released/

reference use case python api:
http://dnf.readthedocs.org/en/latest/use_cases.html#id6

@jfindlay jfindlay added Feature new functionality including changes to functionality and code refactors, etc. severity-high 2nd top severity, seen by most users, causes major problems Platform Relates to OS, containers, platform-based utilities like FS, system based apps labels May 12, 2015
@jfindlay jfindlay added this to the Approved milestone May 12, 2015
@jfindlay
Copy link
Contributor

@aboe76, thanks for the report.

@aboe76
Copy link
Contributor Author

aboe76 commented May 29, 2015

Fedora 22 has been released:
http://fedoramagazine.org/fedora-22-released

salt grains:

os:
        Fedora
    os_family:
        RedHat
    osarch:
        x86_64
    oscodename:
        Twenty Two
    osfinger:
        Fedora-22
    osfullname:
        Fedora
    osmajorrelease:
        22
    osrelease:
        22
    osrelease_info:
        - 22

@aboe76
Copy link
Contributor Author

aboe76 commented May 29, 2015

so far testing 2015.5.0 with fedora 22 is ok, package installation works because
server edition has still a /usr/bin/yum which redirects to /usr/bin/dnf

yum
Yum command has been deprecated, redirecting to '/usr/bin/dnf '.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

see also the release notes:

DNF (Dandified YUM) replaced YUM (Yellowdog Updater, Modified). DNF and Hawkey are the package managers in Fedora 22. DNF working style is very much similar to YUM but re-engineered to get optimal performance. Server and cloud users can continue to work with yum but with the message that “YUM is Deprecated and DNF is the latest Package Manager”.

haven't tried the fedora 22 workstation or cloud version to verify this.

another source is man yum2dnf:
https://www.mankier.com/8/yum2dnf

@CauanCabral
Copy link

I can confirm Fedora 22 Workstation have problem with pkg module:

State

git-company-dev:
  git.latest:
    - name: git@git.company.com:company/project.git
    - rev: develop
    - target: /tmp/company_develop/
    - identity: /root/.ssh/ssh_key
    - require:
        - pkg: git
        - ssh_known_hosts: git.company.com

Response

----------
    ID: git-company-dev
    Function: git.latest
        Name: git@git.company.com:company/project.git
      Result: False
     Comment: The following requisites were not found:
                                 require:
                                     pkg: git
     Started: 
    Duration: 
     Changes:

@jfindlay jfindlay added P1 Priority 1 and removed severity-high 2nd top severity, seen by most users, causes major problems labels Jul 29, 2015
@ngrennan-inflection
Copy link

I created PR #26572 to start this issue, #23553, and fix #26340 .

Thanks go to terminalmage for writing the helper function, and iggy for giving ideas.

@amendlik
Copy link
Contributor

Do we need another issue to remove the package dependency on yum/yum-utils?

@terminalmage
Copy link
Contributor

Salt supports dnf starting with version 2015.8.0. In the develop branch, reliance on yum-utils has been removed, so this is not going to be an issue moving forward.

As for the 2015.5 release cycle, since we have packages in the Fedora 23 repos (Fedora 22 will display a warning but still does work if the yum command is run) I will need to backport the dnf support from 2015.8 into the 2015.5 branch and use the repoquery plugin for dnf, thus allowing future 2015.5 and 2015.8 releases for Fedora to use dnf-plugins-core instead of yum-utils.

@terminalmage terminalmage modified the milestones: B 5, Approved Jan 19, 2016
@terminalmage terminalmage self-assigned this Jan 19, 2016
@terminalmage terminalmage added Bug broken, incorrect, or confusing behavior and removed Feature new functionality including changes to functionality and code refactors, etc. labels Jan 19, 2016
@meggiebot meggiebot modified the milestones: B 4, B 5 Jan 20, 2016
@terminalmage terminalmage modified the milestones: B 5, B 4 Jan 20, 2016
@terminalmage
Copy link
Contributor

DNF support has been backported to the 2015.5 branch in #30484. This did not make it in time for 2015.5.9 to be released, but when I build the 2015.5.9 RPMs for Fedora I will patch the source to include the new code from that pull request.

@terminalmage
Copy link
Contributor

#30484 was merged and Fedora RPMs have been built and submitted to testing. They should make their way into the stable repos in the next 8-10 days.

Within the next 2 days or so, Fedora 22, 23, and Rawhide users will be able to upgrade using dnf --enablerepo=updates-testing install salt-minion

Marking this as closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior P1 Priority 1 Platform Relates to OS, containers, platform-based utilities like FS, system based apps
Projects
None yet
Development

No branches or pull requests

7 participants