How To Install python2-beautifulsoup4 on Rocky Linux 8

In this tutorial we learn how to install python2-beautifulsoup4 on Rocky Linux 8. python2-beautifulsoup4 is HTML/XML parser for quick-turnaround applications like screen-scraping

Introduction

In this tutorial we learn how to install python2-beautifulsoup4 on Rocky Linux 8.

What is python2-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 python2-beautifulsoup4 on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-beautifulsoup4.

Install python2-beautifulsoup4 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-beautifulsoup4 using dnf by running the following command:

sudo dnf -y install python2-beautifulsoup4

Install python2-beautifulsoup4 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-beautifulsoup4 using yum by running the following command:

sudo yum -y install python2-beautifulsoup4

How To Uninstall python2-beautifulsoup4 on Rocky Linux 8

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

sudo dnf remove python2-beautifulsoup4

python2-beautifulsoup4 Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/beautifulsoup4-4.6.3-py2.7.egg-info
/usr/lib/python2.7/site-packages/beautifulsoup4-4.6.3-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/beautifulsoup4-4.6.3-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/beautifulsoup4-4.6.3-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/beautifulsoup4-4.6.3-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/beautifulsoup4-4.6.3-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/bs4
/usr/lib/python2.7/site-packages/bs4/__init__.py
/usr/lib/python2.7/site-packages/bs4/__init__.pyc
/usr/lib/python2.7/site-packages/bs4/__init__.pyo
/usr/lib/python2.7/site-packages/bs4/builder
/usr/lib/python2.7/site-packages/bs4/builder/__init__.py
/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyc
/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyo
/usr/lib/python2.7/site-packages/bs4/builder/_html5lib.py
/usr/lib/python2.7/site-packages/bs4/builder/_html5lib.pyc
/usr/lib/python2.7/site-packages/bs4/builder/_html5lib.pyo
/usr/lib/python2.7/site-packages/bs4/builder/_htmlparser.py
/usr/lib/python2.7/site-packages/bs4/builder/_htmlparser.pyc
/usr/lib/python2.7/site-packages/bs4/builder/_htmlparser.pyo
/usr/lib/python2.7/site-packages/bs4/builder/_lxml.py
/usr/lib/python2.7/site-packages/bs4/builder/_lxml.pyc
/usr/lib/python2.7/site-packages/bs4/builder/_lxml.pyo
/usr/lib/python2.7/site-packages/bs4/dammit.py
/usr/lib/python2.7/site-packages/bs4/dammit.pyc
/usr/lib/python2.7/site-packages/bs4/dammit.pyo
/usr/lib/python2.7/site-packages/bs4/diagnose.py
/usr/lib/python2.7/site-packages/bs4/diagnose.pyc
/usr/lib/python2.7/site-packages/bs4/diagnose.pyo
/usr/lib/python2.7/site-packages/bs4/element.py
/usr/lib/python2.7/site-packages/bs4/element.pyc
/usr/lib/python2.7/site-packages/bs4/element.pyo
/usr/lib/python2.7/site-packages/bs4/testing.py
/usr/lib/python2.7/site-packages/bs4/testing.pyc
/usr/lib/python2.7/site-packages/bs4/testing.pyo
/usr/lib/python2.7/site-packages/bs4/tests
/usr/lib/python2.7/site-packages/bs4/tests/__init__.py
/usr/lib/python2.7/site-packages/bs4/tests/__init__.pyc
/usr/lib/python2.7/site-packages/bs4/tests/__init__.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.py
/usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_docs.py
/usr/lib/python2.7/site-packages/bs4/tests/test_docs.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_docs.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_html5lib.py
/usr/lib/python2.7/site-packages/bs4/tests/test_html5lib.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_html5lib.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_htmlparser.py
/usr/lib/python2.7/site-packages/bs4/tests/test_htmlparser.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_htmlparser.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_lxml.py
/usr/lib/python2.7/site-packages/bs4/tests/test_lxml.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_lxml.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_soup.py
/usr/lib/python2.7/site-packages/bs4/tests/test_soup.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_soup.pyo
/usr/lib/python2.7/site-packages/bs4/tests/test_tree.py
/usr/lib/python2.7/site-packages/bs4/tests/test_tree.pyc
/usr/lib/python2.7/site-packages/bs4/tests/test_tree.pyo
/usr/share/doc/python2-beautifulsoup4
/usr/share/doc/python2-beautifulsoup4/AUTHORS.txt
/usr/share/doc/python2-beautifulsoup4/NEWS.txt
/usr/share/doc/python2-beautifulsoup4/TODO.txt
/usr/share/licenses/python2-beautifulsoup4
/usr/share/licenses/python2-beautifulsoup4/COPYING.txt

References

Summary

In this tutorial we learn how to install python2-beautifulsoup4 on Rocky Linux 8 using yum and dnf.