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

Clash Royale CLAN TAG#URR8PPP
up vote
70
down vote
favorite
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
add a comment |Â
up vote
70
down vote
favorite
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
add a comment |Â
up vote
70
down vote
favorite
up vote
70
down vote
favorite
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
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
package-management yum apt
edited Jan 21 '11 at 20:55
asked Jan 21 '11 at 16:32
Tshepang
24.8k71180261
24.8k71180261
add a comment |Â
add a comment |Â
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
2
This command allows you to determine whether any updates are available for your installed packages.yumreturns a list of all package updates from all repositories if any are available.apt-get updaterefresh index files butyum check-updatedoes not.
â SuB
Apr 15 '17 at 10:56
This doesn't work ifyumhas already been run recently, see some of the other answers for alternatives...
â rogerdpack
Jun 21 '17 at 21:59
add a comment |Â
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.
1
I don't understand the first sentence. Can you rephrase maybe?
â Tshepang
Feb 8 '11 at 18:06
7
It means that otheryumcommands, e.g.yum upgradewill automatically runyum check-updateif necessary. In other words,yum upgradeis basically the same asapt-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
add a comment |Â
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.
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
add a comment |Â
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
2
This command allows you to determine whether any updates are available for your installed packages.yumreturns a list of all package updates from all repositories if any are available.apt-get updaterefresh index files butyum check-updatedoes not.
â SuB
Apr 15 '17 at 10:56
This doesn't work ifyumhas already been run recently, see some of the other answers for alternatives...
â rogerdpack
Jun 21 '17 at 21:59
add a comment |Â
up vote
71
down vote
accepted
The check-update command will refresh the package index and check for available updates:
yum check-update
2
This command allows you to determine whether any updates are available for your installed packages.yumreturns a list of all package updates from all repositories if any are available.apt-get updaterefresh index files butyum check-updatedoes not.
â SuB
Apr 15 '17 at 10:56
This doesn't work ifyumhas already been run recently, see some of the other answers for alternatives...
â rogerdpack
Jun 21 '17 at 21:59
add a comment |Â
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
The check-update command will refresh the package index and check for available updates:
yum check-update
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.yumreturns a list of all package updates from all repositories if any are available.apt-get updaterefresh index files butyum check-updatedoes not.
â SuB
Apr 15 '17 at 10:56
This doesn't work ifyumhas already been run recently, see some of the other answers for alternatives...
â rogerdpack
Jun 21 '17 at 21:59
add a comment |Â
2
This command allows you to determine whether any updates are available for your installed packages.yumreturns a list of all package updates from all repositories if any are available.apt-get updaterefresh index files butyum check-updatedoes not.
â SuB
Apr 15 '17 at 10:56
This doesn't work ifyumhas 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
add a comment |Â
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.
1
I don't understand the first sentence. Can you rephrase maybe?
â Tshepang
Feb 8 '11 at 18:06
7
It means that otheryumcommands, e.g.yum upgradewill automatically runyum check-updateif necessary. In other words,yum upgradeis basically the same asapt-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
add a comment |Â
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.
1
I don't understand the first sentence. Can you rephrase maybe?
â Tshepang
Feb 8 '11 at 18:06
7
It means that otheryumcommands, e.g.yum upgradewill automatically runyum check-updateif necessary. In other words,yum upgradeis basically the same asapt-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
add a comment |Â
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.
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.
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 otheryumcommands, e.g.yum upgradewill automatically runyum check-updateif necessary. In other words,yum upgradeis basically the same asapt-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
add a comment |Â
1
I don't understand the first sentence. Can you rephrase maybe?
â Tshepang
Feb 8 '11 at 18:06
7
It means that otheryumcommands, e.g.yum upgradewill automatically runyum check-updateif necessary. In other words,yum upgradeis basically the same asapt-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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password