What is yum equivalent of 'apt-get update'?

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











up vote
70
down vote

favorite
20












Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index without installing anything.










share|improve this question



























    up vote
    70
    down vote

    favorite
    20












    Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index without installing anything.










    share|improve this question

























      up vote
      70
      down vote

      favorite
      20









      up vote
      70
      down vote

      favorite
      20






      20





      Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index without installing anything.










      share|improve this question















      Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index without installing anything.







      package-management yum apt






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 21 '11 at 20:55

























      asked Jan 21 '11 at 16:32









      Tshepang

      24.8k71180261




      24.8k71180261




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          71
          down vote



          accepted










          The check-update command will refresh the package index and check for available updates:



          yum check-update





          share|improve this answer
















          • 2




            This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
            – SuB
            Apr 15 '17 at 10:56











          • This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
            – rogerdpack
            Jun 21 '17 at 21:59


















          up vote
          22
          down vote













          While yum check-update will check updates for installed packages, if it needs to be refreshed, so will most other commands.



          The command that's strictly the equivalent of apt-get update is yum makecache ... however it's generally not recommended to run that directly, in yum.






          share|improve this answer


















          • 1




            I don't understand the first sentence. Can you rephrase maybe?
            – Tshepang
            Feb 8 '11 at 18:06






          • 7




            It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
            – Mikel
            Feb 8 '11 at 21:02










          • Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
            – socketpair
            Jun 6 '14 at 11:41










          • The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
            – James Antill
            Apr 19 '17 at 16:23

















          up vote
          8
          down vote













          Unfortunately yum check-update by default doesn't pull down changes from remote repositories until yum.conf's metadata_expire parameter has elapsed (default 90m).



          So if you run yum check-update and get this:



          $ sudo yum check-update
          Loaded plugins: fastestmirror, security
          Loading mirror speeds from cached hostfile

          packagename version repo


          This means that check-update is not performing an update, like apt-get update does.



          You can see how long it will take before doing the "auto refresh" that all commands do underneath, by running this: yum repolist enabled -v



          Work around:



          use yum clean expire-cache (or yum clean all) first, then any future yum commands will auto-refresh the cache "when run." . Because future yum commands refresh the cache, this is in practice the same as apt-get update.



          Or change the metadata_expire parameter of yum.conf to less than the default 90min, I guess.






          share|improve this answer


















          • 1




            Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
            – cbmanica
            Aug 27 at 22:46










          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%2f6252%2fwhat-is-yum-equivalent-of-apt-get-update%23new-answer', 'question_page');

          );

          Post as a guest






























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          71
          down vote



          accepted










          The check-update command will refresh the package index and check for available updates:



          yum check-update





          share|improve this answer
















          • 2




            This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
            – SuB
            Apr 15 '17 at 10:56











          • This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
            – rogerdpack
            Jun 21 '17 at 21:59















          up vote
          71
          down vote



          accepted










          The check-update command will refresh the package index and check for available updates:



          yum check-update





          share|improve this answer
















          • 2




            This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
            – SuB
            Apr 15 '17 at 10:56











          • This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
            – rogerdpack
            Jun 21 '17 at 21:59













          up vote
          71
          down vote



          accepted







          up vote
          71
          down vote



          accepted






          The check-update command will refresh the package index and check for available updates:



          yum check-update





          share|improve this answer












          The check-update command will refresh the package index and check for available updates:



          yum check-update






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 21 '11 at 16:52









          wag

          23.8k65247




          23.8k65247







          • 2




            This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
            – SuB
            Apr 15 '17 at 10:56











          • This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
            – rogerdpack
            Jun 21 '17 at 21:59













          • 2




            This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
            – SuB
            Apr 15 '17 at 10:56











          • This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
            – rogerdpack
            Jun 21 '17 at 21:59








          2




          2




          This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
          – SuB
          Apr 15 '17 at 10:56





          This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available. apt-get update refresh index files but yum check-update does not.
          – SuB
          Apr 15 '17 at 10:56













          This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
          – rogerdpack
          Jun 21 '17 at 21:59





          This doesn't work if yum has already been run recently, see some of the other answers for alternatives...
          – rogerdpack
          Jun 21 '17 at 21:59













          up vote
          22
          down vote













          While yum check-update will check updates for installed packages, if it needs to be refreshed, so will most other commands.



          The command that's strictly the equivalent of apt-get update is yum makecache ... however it's generally not recommended to run that directly, in yum.






          share|improve this answer


















          • 1




            I don't understand the first sentence. Can you rephrase maybe?
            – Tshepang
            Feb 8 '11 at 18:06






          • 7




            It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
            – Mikel
            Feb 8 '11 at 21:02










          • Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
            – socketpair
            Jun 6 '14 at 11:41










          • The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
            – James Antill
            Apr 19 '17 at 16:23














          up vote
          22
          down vote













          While yum check-update will check updates for installed packages, if it needs to be refreshed, so will most other commands.



          The command that's strictly the equivalent of apt-get update is yum makecache ... however it's generally not recommended to run that directly, in yum.






          share|improve this answer


















          • 1




            I don't understand the first sentence. Can you rephrase maybe?
            – Tshepang
            Feb 8 '11 at 18:06






          • 7




            It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
            – Mikel
            Feb 8 '11 at 21:02










          • Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
            – socketpair
            Jun 6 '14 at 11:41










          • The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
            – James Antill
            Apr 19 '17 at 16:23












          up vote
          22
          down vote










          up vote
          22
          down vote









          While yum check-update will check updates for installed packages, if it needs to be refreshed, so will most other commands.



          The command that's strictly the equivalent of apt-get update is yum makecache ... however it's generally not recommended to run that directly, in yum.






          share|improve this answer














          While yum check-update will check updates for installed packages, if it needs to be refreshed, so will most other commands.



          The command that's strictly the equivalent of apt-get update is yum makecache ... however it's generally not recommended to run that directly, in yum.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 15 '17 at 11:20









          SuB

          1336




          1336










          answered Feb 8 '11 at 16:40









          James Antill

          1,41988




          1,41988







          • 1




            I don't understand the first sentence. Can you rephrase maybe?
            – Tshepang
            Feb 8 '11 at 18:06






          • 7




            It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
            – Mikel
            Feb 8 '11 at 21:02










          • Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
            – socketpair
            Jun 6 '14 at 11:41










          • The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
            – James Antill
            Apr 19 '17 at 16:23












          • 1




            I don't understand the first sentence. Can you rephrase maybe?
            – Tshepang
            Feb 8 '11 at 18:06






          • 7




            It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
            – Mikel
            Feb 8 '11 at 21:02










          • Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
            – socketpair
            Jun 6 '14 at 11:41










          • The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
            – James Antill
            Apr 19 '17 at 16:23







          1




          1




          I don't understand the first sentence. Can you rephrase maybe?
          – Tshepang
          Feb 8 '11 at 18:06




          I don't understand the first sentence. Can you rephrase maybe?
          – Tshepang
          Feb 8 '11 at 18:06




          7




          7




          It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
          – Mikel
          Feb 8 '11 at 21:02




          It means that other yum commands, e.g. yum upgrade will automatically run yum check-update if necessary. In other words, yum upgrade is basically the same as apt-get update; apt-get upgrade.
          – Mikel
          Feb 8 '11 at 21:02












          Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
          – socketpair
          Jun 6 '14 at 11:41




          Thank you! yum check-update did not helps me against 404 errors. But yum makecache helps! HUGE thanks!
          – socketpair
          Jun 6 '14 at 11:41












          The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
          – James Antill
          Apr 19 '17 at 16:23




          The original was about automatically updating repodata to present the latest information (something apt-get doesn't do, or at least didn't in 2011). After the edit it's now kind of weirdly meaningless :(.
          – James Antill
          Apr 19 '17 at 16:23










          up vote
          8
          down vote













          Unfortunately yum check-update by default doesn't pull down changes from remote repositories until yum.conf's metadata_expire parameter has elapsed (default 90m).



          So if you run yum check-update and get this:



          $ sudo yum check-update
          Loaded plugins: fastestmirror, security
          Loading mirror speeds from cached hostfile

          packagename version repo


          This means that check-update is not performing an update, like apt-get update does.



          You can see how long it will take before doing the "auto refresh" that all commands do underneath, by running this: yum repolist enabled -v



          Work around:



          use yum clean expire-cache (or yum clean all) first, then any future yum commands will auto-refresh the cache "when run." . Because future yum commands refresh the cache, this is in practice the same as apt-get update.



          Or change the metadata_expire parameter of yum.conf to less than the default 90min, I guess.






          share|improve this answer


















          • 1




            Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
            – cbmanica
            Aug 27 at 22:46














          up vote
          8
          down vote













          Unfortunately yum check-update by default doesn't pull down changes from remote repositories until yum.conf's metadata_expire parameter has elapsed (default 90m).



          So if you run yum check-update and get this:



          $ sudo yum check-update
          Loaded plugins: fastestmirror, security
          Loading mirror speeds from cached hostfile

          packagename version repo


          This means that check-update is not performing an update, like apt-get update does.



          You can see how long it will take before doing the "auto refresh" that all commands do underneath, by running this: yum repolist enabled -v



          Work around:



          use yum clean expire-cache (or yum clean all) first, then any future yum commands will auto-refresh the cache "when run." . Because future yum commands refresh the cache, this is in practice the same as apt-get update.



          Or change the metadata_expire parameter of yum.conf to less than the default 90min, I guess.






          share|improve this answer


















          • 1




            Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
            – cbmanica
            Aug 27 at 22:46












          up vote
          8
          down vote










          up vote
          8
          down vote









          Unfortunately yum check-update by default doesn't pull down changes from remote repositories until yum.conf's metadata_expire parameter has elapsed (default 90m).



          So if you run yum check-update and get this:



          $ sudo yum check-update
          Loaded plugins: fastestmirror, security
          Loading mirror speeds from cached hostfile

          packagename version repo


          This means that check-update is not performing an update, like apt-get update does.



          You can see how long it will take before doing the "auto refresh" that all commands do underneath, by running this: yum repolist enabled -v



          Work around:



          use yum clean expire-cache (or yum clean all) first, then any future yum commands will auto-refresh the cache "when run." . Because future yum commands refresh the cache, this is in practice the same as apt-get update.



          Or change the metadata_expire parameter of yum.conf to less than the default 90min, I guess.






          share|improve this answer














          Unfortunately yum check-update by default doesn't pull down changes from remote repositories until yum.conf's metadata_expire parameter has elapsed (default 90m).



          So if you run yum check-update and get this:



          $ sudo yum check-update
          Loaded plugins: fastestmirror, security
          Loading mirror speeds from cached hostfile

          packagename version repo


          This means that check-update is not performing an update, like apt-get update does.



          You can see how long it will take before doing the "auto refresh" that all commands do underneath, by running this: yum repolist enabled -v



          Work around:



          use yum clean expire-cache (or yum clean all) first, then any future yum commands will auto-refresh the cache "when run." . Because future yum commands refresh the cache, this is in practice the same as apt-get update.



          Or change the metadata_expire parameter of yum.conf to less than the default 90min, I guess.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 28 at 14:47

























          answered Jun 21 '17 at 21:58









          rogerdpack

          271312




          271312







          • 1




            Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
            – cbmanica
            Aug 27 at 22:46












          • 1




            Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
            – cbmanica
            Aug 27 at 22:46







          1




          1




          Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
          – cbmanica
          Aug 27 at 22:46




          Not sure why this answer is languishing at the bottom. This seems like the obvious and simple answer.
          – cbmanica
          Aug 27 at 22:46

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f6252%2fwhat-is-yum-equivalent-of-apt-get-update%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)