Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Rep:
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.
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...
[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]#
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.