Introduction to Sharutils

The Sharutils package contains utilities that can create 'shell' archives.

This package is known to build and work properly using an LFS 12.1 platform.

Package Information

Installation of Sharutils

Fix a heap buffer overflow, and an issue exposed by GCC-10:

sed -i 's/BUFSIZ/rw_base_size/' src/unshar.c &&
sed -i '/program_name/s/^/extern /' src/*opts.h

Install Sharutils by running the following commands:

sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c        &&
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h &&

./configure --prefix=/usr &&

To test the results, issue make check.

Now, as the root user:

make install


Installed Programs: shar, unshar, uudecode and uuencode
Installed Libraries: None
Installed Directories: None

Short Descriptions


creates "shell archives" (or shar files) which are in text format and can be mailed


unpacks a shar file


reads a file (or by default the standard input) and writes an encoded version to the standard output. The encoding uses only printing ASCII characters


reads a file (or by default the standard input) and decodes the uuencoded version to the standard output