👤
Home Man
Search
Today's Posts
Register

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?

Tags
find tar utility version solaris

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 12-07-2017
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.
# 2  
Old 12-07-2017
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
# 3  
Old 12-07-2017
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
👤 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
UNIX command to check if file name ends with .tar OR if the file is a tar file sanjaydubey2006 UNIX for Dummies Questions & Answers 10 02-19-2015 05:40 PM
How to download latest version of cmake using tar xzf? larry burns Fedora 3 11-10-2014 07:16 AM
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
tar: how to preserve atime? (also on extracted version, not just original) frankie06 UNIX for Advanced & Expert Users 10 12-15-2008 05:48 PM
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
How can I tell what version of tar I have? FredSmith UNIX for Dummies Questions & Answers 3 10-07-2005 12:06 PM
to check version to library dilipluhar Programming 1 09-16-2001 11:32 AM


All times are GMT -4. The time now is 06:02 PM.

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