LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-05-2004, 08:59 AM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
apt-get, emerge, yum


Are the above 3 all have the same concept in their respective task?
 
Old 08-05-2004, 09:13 AM   #2
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Essentially yes. They all manage software installation.
 
Old 08-05-2004, 09:14 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yes, the same concept... package management automation...
 
Old 08-05-2004, 09:46 AM   #4
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
They poped up in different flavors originally. YUM is kind of a Fedora thing now I think but then again so is APT. I think apt originated in Debian and the other flavors started to use it later on. I know I adopted APT because the old RedHat tool called up2Date drove me nuts. Since RedHat doesn't support home users anymore, I imagine other RedHat users will use APT as well IMHO.
 
Old 08-05-2004, 10:20 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i love the intro on the apt howto:

Quote:
In the beginning there was the .tar.gz. Users had to compile each program that they wanted to use on their GNU/Linux systems. When Debian was created, it was deemed necessary that the system include a method of managing the packages installed on the machine. The name dpkg was given to this system. Thus the famous `package' first came into being on GNU/Linux, a while before Red Hat decided to create their own `rpm' system.

A new dilemma quickly took hold of the minds of the makers of GNU/Linux. They needed a rapid, practical, and efficient way to install packages that would manage dependencies automatically and take care of their configuration files while upgrading. Here again, Debian led the way and gave birth to APT, the Advanced Packaging Tool, which has since been ported by Conectiva for use with rpm and has been adopted by some other distributions.
they should give that page some background zen music...

=)
 
Old 08-06-2004, 01:04 AM   #6
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Got a problem with yum.

Code:
[root@host root]# yum update
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.....Unable to satisfy dependencies
Package ethereal needs libpcap.so.0.6.2, this is not available.
Package php needs libdb-4.1.so, this is not available.
Package httpd needs libdb-4.1.so, this is not available.
[root@host root]# yum info libpcap.so.0.6.2
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Looking in Available Packages:

Looking in Installed Packages:

[root@host root]# yum provides libpcap.so.0.6.2
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
No packages found
Looking in installed packages for a providing package
No packages found
[root@host root]#
 
Old 08-06-2004, 03:32 AM   #7
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
I'm not familliar with Yum but is might be good to check whether or not you have configured it correctly. The configuration file is /etc/yum.conf and there is a page http://www.fedora.us/wiki/FedoraSources#yum descriping how to set it up.
 
Old 08-10-2004, 02:24 AM   #8
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Galik
I'm not familliar with Yum but is might be good to check whether or not you have configured it correctly. The configuration file is /etc/yum.conf and there is a page http://www.fedora.us/wiki/FedoraSources#yum descriping how to set it up.
Just a question.

Does choosing different servers affect the running of yum?

Cause previously I was using another server, now using mirror.kernel.org and its working fine now.
 
Old 08-10-2004, 08:15 AM   #9
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Yes, you can have conflicting or inter-dependant repositories. Yum/apt etc are a bit of a mess .....
 
Old 08-10-2004, 12:49 PM   #10
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Basically your error messeges suggest that the package you were trying to install relied on other packages to be installed first. These other packages are refered to as 'dependencies' of the package you are installing. Now if these 'dependencies' can not be found (because they are not present at the server you are connecting to) then the installation will fail. Different repositories can have different sets of packages with different dependencies. You can't always mix/match/replace repositories.
 
Old 08-10-2004, 09:03 PM   #11
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Galik
Basically your error messeges suggest that the package you were trying to install relied on other packages to be installed first. These other packages are refered to as 'dependencies' of the package you are installing. Now if these 'dependencies' can not be found (because they are not present at the server you are connecting to) then the installation will fail. Different repositories can have different sets of packages with different dependencies. You can't always mix/match/replace repositories.
Does this apply to apt-get and emerge as well?
 
Old 08-11-2004, 07:07 AM   #12
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Yes it sould apply to apt-get repositories. With emerge (correct me someone if I'm wrong) I don't think it will tolerate more than one repository. So it's a slightly different fish kettle. To add third party (or home grown) packages you need to specifically add them to your tree. There is no concept afaik of multiple trees (or more than one repository). That said I run gentoo (emerge) and it is I have found it to be by far the easiest package management system to integrate with 'off distribution software'. I think the reson for this is that the 'packages' are fine grained (not several things bundled) usually and source based and generally very up to date. I have used both rpm and apt based systems and the main problem I found with them is 'distribution lock-in'. I always had problens adding software that was not part of the distribution. Generally when you try to compile something then something else is missing. When you try to install the something else you end up with the wrong version of another thing etc... Gentoo (emerge) is really nice in this respect. However emerge (and Gentoo in general) is not what I would call a easy distro to use and set up.
 
  


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 against APT programmershous Linux - Software 6 06-20-2005 08:45 AM
yum and apt floyd Fedora 3 11-24-2004 05:10 PM
yum or apt krdp Fedora 7 01-15-2004 09:16 PM
apt-get / emerge like tool for slack xodeus Slackware 2 10-02-2003 03:55 PM
apt-get or emerge like for Slackware? Mega Man X Slackware 9 07-27-2003 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 AM.

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