Check that supersede of package version is installed


 
Thread Tools Search this Thread
Operating Systems Solaris Check that supersede of package version is installed
# 1  
Old 08-18-2014
Check that supersede of package version is installed

I need a programmatic way to check, that supersede of required package is installed. At Linux I do it using rpmvercm utility to compare installed package version to my minimal requirement.
So - I need analog of Linux "rpmvercm" utility for Solaris (10/11)
Let us say - I know that minimal version of system/library package (solaris 11) that I need to be installed is "0.5.11"
Is there some utility, that will automatically compare installed version (for example 0.5.12) and required and give me status - if I need to update my package?
# 2  
Old 08-18-2014
Do you mean rpmdev-vercmp?
# 3  
Old 08-18-2014
Quote:
Originally Posted by jlliagre
Do you mean rpmdev-vercmp?
Yes. At Linux platforms it works quite good. But I do not success to find some analog for Solaris. Actually I even do not use utility itself , but I incorporated its C code in my project...
Now I need to solve same problem for Solaris... Funny thing is that actually there is implementation of rpm for Solaris. And at machines with installed rpm manager I can use same code... But obviousely - it will not work at Solaris machine , that has not RPM manager installed.
# 4  
Old 08-18-2014
You may want to look at PCA tool. I use this for solaris patch reporting and patching servers. Its a great tool to compare patches, patching servers, downloading the missing patches and tons of other features which makes life easier.

Patch Check Advanced
# 5  
Old 08-19-2014
Quote:
Originally Posted by npandith
You may want to look at PCA tool.
It seems to be a great tool. But not for my purposes. I do not need to install required packages. I need to check compliance of specific machine to set of pre-requirements (package X with version Y or higher is installed) and output report...
# 6  
Old 08-19-2014
Packaging works differently with Solaris compared to Red Hat, in particular with Solaris 10 where patches, not whole packages, are more commonly used to fix/update existing packages.

You should better explain why you want this functionality in the first place. Is it for custom made packages, third party, system ones ?
# 7  
Old 08-19-2014
It is a part of our installation procedure. I have a list of pre-requirements, supplied by dev teams. And I have to verify them on customer's box , before actually installaing product. So - I have list of x (6-12 depend of platform) packages that have to be present and their minimal versions. There is no problem to check that package X is installed , and query version of it, that is installed. Problem is - how to compare those quered version with minimum I have from development...Smilie

---------- Post updated at 03:15 AM ---------- Previous update was at 03:14 AM ----------

Quote:
Originally Posted by jlliagre
Packaging works differently with Solaris compared to Red Hat, in particular with Solaris 10 where patches, not whole packages, are more commonly used to fix/update existing packages.
But - if I get it right, after patch is installed - it updates in Solaris "registry" version of package it have been updated... Right?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

2. Shell Programming and Scripting

How-to verify if my package installed successfully

Can you please let me know how can i verify /check inside the script if the below to package installation commands are successful or if they failed for any reasons? 1. pkgadd -a $INSTP/install/dadmin -d $INSTP/install/apachesrv.pkg 2. pkgadd -a $INSTP/install/dadmin -d... (6 Replies)
Discussion started by: mohtashims
6 Replies

3. Solaris

Finding the path to an executable , installed package

Hi all, Recently i wanted to see if i have openssl installed in my system (solaris 10), so i do this (not sure if this is the right way to do this) pkginfo -i | grep -i "ssl" system SUNWopenssl-commands OpenSSL Commands (Usr) system SUNWopenssl-include ... (3 Replies)
Discussion started by: javanoob
3 Replies

4. 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

5. Ubuntu

How to list my program or package that i compile and installed?

Hi I would like to ask in ubuntu or linux on how to list all my package or software the i installed via source code( compile installed in dir default is /usr/local) just like i solaris in which if you installed a package in ur choosing default root installation dir you can just issue a command... (2 Replies)
Discussion started by: jao_madn
2 Replies

6. Solaris

Package needs to be installed for using pam_mkhomedir.so?

Hi, What is the necessary package that needs to be installed for using pam_mkhomedir.so in pam.conf file? And from where can i get that file? Is that package already shipped with Solaris 10? Because when i use that file i am getting "open_module: stat(/usr/lib/security/pam_mkhomedir.so)... (1 Reply)
Discussion started by: sathya47
1 Replies

7. AIX

How to check supersede of patch

Hi dear All. I need to create script, that will check if some specific AIX patch is superseded by another patch, already installed on system Let us say I have AIX 5.3 machine, and I have to check for patch "X". Of cause - it is not a problem to check if patch "X" is already installed on given... (1 Reply)
Discussion started by: zuismanm
1 Replies

8. Ubuntu

Download same package as installed

Hi gurus, how to (just) download already installed package ? I tried sudo apt-get -d install putty but gives me Reading package lists... Done Building dependency tree Reading state information... Done putty is already the newest version. 0 upgraded, 0 newly installed, 0 to... (7 Replies)
Discussion started by: wakatana
7 Replies

9. HP-UX

how to package my program which can be installed on HP UX

I develop a unix program in HPUX I want to package my program to install on HPUX in some dierctory folder like /user/local/sbin/xxx and preinstall some software before install my program package like xxx.depot how can i do it, have any tools like use setupfactory tools in windows ... (4 Replies)
Discussion started by: alert0919
4 Replies

10. AIX

How to check if a package is already installed?

Hi All, I want to check if the perl DBI package is already installed my AIX unix machine. is there any command to check this? Please help. Thanks, Am (2 Replies)
Discussion started by: am_yadav
2 Replies
Login or Register to Ask a Question