Unix/Linux Go Back    



How to check tar version in Solaris?

UNIX for Beginners Questions & Answers




Kindly Note - This is a Single User Post by Forum Member gull04 Regarding:
How to check tar version in Solaris?.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 12-07-2017   -   Original Discussion by svijayas
gull04's Unix or Linux Image
gull04 gull04 is offline Forum Advisor  
Registered User
 
Join Date: Dec 2004
Last Activity: 22 February 2018, 4:18 AM EST
Location: Isle-of-Skye
Posts: 735
Thanks: 19
Thanked 135 Times in 118 Posts
Hi,

I tend to be a little less discerning when searching through a pkginfo output as I've been caught out by things in the past.

What I tend to use is a search as follows, a bit more work to check but it does check if the package might impact things.



Code:
pkginfo -l | nawk 'BEGIN { FS = "\n"; RS = "" }$0 ~ search { print $0 }' search=tar - | egrep 'PKGINST|VERSION'

Regards

Gull04

Last edited by gull04; 12-07-2017 at 07:11 AM.. Reason: Spelling Mistake