Linux - GeneralThis 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
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.
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
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.
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.
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
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.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.