How To Install python3-beautifulsoup4 on AlmaLinux 8

In this tutorial we learn how to install python3-beautifulsoup4 in AlmaLinux 8. python3-beautifulsoup4 is HTML/XML parser for quick-turnaround applications like screen-scraping

Introduction

In this tutorial we learn how to install python3-beautifulsoup4 on AlmaLinux 8.

What is python3-beautifulsoup4

Beautiful Soup is a Python HTML/XML parser designed for quick turnaround projects like screen-scraping. Three features make it powerful Beautiful Soup wont choke if you give it bad markup. Beautiful Soup provides a few simple methods and Pythonic idioms for navigating, searching, and modifying a parse tree. Beautiful Soup automatically converts incoming documents to Unicode and outgoing documents to UTF-8. Beautiful Soup parses anything you give it. Valuable data that was once locked up in poorly-designed websites is now within your reach. Projects that would have taken hours take only minutes with Beautiful Soup.

We can use yum or dnf to install python3-beautifulsoup4 on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-beautifulsoup4.

Install python3-beautifulsoup4 on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-beautifulsoup4 using dnf by running the following command:

sudo dnf -y install python3-beautifulsoup4

Install python3-beautifulsoup4 on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-beautifulsoup4 using yum by running the following command:

sudo yum -y install python3-beautifulsoup4

How To Uninstall python3-beautifulsoup4 on AlmaLinux 8

To uninstall only the python3-beautifulsoup4 package we can use the following command:

sudo dnf remove python3-beautifulsoup4

References

Summary

In this tutorial we learn how to install python3-beautifulsoup4 on AlmaLinux 8 using yum and dnf.