Packetwatch.net

Extracting files from Solaris packages



Last modified: May 2, 2011

Contents
1 - Summary
2 - Extract files


1 - Summary

This guide will show you how to extact files from Solaris packages. In this
guide we will extract files from the OpenSSH package from Sunfreeware. This has
been tested in Solaris 9 SPARC.


2 - Extract files

Download the OpenSSH package from Sunfreeware. In this example we will copy
the ssh and sftp binaries.
# mkdir openssh
# cd openssh/
# wget ftp://ftp.sunfreeware.com/pub/freeware/$arch/$rel/openssh-$ver-sol$rel-$arch-local.gz
# gunzip openssh-$ver-sol$rel-$arch-local.gz
# pkgtrans openssh-$ver-sol$rel-$arch-local .

The following packages are available:
  1  SMCosh581     openssh
                   (sparc) 5.8p1

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
Transferring  package instance
# find ./SMCosh581 -name ssh
./SMCosh581/reloc/bin/ssh
# find ./SMCosh581 -name sftp
./SMCosh581/reloc/bin/sftp
# sudo cp ./SMCosh581/reloc/bin/sftp /usr/local/bin/ssh
Password:
# sudo cp ./SMCosh581/reloc/bin/ssh /usr/local/bin/sftp
Password:
# sudo chown root:other /usr/local/bin/sftp
Password:
# sudo chown root:other /usr/local/bin/ssh
Password:
# sudo chmod 555 /usr/local/bin/sftp
Password:
# sudo chmod 555 /usr/local/bin/ssh
Password:
# cd ~
# rm -fr openssh/


Last modified: Thu Jan 1 00:00:00 1970 UTC
Packetwatch Research 2002-2017.