Equivalent to yum apt-get update

On Debian derivatives, you must run apt-get update before installing software from apt using apt-get install xxx . This updates the package lists so that dependencies are resolved correctly, etc.

When using an RHEL instance, out of habit, I ran yum update before installing the software. However, it was only to find that yum update to update all my packages, instead of, or perhaps in addition to updating the package lists locally, in apt-get update .

Do I need to update yum package lists before running yum install xxx ? If so, how do you do it?

+4
source share
1 answer

Most yum commands automatically update the cache if necessary. It works differently than apt, which will not update its cache if the update command is not executed

+6
source

Source: https://habr.com/ru/post/1445289/


All Articles