How to Install and Uninstall python-yaml Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 22,2024

1. Install "python-yaml" package

Please follow the guidance below to install python-yaml on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install python-yaml

2. Uninstall "python-yaml" package

This guide covers the steps necessary to uninstall python-yaml on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove python-yaml $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-yaml package on Ubuntu 20.04 LTS (Focal Fossa)

Package: python-yaml
Architecture: amd64
Version: 5.3.1-1ubuntu0.1
Priority: optional
Section: universe/python
Source: pyyaml
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 545
Depends: python2 (<< 2.8), python2 (>= 2.7~), python2:any (<< 2.8), python2:any (>= 2.7~), libc6 (>= 2.14), libyaml-0-2
Filename: pool/universe/p/pyyaml/python-yaml_5.3.1-1ubuntu0.1_amd64.deb
Size: 130324
MD5sum: 4da7a9eae692202d2f754e1f2b8ed503
SHA1: 4e655dd5e530d3289d6876329453f3058afd9024
SHA256: 0bf9224ec49eb4320973151f9c6d94973f5b3e83cd67e70459a7e87e60147a87
SHA512: 5ffd813031b8d9751323bf6f6c5b39eabd309bb91d769c45e0704c49ba03caf2544a02cacc436fc2c7f14302620c9f820a3c920fee45047631f65a93bea2062e
Homepage: https://github.com/yaml/pyyaml
Description: YAML parser and emitter for Python
Description-md5: 82d5290a45a0b6b13c828ddb2dd65a9c

Package: python-yaml
Architecture: amd64
Version: 5.3.1-1
Priority: optional
Section: universe/python
Source: pyyaml
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 544
Depends: python2 (<< 2.8), python2 (>= 2.7~), python2:any (<< 2.8), python2:any (>= 2.7~), libc6 (>= 2.14), libyaml-0-2
Filename: pool/universe/p/pyyaml/python-yaml_5.3.1-1_amd64.deb
Size: 130308
MD5sum: 1a8e944263d07da8cabef6a370c515d9
SHA1: cfe106eb43794a7ad0a0bbe3f76d94bb75890b99
SHA256: ce18a862a1b96c652786dcedb0a5be0cf7632ba1dbcd430ec2472913bbbc691d
Homepage: https://github.com/yaml/pyyaml
Description: YAML parser and emitter for Python
Description-md5: 82d5290a45a0b6b13c828ddb2dd65a9c