How To Install python3-rospkg on Rocky Linux 8

In this tutorial we learn how to install python3-rospkg on Rocky Linux 8. python3-rospkg is Documentation for python-rospkg

Introduction

In this tutorial we learn how to install python3-rospkg on Rocky Linux 8.

What is python3-rospkg

The ROS packaging system simplifies development and distribution of code libraries. It enables you to easily specify dependencies between code libraries, easily interact with those libraries from the command-line, and release your code for others to use.

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

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

sudo dnf -y install python3-rospkg

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

sudo yum -y install python3-rospkg

How To Uninstall python3-rospkg on Rocky Linux 8

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

sudo dnf remove python3-rospkg

python3-rospkg Package Contents on Rocky Linux 8

/usr/bin/python3-rosversion
/usr/lib/python3.6/site-packages/rospkg
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/rospkg-1.3.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/rospkg/__init__.py
/usr/lib/python3.6/site-packages/rospkg/__pycache__
/usr/lib/python3.6/site-packages/rospkg/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/common.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/common.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/distro.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/distro.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/environment.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/environment.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/manifest.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/manifest.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/os_detect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/os_detect.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/rospack.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/rospack.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/rosversion.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/rosversion.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/stack.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rospkg/__pycache__/stack.cpython-36.pyc
/usr/lib/python3.6/site-packages/rospkg/common.py
/usr/lib/python3.6/site-packages/rospkg/distro.py
/usr/lib/python3.6/site-packages/rospkg/environment.py
/usr/lib/python3.6/site-packages/rospkg/manifest.py
/usr/lib/python3.6/site-packages/rospkg/os_detect.py
/usr/lib/python3.6/site-packages/rospkg/rospack.py
/usr/lib/python3.6/site-packages/rospkg/rosversion.py
/usr/lib/python3.6/site-packages/rospkg/stack.py
/usr/share/doc/python3-rospkg
/usr/share/doc/python3-rospkg/README.md
/usr/share/man/man1/python3-rosversion.1.gz
/usr/share/rospkg
/usr/share/rospkg/manifest.xml

References

Summary

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