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 06: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 07: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
How to check Oracle version on HP-UNIX? imtiaza HP-UX 3 12-04-2013 07:29 AM
How to read this Solaris version:-Solaris 8 HW 5/03 s28s_hw2wos_06a SPARC? manalisharmabe Solaris 3 08-29-2013 09:39 AM
How to check SVM version Solaris 9 and 10? ajhal04 Solaris 1 09-17-2011 03:39 PM
How to check the Version of Netscape web server jambesh Web Programming 2 04-20-2010 12:36 PM
Command to check firmware version sunray Solaris 1 08-25-2009 09:34 AM
Check for the bit version of OS tcsprak Shell Programming and Scripting 4 06-09-2009 10:02 AM
How to check version of Solaris? am_yadav Solaris 5 02-06-2008 06:43 AM
Check version of Oracle am_yadav Solaris 1 02-04-2008 06:46 AM
enable FTP access / check version zp523444 Red Hat 14 10-25-2006 08:32 PM
to check version to library dilipluhar Programming 1 09-16-2001 12:32 PM


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

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