How to Install and Uninstall gosu Package on Kali Linux

Last updated: July 08,2024

1. Install "gosu" package

Please follow the steps below to install gosu on Kali Linux

$ sudo apt update $ sudo apt install gosu

2. Uninstall "gosu" package

Please follow the guidance below to uninstall gosu on Kali Linux:

$ sudo apt remove gosu $ sudo apt autoclean && sudo apt autoremove

3. Information about the gosu package on Kali Linux

Package: gosu
Version: 1.17-1
Installed-Size: 2367
Maintainer: pkg-go
Architecture: amd64
Size: 827492
SHA256: 1fb3896d32753b03055ba971fe24cfff0ea269c228a4135c36e957757ca52400
SHA1: 9f1c30f6e4b1a72ad66956cb980cc8d5a42494b0
MD5sum: f33bf191bd8b57510e0ed4f60d66178a
Description: Simple Go-based setuid+setgid+setgroups+exec
This is a simple tool grown out of the simple fact that "su" and "sudo" have
very strange and often annoying TTY and signal-forwarding behavior. They're
also somewhat complex to setup and use (especially in the case of "sudo"),
which allows for a great deal of expressivity, but falls flat if all you need
is "run this specific application as this specific user and get out of the
pipeline".
.
The core of how "gosu" works is stolen directly from how Docker/libcontainer
itself starts an application inside a container (and in fact, is using the
"/etc/passwd" processing code directly from libcontainer's codebase).
.
Once the user/group is processed, we switch to that user, then we "exec" the
specified process and "gosu" itself is no longer resident or involved in the
process lifecycle at all. This avoids all the issues of signal passing and TTY,
and punts them to the process invoking "gosu" and the process being invoked by
"gosu", where they belong.
Description-md5:
Homepage: https://github.com/tianon/gosu
Built-Using: golang-1.21 (= 1.21.3-1), golang-github-moby-sys (= 0.0~git20231105.a4e0878-1), golang-golang-x-sys (= 0.13.0-1)
Section: admin
Priority: optional
Filename: pool/main/g/gosu/gosu_1.17-1_amd64.deb