Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Showing results for 
Search instead for 
Did you mean: 

unshar a file

Go to solution
Frequent Advisor

unshar a file

Hello ,
How to unshar a shar file?
john korterman
Honored Contributor

Re: unshar a file


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

# sh filename

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

Re: unshar a file


see also "man shar"

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
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,

Dennis Handly
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.
Frequent Advisor

Re: unshar a file

Thanx a lot for the support