Differences between yum update and dnf upgrade

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












I'd like to find out if there are differences between yum update and dnf upgrade.
I am using CentOS 7. I haven been using BOTH commands at the same time.
And I just tried it again and this is what happened:



yum update

Loaded plugins: fastestmirror, langpacks
adobe-linux-x86_64 | 2.9 kB 00:00
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): adobe-linux-x86_64/primary_db | 2.7 kB 00:00
(2/2): updates/7/x86_64/primary_db | 6.9 MB 00:02

#############################################################

dnf upgrade

Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
CentOS-7 - Base 45 kB/s | 9.5 MB 03:35 5CentOS-7 - Updates 2.0 MB/s | 9.4 MB 00:04
CentOS-7 - Extras 1.2 MB/s | 929 kB 00:00
Using metadata from Tue Apr 10 16:22:39 2018
Dependencies resolved.
Nothing to do.


To me it seems they are showing different updates. But I could be wrong.







share|improve this question






















  • What are you expecting? Neither is offering any new packages to update. They should be the equivalent command. You just went out of your way and installed dnf on CentOS before it migrated there from Fedora.
    – Aaron D. Marasco
    Apr 11 at 0:01










  • Thank you Aaron. One of the reasons that I installed dnf was because I was told that yum is going outdated, and I should start using dnf. Now I have been curious which one actually shows a better updating results. - Denny
    – Denny
    Apr 11 at 0:13










  • First -- "I haven_'t_ been" or "I have[n] been"?
    – Rich
    Apr 11 at 1:14






  • 1




    Second, yum will not go away while CentOS 7 is still current. The earliest you'll see it go away and be superseded by dnf is with RHEL8/CentOS8.
    – Rich
    Apr 11 at 1:15






  • 1




    Please read these superuser.com/questions/433375/… unix.stackexchange.com/questions/211291/…
    – Dipankar Nalui
    Apr 11 at 1:57














up vote
-1
down vote

favorite












I'd like to find out if there are differences between yum update and dnf upgrade.
I am using CentOS 7. I haven been using BOTH commands at the same time.
And I just tried it again and this is what happened:



yum update

Loaded plugins: fastestmirror, langpacks
adobe-linux-x86_64 | 2.9 kB 00:00
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): adobe-linux-x86_64/primary_db | 2.7 kB 00:00
(2/2): updates/7/x86_64/primary_db | 6.9 MB 00:02

#############################################################

dnf upgrade

Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
CentOS-7 - Base 45 kB/s | 9.5 MB 03:35 5CentOS-7 - Updates 2.0 MB/s | 9.4 MB 00:04
CentOS-7 - Extras 1.2 MB/s | 929 kB 00:00
Using metadata from Tue Apr 10 16:22:39 2018
Dependencies resolved.
Nothing to do.


To me it seems they are showing different updates. But I could be wrong.







share|improve this question






















  • What are you expecting? Neither is offering any new packages to update. They should be the equivalent command. You just went out of your way and installed dnf on CentOS before it migrated there from Fedora.
    – Aaron D. Marasco
    Apr 11 at 0:01










  • Thank you Aaron. One of the reasons that I installed dnf was because I was told that yum is going outdated, and I should start using dnf. Now I have been curious which one actually shows a better updating results. - Denny
    – Denny
    Apr 11 at 0:13










  • First -- "I haven_'t_ been" or "I have[n] been"?
    – Rich
    Apr 11 at 1:14






  • 1




    Second, yum will not go away while CentOS 7 is still current. The earliest you'll see it go away and be superseded by dnf is with RHEL8/CentOS8.
    – Rich
    Apr 11 at 1:15






  • 1




    Please read these superuser.com/questions/433375/… unix.stackexchange.com/questions/211291/…
    – Dipankar Nalui
    Apr 11 at 1:57












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I'd like to find out if there are differences between yum update and dnf upgrade.
I am using CentOS 7. I haven been using BOTH commands at the same time.
And I just tried it again and this is what happened:



yum update

Loaded plugins: fastestmirror, langpacks
adobe-linux-x86_64 | 2.9 kB 00:00
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): adobe-linux-x86_64/primary_db | 2.7 kB 00:00
(2/2): updates/7/x86_64/primary_db | 6.9 MB 00:02

#############################################################

dnf upgrade

Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
CentOS-7 - Base 45 kB/s | 9.5 MB 03:35 5CentOS-7 - Updates 2.0 MB/s | 9.4 MB 00:04
CentOS-7 - Extras 1.2 MB/s | 929 kB 00:00
Using metadata from Tue Apr 10 16:22:39 2018
Dependencies resolved.
Nothing to do.


To me it seems they are showing different updates. But I could be wrong.







share|improve this question














I'd like to find out if there are differences between yum update and dnf upgrade.
I am using CentOS 7. I haven been using BOTH commands at the same time.
And I just tried it again and this is what happened:



