Join the community today
Become a Member

YUM4/DNF for CentOS 7 updates

Discussion in 'CentOS, Redhat & Oracle Linux News' started by eva2000, Apr 17, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    35,030
    7,731
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,922
    Local Time:
    5:25 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    I am pleased to announce some significant updates to our ConfigManagement Special Interest Group for YUM4. This provides YUM4, based on DNF technology, for testing on CentOS Linux 7/x86_64. These updates are based on feedback from our prior test release last October. It includes signed packages, core DNF plugins, and uses a version of RPM very similar to and compatible with the upcoming version of CentOS 7.5.

    This initiative is based on a partnership with the upstream YUM and DNF maintainers for the future of package management. Our testing thus far indicates no major problems, but we would love to find out how it fits into your existing YUM 3 workflows. So please consider filling out the short survey - your feedback helps us all get better.

    YUM 4 provides significant improvements such as fast dependency resolution and a stable, documented API. See the references below for detailed improvements. We have made every effort to preserve the existing end-user experience that is available with YUM 3. This is the primary reason for making YUM 4 available for testing now.

    “What’s with the YUM4 name?”


    We recognize that we need to enable users to test YUM4 (/usr/bin/yum4) within their existing workflows in order to fully understand compatibility while retaining YUM version 3 (/usr/bin/yum) as the default. Yes, they can both be used on the same system, switching back and forth. We do not recommend this behavior, but it should work with the only known issue being that each version retains its own separate history. So using the Rollback capability is not recommended as each version will not be aware of the other’s history. Note that the YUM4 name is temporary for the coexistence of versions 3 & 4.

    “So, what all has changed?”


    The documentation does a great job explaining the differences in great detail. In short, your existing experience using yum to install, remove, and update are identical. However, there are changes such as some of the plugins and yum utilities are now consolidated into `dnf-plugins-core`. Some of the yum CLI options changed and are either converted for you automatically or silently ignored when that behavior is automatically included. Existing custom plugins written for YUM 3 will not work with YUM 4. Please reference the DNF API Reference and Changes in DNF hook API compared to YUM 3 links for further information.

    “I found a bug, what should I do?”


    Please report any found bugs on Red Hat Bugzilla against Fedora/dnf component (make sure to mention versions and that you use package from CentOS).

    And remember to submit feedback in the short survey to help us understand how it can be improved further.

    “Three step install, get started right away”


    # yum install centos-release-yum4
    # yum install yum4
    # yum4 install dnf-plugins-core

    “I was already testing a previous version of YUM4. How do I update?”


    # yum4 update centos-release-yum4
    # yum4 update yum4




    Many thanks to the CentOS Project team for their assistance in making this happen!

    Continue reading...
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,030
    7,731
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,922
    Local Time:
    5:25 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Interesting news on yum4 - i wouldn't recommend Centmin Mod users try yum4 on production CentOS 7 servers. Test servers only as no idea how Centmin Mod would fair given it expects the normal yum command functionality.
     
  3. Revenge

    Revenge Active Member

    401
    84
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +299
    Local Time:
    8:25 PM
    1.9.x
    10.1.x
    One thing i noticed is that yum4 uses the cache a lot more time than yum.

    In the other day i wanted to update an app and with yum it was there and with yum4 it forced me to do a clean all for the update to show.
     
  4. eva2000

    eva2000 Administrator Staff Member

    35,030
    7,731
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,922
    Local Time:
    5:25 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    maybe yum4 has a different value for metadata_expire than yum ?
     
..