Databases
cancel
Showing results for
Did you mean:

SOLVED
Go to solution

## unshar a file

Hello ,
How to unshar a shar file?
Thanks
5 REPLIES
Honored Contributor
Solution

## Re: unshar a file

Hi,

make a cd to the directory where you want to unshar the (patch)file and:

# sh filename

regards,
John K.
it would be nice if you always got a second chance
Honored Contributor

## Re: unshar a file

hi,

..
The shar command bundles the named files and directories into a single distribution package suitable for mailing or moving. The files can contain any data, including executables. The resulting package, written to standard output, is a shell script file that can be edited (to add messages at the beginning, etc.).

To unpack package, use the sh command with the package name as an argument as follows:

sh package
...

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)

## Re: unshar a file

hai chetana,

copy your file which you want to unshar to a desired directory, and exicute the following comand;

# sh

After unsharing you will get the .depot file and txt file. The .depot file you can use for installation along with swinstall command.

Best wishes,

Vinu
Acclaimed Contributor

## Re: unshar a file

>Vinu: copy your file which you want to unshar to a desired directory,

No need to copy, you can move. And in any case, you must be in the directory, unless absolute paths were used to create the shar file.