How To Install python-rpm-macros.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-rpm-macros.noarch
on Amazon Linux 2.
What is python-rpm-macros.noarch
This package contains the unversioned Python RPM macros, that most implementations should rely on. You should not need to install this package manually as the various python?-devel packages require it. So install a python-devel package instead.
We can use yum
to install python-rpm-macros.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-rpm-macros.noarch.
Install python-rpm-macros.noarch on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-rpm-macros.noarch
using yum
by running the following command:
sudo yum -y install python-rpm-macros.noarch
How To Uninstall python-rpm-macros.noarch on Amazon Linux 2
To uninstall only the python-rpm-macros.noarch
package we can use the following command:
sudo yum remove python-rpm-macros.noarch
python-rpm-macros.noarch Package Contents on Amazon Linux 2
/usr/lib/rpm/macros.d/macros.pybytecompile
/usr/lib/rpm/macros.d/macros.python
References
Summary
In this tutorial we learn how to install python-rpm-macros.noarch
on Amazon Linux 2 using yum.