Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

How to check tar version in Solaris?

UNIX for Beginners Questions & Answers


Tags
find tar utility version solaris

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago   -   Original Discussion by svijayas
svijayas's Unix or Linux Image
svijayas svijayas is offline
Registered User
 
Join Date: Dec 2017
Last Activity: 7 December 2017, 2:32 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How to check tar version in Solaris?


Code:
for pkg in `pkginfo | grep tar | grep application | awk '{print $2}'`; do pkginfo -l $pkg | grep VERSION; done


Moderator's Comments:
How to check tar version in Solaris? Please use CODE tags as required by forum rules!

Last edited by RudiC; 1 Week Ago at 06:11 AM.. Reason: Added CODE tags.
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago   -   Original Discussion by svijayas
gull04's Unix or Linux Image
gull04 gull04 is offline Forum Advisor  
Registered User
 
Join Date: Dec 2004
Last Activity: 14 December 2017, 5:36 AM EST
Location: Isle-of-Skye
Posts: 720
Thanks: 18
Thanked 129 Times in 114 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; 1 Week Ago at 07:11 AM.. Reason: Spelling Mistake
Sponsored Links
    #3  
Old Unix and Linux 1 Week Ago   -   Original Discussion by svijayas
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Last Activity: 14 December 2017, 6:23 PM EST
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,212
Thanks: 250
Thanked 417 Times in 358 Posts
Hi.

With gtar:

Code:
$ which gtar
/usr/bin/gtar

$ gtar --version
tar (GNU tar) 1.27.1

On a systerm like:

Code:
OS, ker|rel, machine: SunOS, 5.11, i86pc
Distribution        : Solaris 11.3 X86
bash GNU bash 4.1.17
gtar tar (GNU tar) 1.27.1

Best wishes ... cheers, drl
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to check SVM version Solaris 9 and 10? ajhal04 Solaris 1 09-17-2011 03:39 PM
tar version samsungsamsung AIX 1 06-06-2011 11:12 AM
How to install new version of tar under solaris 9 Sigma UNIX for Dummies Questions & Answers 2 05-31-2010 07:07 AM
How to check version of Solaris? am_yadav Solaris 5 02-06-2008 06:43 AM
HP tar version marlonus999 HP-UX 0 03-27-2007 06:07 AM



All times are GMT -4. The time now is 08:45 PM.