How To Install python-peak-util-assembler on CentOS 7
Introduction
In this tutorial we learn how to install python-peak-util-assembler
on CentOS 7.
What is python-peak-util-assembler
peak.util.assembler is a simple bytecode assembler module that handles most low-level bytecode generation details like jump offsets, stack size tracking, line number table generation, constant and variable name index tracking, etc. That way, you can focus your attention on the desired semantics of your bytecode instead of on these mechanical issues. In addition to a low-level opcode-oriented API for directly generating specific Python bytecodes, this module also offers an extensible mini-AST framework for generating code from high-level specifications. This framework does most of the work needed to transform tree-like structures into linear bytecode instructions, and includes the ability to do compile-time constant folding.
We can use yum
or dnf
to install python-peak-util-assembler
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-peak-util-assembler.
Install python-peak-util-assembler on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install python-peak-util-assembler
using yum
by running the following command:
sudo yum -y install python-peak-util-assembler
Install python-peak-util-assembler on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install python-peak-util-assembler
using dnf
by running the following command:
sudo dnf -y install python-peak-util-assembler
How To Uninstall python-peak-util-assembler on CentOS 7
To uninstall only the python-peak-util-assembler
package we can use the following command:
sudo dnf remove python-peak-util-assembler
References
Summary
In this tutorial we learn how to install python-peak-util-assembler
on CentOS 7 using yum
and dnf
.