Difference between RPM (yum) and apt-get
Solution 1
They basically do the same, managing software packageges. One handles rpm packages which are the native form on Red Hat, Suse and Mandrake based systems (among others), the other handles deb files used by Debian, Ubuntu and derivatives.
My recommendation: Use the native format, except when you have very special needs. All the security updates etc. are best handled by the platforms native tool, and most users won't need to toy around with more than one tool.
Solution 2
As far as I know, RPM has an advantage in that it tracks dependencies by files included in packages, while Deb does this by package names and versions only. This means that if the new version of a package does not contain a shared library used by some other package, Deb system will install it and break that other package, while RPM-based systems will not install the new version.
On the other hand, RPM does not support OR-dependencies, common in Debs: this-package or that-package.
Related videos on Youtube
Josh K
Updated on September 17, 2022Comments
-
Josh K over 1 year
Functional difference between the two? Packages different style or what?
I'm dipping my toe in the server pool and playing with an Ubuntu install right now, which is
apt-get
. I'm also considering FreeBSD and Debian if I do decide to start running my own VPS.So far things have been very easy,
sudo apt-get install apache2
and the like with no issues at all. I'd like to know if there is a different learning curve toyum
or variants.-
Bob Whitelock about 14 yearsI asked this question once on superuser -> superuser.com/questions/125933/… . Somebody posted a quite detailed explanation.
-
Bob Whitelock about 14 yearsThere is also
aptitude
by the way. I use apt-get and aptitude on debian. I have also a CentOS machine there I use yum, and if there is no yum package I download and install the RPM package. -
Microsoft Linux TM over 9 yearsfrom a user point of view the rpm and yum command syntax and management styles are elegant compared to terrible syntax of dpkg and apt-*
-
Michael Trouw about 9 yearsThe above comment is exactly the opinion i was looking for. I want my package util syntax to be clean and understandable, I have had to work with apt-get and found some of the command syntax just... let's say very poorly chosen. upvoted above comment!
-
-
Josh K about 14 yearsOkay, just wanted to know if it was something like CVS vs. SVN where one has a distinct advantage over the other. Ten rep to 3k!