LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2008, 05:11 AM   #1
Barq
Member
 
Registered: Aug 2004
Location: EGYPT
Distribution: FEDORA 10
Posts: 114

Rep: Reputation: 15
Question automaticly dependency resolve


when install some rpm package , they may need other rpm package (dependencies), now, if i have one rpm package and i want to install it , at the same time i have many other rpm packages in my hard disk , and that rpm package that i want to install depend on package which locate in my hard disk, Are these any way to make it resolve these dependency automaticly
 
Old 01-05-2008, 05:21 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can do
Code:
#rpm -Uvh package1.rpm package2.rpm package3.rpm etc
 
Old 01-05-2008, 08:09 AM   #3
Barq
Member
 
Registered: Aug 2004
Location: EGYPT
Distribution: FEDORA 10
Posts: 114

Original Poster
Rep: Reputation: 15
thank you ,but i do't mean that, so i explain by exapmle.
suppose i have package A.rpm , when i install it ,it saies , i am need to B.rpm , and when i install B.rpm .it saies i need to C.rpm , then when i install C.rpm , B.rpm and A.rpm can installed.
this is simple example, but it may long list of dependicies, how can i resolve these dependencies.
 
Old 01-05-2008, 08:24 AM   #4
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
I think what you need to do is set up a local repository and put all of your rpm files in it.
Not sure how to do it on an rpm based distro though...
 
Old 01-05-2008, 08:58 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Install the smart package manager and use it. See this article for a description. If you're on a Fedora system, smart (and smart-gui) are in the standard repositories, as well as a configuration file.

Actually, again on Fedora, the yum updater will attempt to resolve any dependencies for you, and the yumex gui will also do so.

(Note that a "rpm" file is a Red Hat Package Manager file, although many other distributions now use that format.
 
Old 01-05-2008, 09:17 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Actually, if you have all the rpms stored on your hard drive, Reddazz's suggestion is what you do. If not, use YUM.
 
Old 01-05-2008, 10:45 AM   #7
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Is this where I suggest dumping the .rpm based distro and switching to Debian, or would that just start a flamewar?
 
Old 01-05-2008, 10:46 AM   #8
Barq
Member
 
Registered: Aug 2004
Location: EGYPT
Distribution: FEDORA 10
Posts: 114

Original Poster
Rep: Reputation: 15
thank for all, i install smart, and try to add my hard disk to channel but fail, how can i do that.
also
how can add my rpm on hard disk to apt , i notice it is only for deb package
 
Old 01-05-2008, 03:24 PM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Did you try yum install yumex to install the yumex GUI YUM interface? If not, do so.

Start yumex from a X session. (It should be in your System menu, but you can start it from the Run dialog -- usually a pop-up from a right-click on the desktop.) When you start it (if you are not running as "root," you'll be prompted for the root password.)

Select "all" from the tab list, enter "smart" in the search box, and press "Enter" of click the "go" button.

One of the displayed programs should be a program to install the Fedora repository definitions. Select it, and press the "Process Queue" button.

Note 1: The repositories defined by that file are only the basic Red Hat repositories in the U.S., and no mirrors are defined, so you may want to changed the definitions to point to more local repositories.
Note 2: smart handles most repository types, but was developed to prefer apt.

--------------------

Of course, once you've got yumex running, you could see if that would resolve your dependency problems. It's not quite as through as smart, but usually get the job done.
 
Old 01-05-2008, 05:45 PM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by Telemachos View Post
Is this where I suggest dumping the .rpm based distro and switching to Debian, or would that just start a flamewar?
I don't think you would start a flame war at all, but I personally don't see the point in switching to a Debian based distro just becuase someone is trying to figure out how to install a bunch of packages. My reasons for this are as follows: If you use dpkg on Debian which is similar to rpm and tried to install multiple packages manually, you can end up with the very same dependency problems like the ones the OP is trying to resolve. If you use apt it will resolve your dependencies automatically which is the same thing that yum, smart, apt4rpm, urpmi, zypper etc do on rpm based distros. A lot of Debian based users (and users of other distributions) are sometimes under the illusion that rpm is is not as good as the package managers onther distros, but actually once you figure out how to use the like of yum, you will find that there isn't much difference in the way most modern distros manage their packages.

In this instance, if the OP does not want headaches with dependencies and they have all the packages they need on their hard drive, they can create a local software repository for yum, smart or whichever tool they prefer.

Last edited by reddazz; 01-06-2008 at 12:58 PM. Reason: typos
 
Old 01-06-2008, 12:43 PM   #11
xptools
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Debian Testing
Posts: 40

Rep: Reputation: 15
First of all, I don't want to get into any trouble arguing with Moderator. I just want to make some point from my personal view.

Quote:
if the OP does not want headaches with dependencies and they have all the packages they need on their hard drive
Well, to me, getting all the packages they need on their hard drive is part of the headaches with dependencies, and it is the most annoying one.

That's why I moved away from Redhat to Debian

Quote:
A lot of Debian based users (and users of other distributions) are sometimes under the illusion that rpm is is not as good as the package managers on their distros, but actually once you figure out how to use the like of yum, you will find that there isn't much difference in the way most modern distros manage their packages.
I agree, yum can solve the dependency headaches quite nicely. However, there is still one advantage of Debian repository that's worthwhile to stress -- its seamless integrated packages. Currently, there are about 3 or 4 major yum repositories. The problem is that all of them just cover part of the packages I need, and the incompatibility of the yum repositories between them gave me headaches when I need to install packages from different repositories from time to time.

Debian, however, I have never had problems pulling packages from different repositories, e.g., debian-multimedia, grml, etc. But I bet for most people, the over 4G of official Debian repository is more than enough.
 
Old 01-06-2008, 12:55 PM   #12
xptools
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Debian Testing
Posts: 40

Rep: Reputation: 15
dup removed.

Last edited by xptools; 01-06-2008 at 12:57 PM.
 
Old 01-06-2008, 01:04 PM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You won't get in troubling for having a discussion with a moderator. This is the point of a forum i.e. to share thoughts and ideas freely.

Since the release of Fedora 8, there is only one official Fedora repository and anything else is third party. Obviously the Fedora developers are not going to be responsible for the compatibility of third party repositories. Some of the points in your link were valid a few years back when Debian had apt and rpm based distros didn't have similar tools. At one time I also thought of abandoning Redhat, but then apt4rpm and yum soon came along and made life a bit easier. These days, I don't really see much difference in how most distros manage packages.
 
Old 01-06-2008, 01:09 PM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I don't think that Barq realized what the original response meant. If you have all of the rpm package files you need in the same directory, you can include all of them as arguments to the rpm command. This is also how to deal with circular dependencies, where packageA needs packageB and packageB needs packageA.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can 'dpkg -i' resolve dependency issue automatically? Akhran Debian 13 01-04-2010 09:54 PM
Is Aptitude capable of installing local .deb package and resolve dependency issue? Akhran Debian 3 07-06-2009 05:05 PM
yum won't resolve samba dependency m2azer Linux - Software 3 02-05-2007 03:50 PM
DNS can't resolve gmail.com but can resolve everything else? TongueTied Linux - Networking 2 01-24-2006 03:39 AM
grip library dependency - can't resolve synaptical Linux - Software 1 02-09-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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