How To Install python2-pyyaml on Rocky Linux 8
Introduction
In this tutorial we learn how to install python2-pyyaml
on Rocky Linux 8.
What is python2-pyyaml
YAML is a data serialization format designed for human readability and interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API, and sensible error messages. PyYAML supports standard YAML tags and provides Python-specific tags that allow to represent an arbitrary Python object. PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistance.
We can use yum
or dnf
to install python2-pyyaml
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-pyyaml.
Install python2-pyyaml on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python2-pyyaml
using dnf
by running the following command:
sudo dnf -y install python2-pyyaml
Install python2-pyyaml on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python2-pyyaml
using yum
by running the following command:
sudo yum -y install python2-pyyaml
How To Uninstall python2-pyyaml on Rocky Linux 8
To uninstall only the python2-pyyaml
package we can use the following command:
sudo dnf remove python2-pyyaml
python2-pyyaml Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/3d32a91fdf657915694437abb92d4120013335
/usr/lib64/python2.7/site-packages/PyYAML-3.12-py2.7.egg-info
/usr/lib64/python2.7/site-packages/_yaml.so
/usr/lib64/python2.7/site-packages/yaml
/usr/lib64/python2.7/site-packages/yaml/__init__.py
/usr/lib64/python2.7/site-packages/yaml/__init__.pyc
/usr/lib64/python2.7/site-packages/yaml/__init__.pyo
/usr/lib64/python2.7/site-packages/yaml/composer.py
/usr/lib64/python2.7/site-packages/yaml/composer.pyc
/usr/lib64/python2.7/site-packages/yaml/composer.pyo
/usr/lib64/python2.7/site-packages/yaml/constructor.py
/usr/lib64/python2.7/site-packages/yaml/constructor.pyc
/usr/lib64/python2.7/site-packages/yaml/constructor.pyo
/usr/lib64/python2.7/site-packages/yaml/cyaml.py
/usr/lib64/python2.7/site-packages/yaml/cyaml.pyc
/usr/lib64/python2.7/site-packages/yaml/cyaml.pyo
/usr/lib64/python2.7/site-packages/yaml/dumper.py
/usr/lib64/python2.7/site-packages/yaml/dumper.pyc
/usr/lib64/python2.7/site-packages/yaml/dumper.pyo
/usr/lib64/python2.7/site-packages/yaml/emitter.py
/usr/lib64/python2.7/site-packages/yaml/emitter.pyc
/usr/lib64/python2.7/site-packages/yaml/emitter.pyo
/usr/lib64/python2.7/site-packages/yaml/error.py
/usr/lib64/python2.7/site-packages/yaml/error.pyc
/usr/lib64/python2.7/site-packages/yaml/error.pyo
/usr/lib64/python2.7/site-packages/yaml/events.py
/usr/lib64/python2.7/site-packages/yaml/events.pyc
/usr/lib64/python2.7/site-packages/yaml/events.pyo
/usr/lib64/python2.7/site-packages/yaml/loader.py
/usr/lib64/python2.7/site-packages/yaml/loader.pyc
/usr/lib64/python2.7/site-packages/yaml/loader.pyo
/usr/lib64/python2.7/site-packages/yaml/nodes.py
/usr/lib64/python2.7/site-packages/yaml/nodes.pyc
/usr/lib64/python2.7/site-packages/yaml/nodes.pyo
/usr/lib64/python2.7/site-packages/yaml/parser.py
/usr/lib64/python2.7/site-packages/yaml/parser.pyc
/usr/lib64/python2.7/site-packages/yaml/parser.pyo
/usr/lib64/python2.7/site-packages/yaml/reader.py
/usr/lib64/python2.7/site-packages/yaml/reader.pyc
/usr/lib64/python2.7/site-packages/yaml/reader.pyo
/usr/lib64/python2.7/site-packages/yaml/representer.py
/usr/lib64/python2.7/site-packages/yaml/representer.pyc
/usr/lib64/python2.7/site-packages/yaml/representer.pyo
/usr/lib64/python2.7/site-packages/yaml/resolver.py
/usr/lib64/python2.7/site-packages/yaml/resolver.pyc
/usr/lib64/python2.7/site-packages/yaml/resolver.pyo
/usr/lib64/python2.7/site-packages/yaml/scanner.py
/usr/lib64/python2.7/site-packages/yaml/scanner.pyc
/usr/lib64/python2.7/site-packages/yaml/scanner.pyo
/usr/lib64/python2.7/site-packages/yaml/serializer.py
/usr/lib64/python2.7/site-packages/yaml/serializer.pyc
/usr/lib64/python2.7/site-packages/yaml/serializer.pyo
/usr/lib64/python2.7/site-packages/yaml/tokens.py
/usr/lib64/python2.7/site-packages/yaml/tokens.pyc
/usr/lib64/python2.7/site-packages/yaml/tokens.pyo
/usr/share/doc/python2-pyyaml
/usr/share/doc/python2-pyyaml/CHANGES
/usr/share/doc/python2-pyyaml/PKG-INFO
/usr/share/doc/python2-pyyaml/README
/usr/share/doc/python2-pyyaml/examples
/usr/share/doc/python2-pyyaml/examples/pygments-lexer
/usr/share/doc/python2-pyyaml/examples/pygments-lexer/example.yaml
/usr/share/doc/python2-pyyaml/examples/pygments-lexer/yaml.py
/usr/share/doc/python2-pyyaml/examples/yaml-highlight
/usr/share/doc/python2-pyyaml/examples/yaml-highlight/yaml_hl.cfg
/usr/share/doc/python2-pyyaml/examples/yaml-highlight/yaml_hl.py
/usr/share/licenses/python2-pyyaml
/usr/share/licenses/python2-pyyaml/LICENSE
References
Summary
In this tutorial we learn how to install python2-pyyaml
on Rocky Linux 8 using yum and dnf.