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

Notices

Reply
 
Search this Thread
Old 01-07-2005, 04:57 AM   #1
nkshirsagar
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.

Thanks,
Nikhil.
 
Old 01-12-2005, 06:55 AM   #2
misc
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.

Quote:
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.
 
  


Reply


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


All times are GMT -5. The time now is 01:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration