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 - 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 04-21-2007, 08:58 AM   #1
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
how do i use package managers and which one?


hi. i am running linux distribution CentOS 4.4.

for an example i am wanting for install aMule rpm which is available here:
http://dag.wieers.com/rpm/packages/amule/

so i downloaded amule-2.0.0-1.2.el4.rf.i386.rpm using wget and then typed:
rpm -ivh amule-2.0.0-1.2.el4.rf.i386.rpm
then i got the error:
Code:
error: Failed dependencies:
        libwx_gtk-2.4.so.0 is needed by amule-2.0.0-1.2.el4.rf.i386
        libwx_gtk-2.4.so.0(WXGTK_2.4) is needed by amule-2.0.0-1.2.el4.rf.i386
so i searched libwx_gtk and came up with this:
http://dag.wieers.com/rpm/packages/wxGTK/
wxGTK-2.6.3-1.el4.rf.i386.rpm

so i typed:
rpm -ivh wxGTK-2.6.3-1.el4.rf.i386.rpm
then it gave me this:
Code:
error: Failed dependencies:
        libgstplay-0.8.so.0 is needed by wxGTK-2.6.3-1.el4.rf.i386
        libgstreamer-0.8.so.1 is needed by wxGTK-2.6.3-1.el4.rf.i386
    Suggested resolutions:
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/gstreamer-0.8.7-4.EL.0.i386.rpm
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/gstreamer-plugins-0.8.5-1.EL.0.i386.rpm
so as you can see installing amule in the end might take days if i have to keep downloading dozens of packages down the list like this.

so i'm a complete noob and never used a package manager besides yum and yum i don't even know how to use to download amule.

any suggestions on how to install packages from that DAG site using any package manager?

Last edited by FireRaven; 04-21-2007 at 08:59 AM.
 
Old 04-21-2007, 09:49 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Distributions often ship with only one package manager to keep things simple. I don't know if it's wise to start adding another package manager to your system, and yum is perfectly good to add rpm packages to your system. If amule is in the yum reposities, you just hit a command
Code:
yum install amule
and see what happens. Though most modern distributions nowadays have graphical front-ends to their package managers, so if CentOS is a "modern distribution" you should perhaps crawl trough the menus to see if there is such a program. I personally prefer using console, but if you find it easier for yourself, see if there's a graphical front-end for yum somewhere.

If the above yum command says it can't find amule (the package name you ask to install should not contain any suffixes or version numbers, just the name part of the filename), you may have to add a new reposity to yum which holds the packages that are needed. This is easy, and there are basically two ways of achieving it:
1) you find out the information (i.e. address) of the reposity and create a new repo file under /etc/yum.d/ (that's the directory on some other RPM distributions, might differ on CentOS), taking one of the existing files as an example of the file format
2) you find an rpm package from the web that, when installed, adds the new reposity to yum. This is a lot easier if such an rpm is available; effectively it does the same as above, but without you needing to use editors yourself.

After that, update yum's knowledge of reposity contents:
Code:
yum update
and then re-try installing amule.
 
  


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
multiple package managers Phil459 Linux - Newbie 2 12-15-2006 01:01 PM
Portage vs. Other Package Managers jeelliso Linux - Software 7 08-07-2006 08:02 PM
considering package managers peok Linux From Scratch 4 07-27-2006 05:42 AM
Using multiple package managers B1-66ER Linux - General 2 09-16-2005 09:44 PM
Linux Package Managers a4r0 Linux - Newbie 1 08-17-2004 04:04 PM

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

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