LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2007, 12:13 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
update package


What is the difference between yum and apt-get on RHN , what I found is when I install a rpm, it always report the existing rpm is not update ( pre-req is not installed ) , so it ask to install the suitable version of rpm first , if I want to get the latest version of pre-req from the web automatically , which command ( yum or apt-get ) should i use ? thx
 
Old 09-20-2007, 01:10 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Yum and apt-get are both package managers; they are programs that are aware of packages on an internet reposity (sort of "package warehouse") and can update their knowledge about what packages and versions there are. You use the program to download and install (or remove, update etc.) a package, and the program then calculates what packages are needed to install or upgrade to do the asked procedure, and after that download and install/upgrade (or maybe remove) the needed packages. So it's a semi-automated way to install and remove (=manage) software. In addition to internet reposities you can also usually define local reposities if you like, such as setup media that contains packages.

yum is the tool used by RedHat and Fedora. apt-get is the package manager of Debian. Basically they do just the same, except that the interfaces to those programs differ a bit, in addition to the more or less small differences in the ways the program work. Both can install, remove and upgrade software, and calculate dependencies and work with them. Debian's apt-get is usually used with Debian (and alike), and yum with RedHat/Fedora (and alike) operating systems, though you can probably use either one in your own distribution, as far as it's configured correctly. Often people say apt (apt-get is the command for apt as of now) is better than yum, but I don't know..personal taste. I wouldn't use apt-get on RedHat/Fedora-based systems, and I wouldn't use yum on Debian if it was possible.

The base package manager program for RedHat/Fedora like operating systems is rpm and for Debian (and alike) dpkg. Those can install, remove and upgrade packages that you have downloaded for them yourself, and calculate dependencies (tell you if the package can't be installed because it won't work before another package is installed), but they don't automatically fetch the pacakges for you - that's what you do yourself. So yum is like an "extension" to what rpm does, and apt-get for dpkg: they do the same things and more.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware security update/package update Michael_aust Slackware 6 10-04-2006 08:19 PM
Update package ust Red Hat 0 02-03-2006 11:36 PM
update package ust Linux - Software 1 10-03-2005 10:04 AM
Package update NyT3HaWk Slackware 3 02-04-2004 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration