👤


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?

find tar utility version solaris

👤 Login to reply
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-07-2017
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; 12-07-2017 at 05:11 AM.. Reason: Added CODE tags.
Sponsored Links
    #2  
Old 12-07-2017
gull04 gull04 is offline Forum Advisor  
Registered User
 
Join Date: Dec 2004
Last Activity: 10 July 2018, 5:47 AM EDT
Location: Isle-of-Skye
Posts: 765
Thanks: 21
Thanked 144 Times in 126 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 06:11 AM.. Reason: Spelling Mistake
Sponsored Links
    #3  
Old 12-07-2017
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Last Activity: 21 May 2018, 12:52 PM EDT
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,223
Thanks: 260
Thanked 420 Times in 361 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
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:39 PM
tar version samsungsamsung AIX 1 06-06-2011 10:12 AM
How to install new version of tar under solaris 9 Sigma UNIX for Dummies Questions & Answers 2 05-31-2010 06:07 AM
How to check version of Solaris? am_yadav Solaris 5 02-06-2008 05:43 AM
HP tar version marlonus999 HP-UX 0 03-27-2007 05:07 AM



All times are GMT -4. The time now is 10:59 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?