LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-03-2004, 03:39 PM   #1
prismra
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
YUM vs APT-GET


Well, I'm back. It's been about a year. My redhat 9 machine became my DOS box (for old-school gaming) and has now become my Fedora Core 2 box (as I have obtained a dos era del from eBay.)

The last time I installed linux I had a larger drive and I installed X and KDE and had some fun with it. I found out quite quickly that I really wasn't learning much. Using Xwindows allows you to configure almost everything through GUI menus and that's too much like windows for me--to easy.

So this time I installed it on my machine without X so I'm doing eveything in the shell. I have set up the computer to connect to my LAN, and I have configured my hostname and done a few other little things. I'm still getting used to VI.

Well, long story long, I have a couple questions.

I have read in some random posts here and there that people have jacked-up thier linux machines using apt-get. I was wodering if YUM was a better alternative? I remember how easy it was to update my Redhat using up2date but I was trying to find a way to automate this process in the shell without me having to manually ftp all the RPMs.

Are there clear advantages to using either one? What should I watch out for? Does fedora install YUM or Apt-get by default? If you know the url for an RPM can I specify it when installing it?

Like : rpm -i h**p://ww.whatever.com/apt-get.rpm

Thanks guys and gals (<- yeah right )
 
Old 06-03-2004, 04:11 PM   #2
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
If you really want to learn and want to have a good package system at the same time, why don't you try Gentoo and the gentoo portage? The primary reason for me to install gentoo was that I wanted to learn. Now is my favourite desktop.

I also have a gateway/firewall/server (an old cyrix 199MHz) running gentoo.
 
Old 06-03-2004, 04:50 PM   #3
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
I think that ap-get download the dependencies you need to install the package and yum not. But apt-get is more difficult to configure properly than yum
 
Old 06-03-2004, 08:36 PM   #4
prismra
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the help guys. Does anyone have any anecdotal knowlege of what works better? Can I specify a URL when using the RPM command to update a file? Thanks!
 
Old 06-03-2004, 10:14 PM   #5
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
i use apt-get from the console and am quite happy with it. you specify which rpm repositories you want it to use by adding them to /etc/apt/sources.list. there are also ways of specifying which version you want to install over another, perhaps newer buggy version, or installing from a particular repository. i recommend it, though i don't have the experience with yum, so i can't say that it is better. i liked it enough not to look elsewhere. from the apt man page:
Quote:
A specific version of a package can be selected for installation by
following the package name with an equals and the version of the pack-
age to select. This will cause that version to be located and selected
for install. Alternatively a specific distribution can be selected by
following the package name with a slash and the version of the distri-
bution or the Archive name (stable, testing, unstable).
hope this helps.
 
Old 06-04-2004, 04:24 AM   #6
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
The Gentoo portage and the emerge command is very similiar to apt-get in some ways. You also add to a file the url of the mirrors of the gentoo portage repository. You also use a simple command from a console to install aplications. Here's an example:

Let's install the game Scorch 3D. I knew about this game from a friend of mine. I've played it some years ago in MS-DOS and it was 2D

Let's assume I already have the url of the portage mirror configured.

I start by searching for the correct package name:

Code:
delphis root # emerge search scorch 
Searching...   
[ Results for search key : scorch ]
[ Applications found : 2 ]
 
*  games-strategy/scorched3d
      Latest version available: 37.2
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 18,842 kB
      Homepage:    http://www.scorched3d.co.uk/
      Description: Multi-player tank battle in 3D (OpenGL)
      License:     GPL-2

*  games-strategy/xscorch
      Latest version available: 0.2.0
      Latest version installed: 0.2.0
      Size of downloaded files: 799 kB
      Homepage:    http://chaos2.org/xscorch/
      Description: clone of the classic DOS game, 'Scorched Earth'
      License:     GPL-2

delphis root #
Ok. The output shows scorched3d (the game I want to install) and xscorch (another game that I already have is you can see) Now that I know the correct of the package I want to install (games-strategy/scorched3d) let's install it:

Code:
delphis root # emerge scorched3d
The package will now be downloaded and installed. If it needs to be compiled (most packages in the gentoo portage need to be compiled) it will also compile the package. A few minutes later the game is ready to be played
 
Old 06-04-2004, 07:07 AM   #7
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
I don't know if you can do that just try it, but i think you couldn't. And to install a rmp is better to use -Uvh options (rpm -Uvh apt-get.rpm).
 
Old 06-04-2004, 08:13 AM   #8
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
I have used apt and yum on my fc1 box. apt seems to be the only one I need though. As far as being easy to configure, all I did was install the copy I got from http://ayo.freshrpms.net and it works fine.
 
Old 06-04-2004, 11:11 AM   #9
prismra
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
Well, I played around with Yum (since it was already installed) and it works great. Thanks for all the help!
 
Old 06-04-2004, 01:02 PM   #10
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
There is a comparison of yum and apt here.
 
Old 06-04-2004, 01:13 PM   #11
prismra
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
Awesome! Thanks. This board (and it's members) rule!
 
Old 06-04-2004, 01:41 PM   #12
prismra
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
I'm beginning to see the difference here. apt-get will allow you to aquire third party apps. YUM is for official disto stuff only.
 
Old 06-30-2004, 03:00 PM   #13
theblackcat
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Not true. You just need to point your yum.conf file to the "un-official" servers to get the "un-official" stuff. I haven't used apt yet although I may be willing to try. Yum is pretty good but FC2 has seemed plagued with down-servers and unset yum header files that can make yum work tough. On FC1, I was very happy with yum.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 / Apt-get mikedeatworld Fedora 17 12-01-2005 08:31 AM
yum against APT programmershous Linux - Software 6 06-20-2005 08:45 AM
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
apt and yum help Jmcatch742 Linux - Newbie 1 08-13-2004 08:27 PM


All times are GMT -5. The time now is 06:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration