Package depend file


 
Thread Tools Search this Thread
Operating Systems Solaris Package depend file
# 1  
Old 06-29-2009
Package depend file

Hi,

The general syntax of depend file is:
Tag Name Description
<arch> version

I want to define a dependency which should apply for a particular version of package and higher.
eg. Version of "A" package should be 6.0 or higher

Giving the version in depend file, sticks to that particular version itself and doesn't consider higher versions.
How can i accomplish this?
Thanks
# 2  
Old 07-03-2009
I'd suggest leaving the version out of the depend and add a check to your preinstall instead, just be careful you don't get tripped up by a lock on the package database preventing you reading the information you need.
# 3  
Old 07-03-2009
Never come across that lock.

When does that happen?
# 4  
Old 08-09-2009
Quote:
Originally Posted by vibhor_agarwali
Never come across that lock.
When does that happen?
So sorry for the lengthy delay in responding, I've been on the move and not checking in as often as I'd like to.

On versions of Solaris where I've tried this (2.6 and 8 only) the Solaris package database could not handle multiple operations at once. If I attempted to install two packages at the same time, one would wait for the other to finish before starting.
It's purely anecdotal evidence and only observed on older Solaris versions but I would be surprised if it didn't do it on recent Solaris instances also.

The easiest way to find out and see for yourself is to start a package install or remove that pauses for input along the way, then start another operation and see what it does.
# 5  
Old 08-10-2009
U could find all the dependency while downloading in sunfreeware.com it self.
# 6  
Old 08-10-2009
Quote:
Originally Posted by bullz26
U could find all the dependency while downloading in sunfreeware.com it self.
I believe the O/P is trying to define a dependancy in a new package rather than discover one from an existing package Smilie
# 7  
Old 08-20-2009
Yes,

I want to give a new dependency in a package i am creating.

Could trace the lock phenomenon.
Thanks Smiling :-)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Depend on Script message needs to be invoke anothe script

I have script below #! /bin/bash if then echo "JBoss is NOT running" else echo "JBoss is running" fi If JBoss is NOT running need to be invoke another script i.e jboss startup script /home/vizion/Desktop/jboss-4.2.3.GA/bin/run.sh script from other script not... (5 Replies)
Discussion started by: Chenchireddy
5 Replies

2. Shell Programming and Scripting

display Range of date depend on user input php

Hi, i am very new to php Is it possible to display Range of date depend on user input day example: user input 2 day start from 28/4/12 it will add 2 day from date of input so display should look like this 28/4/12 to 30/4/12 then from 30/412 user add another 4 date so will... (0 Replies)
Discussion started by: guidely
0 Replies

3. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

4. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

5. OS X (Apple)

Where are package contents stored for a file, or why aren't they visible w/o right clicking the file

I was wondering about the "Show Package Contents" option in OS X. I have a keynote file that I'm looking at. Exactly where are these contents or its directory stored, because they aren't visible in the Finder window, unless I obviously right click and choose to view them. And I don't think I can... (2 Replies)
Discussion started by: Straitsfan
2 Replies

6. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

7. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

8. Shell Programming and Scripting

How to Compare two files depend on line length Chars

I need to compare two files with exactly same length as example: - File1 contain 500 records with length of 640 chars of each line. File2 contain 1500 records with length of 640 chars of each line. I need get an output to be written in File3 which will contain 1000 records difference. but... (4 Replies)
Discussion started by: elj3dah
4 Replies

9. Linux

how to restore original package after uninstalling the upgraded package using rpm

have following package installed rpm -qa |grep ADMIN It will give the following package installed: ADMIN-4.0.0.1 Now I will upgrade the ADMIN package using the following command. rpm --upgrade ADMIN-4.1.0.1 It will upgrade the ADMIN packagge to ADMIN-4.1.0.1 Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies
Login or Register to Ask a Question