yum update

Loaded plugins: fastestmirror, langpacks
adobe-linux-x86_64 | 2.9 kB 00:00
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): adobe-linux-x86_64/primary_db | 2.7 kB 00:00
(2/2): updates/7/x86_64/primary_db | 6.9 MB 00:02

#############################################################

dnf upgrade

Adobe Systems Incorporated 15 kB/s | 1.9 kB 00:00
CentOS-7 - Base 45 kB/s | 9.5 MB 03:35 5CentOS-7 - Updates 2.0 MB/s | 9.4 MB 00:04
CentOS-7 - Extras 1.2 MB/s | 929 kB 00:00
Using metadata from Tue Apr 10 16:22:39 2018
Dependencies resolved.
Nothing to do.


To me it seems they are showing different updates. But I could be wrong.









share|improve this question













share|improve this question




share|improve this question








edited Apr 11 at 2:25









muru

33.3k576140




33.3k576140










asked Apr 10 at 23:37









Denny

4115




4115











  • What are you expecting? Neither is offering any new packages to update. They should be the equivalent command. You just went out of your way and installed dnf on CentOS before it migrated there from Fedora.
    – Aaron D. Marasco
    Apr 11 at 0:01










  • Thank you Aaron. One of the reasons that I installed dnf was because I was told that yum is going outdated, and I should start using dnf. Now I have been curious which one actually shows a better updating results. - Denny
    – Denny
    Apr 11 at 0:13










  • First -- "I haven_'t_ been" or "I have[n] been"?
    – Rich
    Apr 11 at 1:14






  • 1




    Second, yum will not go away while CentOS 7 is still current. The earliest you'll see it go away and be superseded by dnf is with RHEL8/CentOS8.
    – Rich
    Apr 11 at 1:15






  • 1




    Please read these superuser.com/questions/433375/… unix.stackexchange.com/questions/211291/…
    – Dipankar Nalui
    Apr 11 at 1:57
















  • What are you expecting? Neither is offering any new packages to update. They should be the equivalent command. You just went out of your way and installed dnf on CentOS before it migrated there from Fedora.
    – Aaron D. Marasco
    Apr 11 at 0:01










  • Thank you Aaron. One of the reasons that I installed dnf was because I was told that yum is going outdated, and I should start using dnf. Now I have been curious which one actually shows a better updating results. - Denny
    – Denny
    Apr 11 at 0:13










  • First -- "I haven_'t_ been" or "I have[n] been"?
    – Rich
    Apr 11 at 1:14






  • 1




    Second, yum will not go away while CentOS 7 is still current. The earliest you'll see it go away and be superseded by dnf is with RHEL8/CentOS8.
    – Rich
    Apr 11 at 1:15






  • 1




    Please read these superuser.com/questions/433375/… unix.stackexchange.com/questions/211291/…
    – Dipankar Nalui
    Apr 11 at 1:57















What are you expecting? Neither is offering any new packages to update. They should be the equivalent command. You just went out of your way and installed dnf on CentOS before it migrated there from Fedora.
– Aaron D. Marasco
Apr 11 at 0:01




What are you expecting? Neither is offering any new packages to update. They should be the equivalent command. You just went out of your way and installed dnf on CentOS before it migrated there from Fedora.
– Aaron D. Marasco
Apr 11 at 0:01












Thank you Aaron. One of the reasons that I installed dnf was because I was told that yum is going outdated, and I should start using dnf. Now I have been curious which one actually shows a better updating results. - Denny
– Denny
Apr 11 at 0:13




Thank you Aaron. One of the reasons that I installed dnf was because I was told that yum is going outdated, and I should start using dnf. Now I have been curious which one actually shows a better updating results. - Denny
– Denny
Apr 11 at 0:13












First -- "I haven_'t_ been" or "I have[n] been"?
– Rich
Apr 11 at 1:14




First -- "I haven_'t_ been" or "I have[n] been"?
– Rich
Apr 11 at 1:14




1




1




Second, yum will not go away while CentOS 7 is still current. The earliest you'll see it go away and be superseded by dnf is with RHEL8/CentOS8.
– Rich
Apr 11 at 1:15




Second, yum will not go away while CentOS 7 is still current. The earliest you'll see it go away and be superseded by dnf is with RHEL8/CentOS8.
– Rich
Apr 11 at 1:15




1




1




Please read these superuser.com/questions/433375/… unix.stackexchange.com/questions/211291/…
– Dipankar Nalui
Apr 11 at 1:57




Please read these superuser.com/questions/433375/… unix.stackexchange.com/questions/211291/…
– Dipankar Nalui
Apr 11 at 1:57










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










You should first run update, then upgrade.



Read Updating Packages from the Command Line with yum



What is the technical differences between “update” and “upgrade” with yum?




update:



If run without any packages, update will update every currently installed package. If one or more packages or package globs are
specified, Yum will only update the listed packages. While updating
packages, yum will ensure that all dependencies are satisfied. […]



If […] the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for
distro-version changes, for example: upgrading from somelinux 8.0 to
somelinux 9.



upgrade:



Is the same as the update command with the --obsoletes flag set.




In CentOS, what is the difference between yum update and yum upgrade?



Yum vs DNF



Compared to Yum, DNF offers:



  1. Better dependency management

  2. Support Extensions other than Python

  3. Documented API

  4. Lower memory usage

  5. Less automatic synchronization of metadata with repositories, a process that users often complain "happens too often and takes too much time."

See Will DNF Replace Yum?






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f436881%2fdifferences-between-yum-update-and-dnf-upgrade%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    You should first run update, then upgrade.



    Read Updating Packages from the Command Line with yum



    What is the technical differences between “update” and “upgrade” with yum?




    update:



    If run without any packages, update will update every currently installed package. If one or more packages or package globs are
    specified, Yum will only update the listed packages. While updating
    packages, yum will ensure that all dependencies are satisfied. […]



    If […] the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for
    distro-version changes, for example: upgrading from somelinux 8.0 to
    somelinux 9.



    upgrade:



    Is the same as the update command with the --obsoletes flag set.




    In CentOS, what is the difference between yum update and yum upgrade?



    Yum vs DNF



    Compared to Yum, DNF offers:



    1. Better dependency management

    2. Support Extensions other than Python

    3. Documented API

    4. Lower memory usage

    5. Less automatic synchronization of metadata with repositories, a process that users often complain "happens too often and takes too much time."

    See Will DNF Replace Yum?






    share|improve this answer


























      up vote
      0
      down vote



      accepted










      You should first run update, then upgrade.



      Read Updating Packages from the Command Line with yum



      What is the technical differences between “update” and “upgrade” with yum?




      update:



      If run without any packages, update will update every currently installed package. If one or more packages or package globs are
      specified, Yum will only update the listed packages. While updating
      packages, yum will ensure that all dependencies are satisfied. […]



      If […] the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for
      distro-version changes, for example: upgrading from somelinux 8.0 to
      somelinux 9.



      upgrade:



      Is the same as the update command with the --obsoletes flag set.




      In CentOS, what is the difference between yum update and yum upgrade?



      Yum vs DNF



      Compared to Yum, DNF offers:



      1. Better dependency management

      2. Support Extensions other than Python

      3. Documented API

      4. Lower memory usage

      5. Less automatic synchronization of metadata with repositories, a process that users often complain "happens too often and takes too much time."

      See Will DNF Replace Yum?






      share|improve this answer
























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        You should first run update, then upgrade.



        Read Updating Packages from the Command Line with yum



        What is the technical differences between “update” and “upgrade” with yum?




        update:



        If run without any packages, update will update every currently installed package. If one or more packages or package globs are
        specified, Yum will only update the listed packages. While updating
        packages, yum will ensure that all dependencies are satisfied. […]



        If […] the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for
        distro-version changes, for example: upgrading from somelinux 8.0 to
        somelinux 9.



        upgrade:



        Is the same as the update command with the --obsoletes flag set.




        In CentOS, what is the difference between yum update and yum upgrade?



        Yum vs DNF



        Compared to Yum, DNF offers:



        1. Better dependency management

        2. Support Extensions other than Python

        3. Documented API

        4. Lower memory usage

        5. Less automatic synchronization of metadata with repositories, a process that users often complain "happens too often and takes too much time."

        See Will DNF Replace Yum?






        share|improve this answer














        You should first run update, then upgrade.



        Read Updating Packages from the Command Line with yum



        What is the technical differences between “update” and “upgrade” with yum?




        update:



        If run without any packages, update will update every currently installed package. If one or more packages or package globs are
        specified, Yum will only update the listed packages. While updating
        packages, yum will ensure that all dependencies are satisfied. […]



        If […] the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for
        distro-version changes, for example: upgrading from somelinux 8.0 to
        somelinux 9.



        upgrade:



        Is the same as the update command with the --obsoletes flag set.




        In CentOS, what is the difference between yum update and yum upgrade?



        Yum vs DNF



        Compared to Yum, DNF offers:



        1. Better dependency management

        2. Support Extensions other than Python

        3. Documented API

        4. Lower memory usage

        5. Less automatic synchronization of metadata with repositories, a process that users often complain "happens too often and takes too much time."

        See Will DNF Replace Yum?







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 11 at 2:34

























        answered Apr 11 at 2:07









        Dipankar Nalui

        3828




        3828






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f436881%2fdifferences-between-yum-update-and-dnf-upgrade%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?