Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent in yum of apt-get update

In Debian derivatives, before installing software from apt using apt-get install xxx, it is necessary to run apt-get update. This refreshes the package lists so that dependencies are resolved correctly, etc.

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

Is it necessary to update yum's package lists before running yum install xxx? If so, how do you do it?

like image 587
sffc Avatar asked Nov 11 '12 03:11

sffc


People also ask

Does yum install update?

YUM is the primary package management tool for installing, updating, removing, and managing software packages in Red Hat Enterprise Linux. YUM performs dependency resolution when installing, updating, and removing software packages.

What can I use instead of yum?

The best alternative is Chocolatey, which is both free and Open Source. Other great apps like YUM Package Manager are Homebrew, Synaptic, pacman (package manager) and npm. YUM Package Manager alternatives are mainly Package Managers but may also be Software Installers or Software Uninstallers.

What is the yum update command?

What is YUM? YUM (Yellowdog Updater Modified) is an open-source command-line as well as graphical-based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrators to easily install, update, remove or search software packages on a system.

How do I upgrade apt-get?

How to Use the sudo apt-get upgrade Command. After running the sudo apt-get update command, in the same terminal window, type in sudo apt-get upgrade , enter your password if necessary, and hit enter.


1 Answers

Most yum commands will refresh the cache automatically if needed. It works differently than apt, which will not update its cache unless the update command is run

like image 155
Bill Ingram Avatar answered Oct 07 '22 06:10

Bill Ingram