LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-28-2004, 08:56 AM   #1
feetyouwell
Member
 
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Rep: Reputation: 30
apt-get or yum, which to choose


Can anyone tell me the difference between apt-get and yum

which one is better and why?

I am running fedora core 2, installed apt-get but it seems like it's not working for some reason, yum works just fine.
 
Old 05-28-2004, 09:08 AM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
There isn't a whole lot of difference between the two, from the view of a user. Both do the same things. Both have similar configs. As long as both are pointed to repositories with the same packages, you will end up with the same packages updated from either.

I s'pose choosing one over the other would depend on what repos you want to use. If you want to use a repo that only supplies apt, then use apt. If not, I haven't found a reason yet to not use yum.

The only annoyance I have so-far with yum is that it checks the repos for new packages for everything it does. With apt, it would only check the repo when you told it "apt-get update". Of course, it might just be me... I used to use apt on RH9. Since I've been running Fedora, I've been using yum.
 
Old 05-28-2004, 09:26 AM   #3
feetyouwell
Member
 
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Original Poster
Rep: Reputation: 30
so what you're saying is that yum support both apt & yum repos? if that's the case, that's pretty cool.
So in Yum/apt-get, how do I change repos? Can they use more than one repos so it finds everything? There are things I couldn't find on them, such as fluxbox, ccm and things like that.
 
Old 05-28-2004, 10:35 AM   #4
pepsi
Member
 
Registered: Apr 2004
Posts: 63

Rep: Reputation: 15
apt was built for debian and almost all versions have a gui, it also works for most platforms were as yum was made for rpms to solve dependancys but most versions don't have a gui
 
Old 05-28-2004, 11:45 AM   #5
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Quote:
so what you're saying is that yum support both apt & yum repos?
Not quite... Most repos only support yum or apt. Some few might support both... It depends on the maintainer of the repo.

You can change repos by editting the conf file of either program. /etc/yum.conf or /etc/apt/sources.list or /etc/apt/sources.list.d/* . You can point either to a number of different repos. If you point to a number of different third-party repos, you might run into a bit of trouble if they contain different versions of the same packages.

I know in yum, you can point to different mirrors of the same repo...
Code:
[os]
name=Fedora Core $releasever $basearch -- OS
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.os
        http://mirrors.usc.edu/pub/linux/fedora/fedora/$releasever/$basearch/RPMS.os
        http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.os
When running yum, it tries the first server. If it can't reach it, it rolls over to the subsequent mirrors. Take a look at << www.fedora.us >> for a list of mirrors.
 
  


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
yum vs apt-get eranb2 Debian 2 02-27-2005 09:26 AM
yum vs apt-get eranb2 Red Hat 1 02-25-2005 01:11 PM
yum or apt krdp Fedora 7 01-15-2004 09:16 PM
How to choose a good mirror for apt-get/Synaptic Eugene Linux - General 6 12-08-2003 11:17 AM
apt -yum ronss Fedora 6 11-11-2003 07:14 AM

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

All times are GMT -5. The time now is 11:38 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