How To Install python3-rospkg on Fedora 36

In this tutorial we learn how to install python3-rospkg in Fedora 36. python3-rospkg is Documentation for python-rospkg

Introduction

In this tutorial we learn how to install python3-rospkg on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-rospkg.

Install python3-rospkg on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove python3-rospkg

python3-rospkg Package Contents on Fedora 36

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

References

Summary

In this tutorial we learn how to install python3-rospkg on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).