LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i use package managers and which one? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-use-package-managers-and-which-one-547841/)

FireRaven 04-21-2007 08:58 AM

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?

b0uncer 04-21-2007 09:49 AM

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.


All times are GMT -5. The time now is 04:57 AM.