LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to using rpm to install software with its dependency? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-using-rpm-to-install-software-with-its-dependency-541211/)

cylix2000 03-28-2007 01:57 AM

How to using rpm to install software with its dependency?
 
As the title,
I am going to install a python bitTorrent software,
I have checked by python version is 2.4.2,
but it shows I missed something for the bittorrent software,
is rpm can automatically install all the dependencies?

Thanks.

jay73 03-28-2007 02:05 AM

It would help if you could let us know which distribution: suse, fedora, ...?

b0uncer 03-28-2007 02:10 AM

You didn't tell us what distribution of Linux you are using (there are many that use rpm). If it's Fedora Core, for example, then you should rather use
Code:

yum install packagename
to install a program (package) called packagename. That solves dependencies for you, downloads and installs them (given that the asked package is in the Fedora reposities); rpm itself does calculate dependencies and report you if some are missing, but it doesn't search nor download nor automatically install them for you.

Every modern distribution usually has a package manager (like yum in the above example) that can search for, download and install asked packages and their dependencies with one command. In most cases there exists even a graphical front-end for the package manager, so the user does not necessarily need to use any console commands if s/he doesn't want to. On Fedora the package tool can be found in the menus, I just don't remember it's name (but I assume it's easily found). On Ubuntu, for example, the package manager is apt (apt-get is the command to use) and the graphical front-end is called Synaptic or Adept (latter on KDE). I assume Mandriva and others have this kind of tool as well; SuSE probably uses it's YaST to do the job.

So: find out what tool your system uses to manage packages and either use the textual interface (command) or locate a graphical front-end, usually found in the system menu, or if you don't know how to find it (using Google for example: Fedora package manager), post here which distribution you are using and more precise examples can be given.

Junior Hacker 03-28-2007 02:14 AM

When rpm says "failed because of missing dependencies", and lists the missing dependencies, you have to install those "missing dependencies" first, then install your BitTorrent client/package.

BUT:

As jay73 suggests, if you had mentioned the distribution you have, a person could recommend the best avenue to take in installing BitTorrent. Most mainstream distributions have a "smart" package management system that takes care of dependencies, making it simple to install the application you want. Going strictly with the predecessor "rpm" involves a little "know-how".

hand of fate 03-28-2007 05:42 AM

Quote:

Originally Posted by b0uncer
So: find out what tool your system uses to manage packages and either use the textual interface (command) or locate a graphical front-end, usually found in the system menu, or if you don't know how to find it (using Google for example: Fedora package manager), post here which distribution you are using and more precise examples can be given.

Alternastively just click on the RPM file from a file manager, and that will (in most distributions) invoke whatever package manager that system uses to install that package and its dependencies.

If that invokes a package manager but it doesn't find the dependencies then you may have to configure the package manager to link to a repository. That depends on your distribution. The easiest way would be to make a note of the name of the program that appears when you click on the RPM file, then search online for "ProgramName repositories"

cylix2000 03-30-2007 12:48 AM

Thank you all first.
It is FC5, but without GUI, I can just using the command mode to do so.
It is because I am using SSH to remote the computer at all.

bdox 03-30-2007 01:01 AM

...then use the command that b0uncer recommended... =)


All times are GMT -5. The time now is 03:45 PM.