How to Install and Uninstall twine Package on Kali Linux

Last updated: November 26,2024

1. Install "twine" package

This tutorial shows how to install twine on Kali Linux

$ sudo apt update $ sudo apt install twine

2. Uninstall "twine" package

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

$ sudo apt remove twine $ sudo apt autoclean && sudo apt autoremove

3. Information about the twine package on Kali Linux

Package: twine
Version: 5.0.0-1
Installed-Size: 1540
Maintainer: Debian Python Team
Architecture: all
Depends: python3-importlib-metadata (>= 3.6), python3-keyring, python3-pkginfo (>= 1.8.1), python3-readme-renderer (>= 35), python3-requests, python3-requests-toolbelt, python3-rfc3986 (>= 1.4.0), python3-rich (>= 12), python3-urllib3, python3:any, libjs-sphinxdoc (>= 7.2.2)
Size: 138532
SHA256: 23670ba0e9c973635f857055db3528af3495d0606745ef4508c2d6f25ab60f97
SHA1: fef7456d3ef5659a571732347bde2ad83d90b268
MD5sum: 4f203cea1d32e205728d86dacc559be6
Description: utility for interacting with PyPI
Twine is a tool for uploading distributions (in the Python meaning) to PyPi.
.
Why should twine be used over the traditional approach?
.
The biggest reason to use twine is that python setup.py upload uploads files
over plaintext. This means anytime you use it you expose your username and
password to a MITM attack. Twine uses only verified TLS to upload to PyPI
protecting your credentials from theft.
.
Secondly it allows you to precreate your distribution files. python setup.py
upload only allows you to upload something that you’ve created in the same
command invocation. This means that you cannot test the exact file you’re
going to upload to PyPI to ensure that it works before uploading it.
.
Finally it allows you to pre-sign your files and pass the .asc files into the
command line invocation (twine upload twine-1.0.1.tar.gz
twine-1.0.1.tar.gz.asc). This enables you to be assured that you’re typing
your gpg passphrase into gpg itself and not anything else since you will be
the one directly executing gpg --detach-sign -a .
.
Features:
.
- Verified HTTPS Connections
- Uploading doesn’t require executing setup.py
- Uploading files that have already been created, allowing testing of
distributions before release
- Supports uploading any packaging format (including wheels).
Description-md5:
Homepage: https://github.com/pypa/twine
Section: utils
Priority: optional
Filename: pool/main/t/twine/twine_5.0.0-1_all.deb