difference between pkginfo and pkgchk command


 
Thread Tools Search this Thread
Operating Systems Solaris difference between pkginfo and pkgchk command
# 1  
Old 02-13-2009
difference between pkginfo and pkgchk command

can anyone explain me the difference between pkginfo and pkgchk command in solaris. Both are used to display the package details, then what is the difference between both.
rogerben
# 2  
Old 02-13-2009
As you'll find from reading the man pages pkginfo tells you about a package but pkgchk's main function is to ensure a given package is installed correctly.
# 3  
Old 02-13-2009
Quote:
Originally Posted by seg
As you'll find from reading the man pages pkginfo tells you about a package but pkgchk's main function is to ensure a given package is installed correctly.

even we can get the information whether the package is installed correctly or not in pkginfo also right. correct me if am wrong.
rogerben
# 4  
Old 02-13-2009
Quote:
Originally Posted by rogerben
even we can get the information whether the package is installed correctly or not in pkginfo also right. correct me if am wrong.
Sure, I could be wrong. Check the documentation.
# 5  
Old 02-14-2009
the basic difference is: pkginfo -l <pkg name> will give detailed info about the package but on the other hand u can use pkgchk to check the integerity of a package, files associated with a package.

And if u use pkgchk -lp <fullpath of a file> = to check weather this file is associated with any package...

I hope this helps you.....
# 6  
Old 02-15-2009
Quote:
Originally Posted by sureshlee_83
the basic difference is: pkginfo -l <pkg name> will give detailed info about the package but on the other hand u can use pkgchk to check the integerity of a package, files associated with a package.

And if u use pkgchk -lp <fullpath of a file> = to check weather this file is associated with any package...

I hope this helps you.....
thanks a ;lot
rogerben
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Host name in front of pkginfo output

hello all I am trying to create a comma seperated file of the pkginfo command. The follwoing works pretty well. pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' ORS=', ' however, there are two issues. 1, For some reason it does not load into excel properly. It loads as... (7 Replies)
Discussion started by: busi386
7 Replies

2. Emergency UNIX and Linux Support

Pkgchk error Solaris 10

Hi Guys, I ran a package check command on my solaris 10 sparc system and it displayed most of the packages with errors: pkgchk ERROR: /boot/amd64/x86.miniroot-safe modtime <07/15/11 06:47:07 PM> expected <11/16/12 10:48:49 AM> actual file size <65> expected <158231728> actual ... (7 Replies)
Discussion started by: cjashu
7 Replies

3. Solaris

Pkgchk info please

Hi Guys, I ran : pkgchk without any options then ran pkgchk -v SUNWluu I get this message: NOTE: Waiting for exclusive access to the package database. What does this mean? And how can I fix it? Thanks a lot for your help. (0 Replies)
Discussion started by: cjashu
0 Replies

4. Solaris

pkgadd, pkginfo, ssh not working

Got a feeling someone has been fiddling around or something has got corrupt but I'm getting the following errors now:- -bash-3.00# pkginfo ld.so.1: pkginfo: fatal: libssl.so.0.9.7: open failed: No such file or directory Killed -bash-3.00# and also ssh:- -bash-3.00# ssh ld.so.1: ssh:... (5 Replies)
Discussion started by: psychocandy
5 Replies

5. AIX

BMC package and ingeneral all packages in AIX (Similar to pkginfo in Linux)

Hi , I want to know is there any command in AIX similar to pkginfo ? that shows details of all packages installed and we can grep whatever we need to check? Thanks Rafi (2 Replies)
Discussion started by: rafi49
2 Replies

6. UNIX for Dummies Questions & Answers

which command difference

What is the difference between (unix-system “which ) and which commands. For example when I use the (unix-system “which visual_elite) command I get the following result: /home/vhdl/edatools/mentor/visualelite/VisualElite-4.2.1/Linux2.4/bin/visual_elite When I do the same on... (1 Reply)
Discussion started by: mihaelab
1 Replies

7. Solaris

grep help with pkginfo

im looking for a way to eliminate the packages from SUN when i do a pkginfo. thought this would work, but no luck. pkginfo | grep what am i doing wrong? Thanks (2 Replies)
Discussion started by: jrich523
2 Replies

8. UNIX for Advanced & Expert Users

rpm and pkginfo question

Can the root hide some of the results of the above commands from a regular user? i.e. $>rpm and $>sudo rpm will give different results (1 Reply)
Discussion started by: noam128
1 Replies

9. AIX

difference between ls -b and ls command

hi anyone please tell me what is the difference between ls -b command and ls command. (1 Reply)
Discussion started by: sathish2win
1 Replies

10. UNIX for Dummies Questions & Answers

format and pkginfo -l question

I have a Solaris 2.6 box flagging an "Error block: 308918" in the messages file when I execute a pkginfo -l. pkginfo with no flags returns no errors. I think I need to use format to mark this block and then restore the database used by pkginfo for backup. Any advice/input welcome. Thanks (4 Replies)
Discussion started by: 98_1LE
4 Replies
Login or Register to Ask a Question