How to install *.pkg.tar.tar on Linux?

Hi Guys,
I need some suggestion as how to install

openssl-1.0.1.g-1-i686.pkg.tar.tar
openssl-1.0.1.g-1-x86_64.pkg.tar.tar

on Linux system?
is for 32bit system and other is for 64 bit system linux machine.
How to untar them?
I tried few commands but did not work.
I need to upgrade to OpenSSL 1.0.1.g as it is not vunlerable to some threats CVE-2014-0160
Current version are as below:-

rpm -q openssl
openssl-1.0.1e-16.el6_5.7.x86_64

Thanks,
manali

Where did you get these files ? The ".tar.tar" extension is dubious. Might be Archlinux packages.

AFAIK: Arch uses AUR packages, at least if its Arch only.

Other than that, how about:

su -
yum update openssl

Since Fedora Rawhide (devel) already provides: openssl-1.0.1h-3.fc21.x86_64
I'd assume g might be available in the epel6 repos.

If not, i'd highly recomend to re-download it from its original source: OpenSSL: Source, Tarballs
EDIT: to untar simply: tar axf filename.tar.gz

Hope this helps

1 Like

This is one way to install source tarballs,

[akshay@nio test]$ pwd
/home/akshay/Desktop/test
[akshay@nio test]$ wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz
[akshay@nio test]$ ls -1
openssl-1.0.0a.tar.gz
[akshay@nio test]$ tar -xf openssl-1.0.0a.tar.gz; ls -1 
openssl-1.0.0a
openssl-1.0.0a.tar.gz
[akshay@nio test]$ cd openssl-1.0.0a
[akshay@nio openssl-1.0.0a]$  ./config --prefix=/home/akshay/Desktop/test/ssl --openssldir=/home/akshay/Desktop/test/ssl/openssl
...
...
make[1]: Leaving directory `/home/akshay/Desktop/test/openssl-1.0.0a/test'

Configured for linux-x86_64.
[akshay@nio openssl-1.0.0a]$ make ; make install
...
...
cp openssl.pc /home/akshay/Desktop/test/ssl/lib64/pkgconfig
chmod 644 /home/akshay/Desktop/test/ssl/lib64/pkgconfig/openssl.pc
[akshay@nio openssl-1.0.0a]$ cd ../ssl/; ls -1
bin
include
lib64
openssl
[akshay@nio ssl]$ cd bin; ls -1
c_rehash
openssl
[akshay@nio bin]$ ./openssl 
OpenSSL> version
OpenSSL 1.0.0a 1 Jun 2010
OpenSSL> 

Tested on

$ uname -a
Linux  2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

---------- Post updated at 05:36 PM ---------- Previous update was at 05:32 PM ----------

if you do not specify prefix then default location /usr/local will be used

But how to know whether it is 64 bit or 32 bit i need packge for both 32 and 64 bit
i downloded this from above link

4475692 Jun 5 13:24:28 2014 openssl-1.0.1h.tar.gz (MD5) (SHA1) (PGP sign) [LATEST]

Have a look at:

yum info openssl

And just asking, why would you need both, 32bit and 64bit on the same machine, isnt that a security/compability issue?

EDIT:
Just something (general info) i found there: OpenSSL: Support, Frequently Asked Questions

Now, me want to build this too, in theory, you could simply run this script on both a 32bit machine and a 64bit machine, to get the specific build.
NOTE there are instructions how to do both on a single machine (AFAIK must be 64 bit though), but thats 'too much' for me as of now, see INSTALL or README for more details.

#!/bin/bash
#
#	REF: http://www.unix.com/linux/248258-how-install-pkg-tar-tar-linux.html#post302905687
#
#	Build openssl from scratch, by sea
#	No warranties or promises are made, its all your own risk.
#
#
#
#	Variables to change
#
	VER=1.0.1h
	TMP_DIR=~/.cache/openssl
	BUILD_DIR=$HOME/test
#
#	Variables to NOT change
#
	URL=http://www.openssl.org/source/openssl-$VER.tar.gz
	TARBALL=${URL##*/}
	TAR_DIR=${TARBALL:0:-7}
# Dont know why there is only a lib dir on my 64bit machine
	#uname -m | grep -q 64 && \
	#	LIB=lib64 || \
		LIB=lib
#
#	Clean tempdir & download
#
	[[ -d $TMP_DIR ]] || mkdir -p $TMP_DIR
	[[ -d $BUILD_DIR ]] || mkdir -p $BUILD_DIR
	cd $TMP_DIR && \
		rm -fr * || (printf %s "$TMP_DIR does not exist!\n";exit 1)
	wget $URL
#
#	Verify tarball
#
	wget $URL.sha1
	sumFile=$(sha1sum $TARBALL|awk '{print $1}')
	sumCheck=$(cat $TARBALL.sha1)
	[[ $sumFile = $sumCheck ]] && \
		printf %s "Checksum matches!\n" || \
		(printf %s "Checksum dont match!\n";exit 1)
#
#	Extract & change to tempdir
#
	tar axf $TARBALL
	cd $TAR_DIR
#
#	Build it
#
	./config --prefix=$BUILD_DIR/ssl --openssldir=$BUILD_DIR/ssl/openssl
	make
	make install
#
#	Thank you Akshay for these req's
#
	cp openssl.pc $BUILD_DIR/ssl/$LIB/pkgconfig
	chmod 644 $BUILD_DIR/ssl/$LIB/pkgconfig/openssl.pc
	cd $BUILD_DIR/ssl/bin
	./openssl << EOF
version
quit
EOF

exit 0

Written & functional on: 3.15.0-0.rc8.git4.1.fc21.x86_64

Hope this helps