Rpm vs yum difference

Hello all,

Is anyone able to list the differences between rpm and yum? I’ve also come across apt-get so as a beginner it’s confusing which one to use and when

Thanks!

Yum is built on top of rpm. Yum is a bit easier to work with, so you should use that most of the time.

Apt-get is similar to yum. It’s also built on top of a lower level tool, called ‘dpkg’.

You usually can’t choose between yum or apt-get. Depending on the distro you’re using, you’ll get a different one. For redhat-like systems, you’ll get yum and rpm. For Debian-based systems, you’ll get apt-get and dpkg.

Thank you, that helps me put things in perspective.