How to Install and Uninstall shc Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 10,2024

1. Install "shc" package

This guide covers the steps necessary to install shc on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install shc

2. Uninstall "shc" package

This guide covers the steps necessary to uninstall shc on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove shc $ sudo apt autoclean && sudo apt autoremove

3. Information about the shc package on Ubuntu 21.10 (Impish Indri)

Package: shc
Architecture: amd64
Version: 4.0.3-1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Tong Sun
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 82
Depends: libc6 (>= 2.14)
Filename: pool/universe/s/shc/shc_4.0.3-1_amd64.deb
Size: 22788
MD5sum: 8e9a9ca543227d66679c81474aa29d68
SHA1: b0c26a72d1dce95d18a93c57366af107e7210756
SHA256: 687d5f20b49b58d8e6bb38af278cd944c38ecf2cb4df692ebc29a0262cb2ce25
SHA512: 036b3d0a7ef0d77cffac3bb7c4fa4eae3c5b66d88ca0eba116db81cdc6ba6a6d442077c72e227626bc82f293520a3cd8d434200e02362ed4a110a69844af1b0d
Homepage: https://neurobin.org/projects/softwares/unix/shc/
Description-en: Shell script compiler
SHC is a generic shell script compiler.
It takes a script, which is specified on the command line and produces
C source code. The generated source code is then compiled and linked to
produce a stripped binary.
.
The compiled binary will still be dependent on the shell specified in
the first line of the shell code, thus shc does not create completely
independent binaries.
.
shc itself is not a compiler such as cc,
it rather encodes and encrypts a shell script and generates C source
code with the added expiration capability. It then uses the system
compiler to compile a stripped binary which behaves exactly like the
original script. Upon execution, the compiled binary will decrypt and
execute the code with the shells' -c option.
Description-md5: 55ae16afbce7d3b6827372c4e22f870b