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

Last updated: May 14,2024

1. Install "twine" package

Please follow the step by step instructions below to install twine on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install twine

2. Uninstall "twine" package

This is a short guide on how to uninstall twine on Ubuntu 21.10 (Impish Indri):

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

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

Package: twine
Architecture: all
Version: 3.4.2-1
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 374
Depends: python3-importlib-metadata (>= 3.6), python3-colorama (>= 0.4.3), python3-keyring, python3-pkginfo (>= 1.4.2), python3-readme-renderer, python3-requests, python3-requests-toolbelt, python3-rfc3986 (>= 1.4.0), python3-tqdm, python3:any, libjs-sphinxdoc (>= 2.4.3-5~), sphinx-rtd-theme-common (>= 0.5.1+dfsg)
Filename: pool/universe/t/twine/twine_3.4.2-1_all.deb
Size: 58428
MD5sum: d085d4e65249d38756dc65f2dc434be4
SHA1: 47468ed2587374acab489c38f67c406c852d61b6
SHA256: b1ac1bcfe80b0b30f6cafedf54353209a4764ba30136b13b674e3426f7f63adb
SHA512: fb24a9b73df0c193a06392e7f6000f356ed9a2b3f95b6f17e8f9a8c9dd186e544f87857e99c2b9adfc613493e971f0195924a49039c6b57437f7c87d0b9c7804
Homepage: https://github.com/pypa/twine
Description-en: 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: 85dc96f3482fa75a4f41796dff720d43