The uuencode is actually installed by package sharutils. sharutils package contains the GNU shar utilities which is a set of tools for encoding and decoding packages of files in a special plain text format called shell archives (shar). This format can be sent through e-mail . This package also contains a uudecode.
First, check if the package is already there by running
# rpm –qa | grep sharutils
If the package is not there then follow the steps listed below. sharutils are basically delivered via Red-hat Optional Channel. Make sure the optional channel is enabled in your environment. Below is the process of how to install uuencode in Linux.
1.List the availability of sharutils . # yum --enablerepo=* list sharutils =================== Matched: sharutils ======================= [1msharutils(B[m.x86_64 : The GNU shar utilities for packaging and unpackaging shell archives. 2.Install the sharutils # yum --enablerepo=* install sharutils ======================================================= Package Arch Version Repository Size ======================================================= Installing: sharutils x86_64 4.6.1-2 distro 203 k Transaction Summary ======================================================= Install 1 Package(s) Upgrade 0 Package(s) Total download size: 203 k Is this ok [y/N]: y duration: 1416(ms) Installed products updated. Installed: sharutils.x86_64 0:4.6.1-2
3.Validate the installations # locate uuencode Will display the path of uuencode installations.
In case if you do not have yum configured. You can manually download and install it from Redhat if you have access to red-hat.
You can use wget with correct URL making sure you have the internet on the server with no firewall blocking access to the external world and then can install using rpm -i command.
That`s it all about how to install uuencode in Linux.