Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-07-2005, 03:57 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
rpm dependency problem

Hello ,

On Linux platform the package that I provide to install has dependency of another package requiring to have been installed.

This is done by providing 'requires' tag in spec-file.

How can I make it optional for either of two packages ?

i.e if 'A'. or 'B' is Installed then my package should also get installed .

Anybody has idea how to achieve this.

Old 01-12-2005, 05:55 AM   #2
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
One way to do it is to provide virtual capabilities. For instance, in package A:

Provides: blubb

In package B:

Provides blubb

In package C:

Requires: blubb

So, either A or B satisfy C's requirement.

i.e if 'A'. or 'B' is Installed then my package should also get installed .
That doesn't work, because both A and B would depend on your package.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
rpm dependency problem Baltasar Linux - Software 2 12-27-2004 02:24 PM
command line rpm dependency problem rolandkirk55 Linux - Software 0 09-07-2004 08:14 PM
rpm dependency resolution problem blahJake Mandriva 2 03-01-2004 08:53 PM
rpm dependency problem horence Linux - Software 1 02-24-2004 12:20 PM
RPM Dependency Problem JoAnywhere Linux - Software 3 10-30-2003 12:54 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration