How To Install python3-drf-yasg on Fedora 36

In this tutorial we learn how to install python3-drf-yasg in Fedora 36. python3-drf-yasg is Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest

Introduction

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

What is python3-drf-yasg

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code. Python 3 version.

We can use yum or dnf to install python3-drf-yasg on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-drf-yasg.

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

sudo dnf -y install python3-drf-yasg

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

sudo yum -y install python3-drf-yasg

How To Uninstall python3-drf-yasg on Fedora 36

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

sudo dnf remove python3-drf-yasg

python3-drf-yasg Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/drf_yasg
/usr/lib/python3.10/site-packages/drf_yasg-1.20.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/drf_yasg-1.20.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/drf_yasg-1.20.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/drf_yasg-1.20.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/drf_yasg-1.20.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/drf_yasg-1.20.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/drf_yasg/__init__.py
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/app_settings.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/app_settings.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/codecs.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/codecs.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/errors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/errors.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/generators.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/generators.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/middleware.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/middleware.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/openapi.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/openapi.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/renderers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/renderers.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/views.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/__pycache__/views.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/app_settings.py
/usr/lib/python3.10/site-packages/drf_yasg/codecs.py
/usr/lib/python3.10/site-packages/drf_yasg/errors.py
/usr/lib/python3.10/site-packages/drf_yasg/generators.py
/usr/lib/python3.10/site-packages/drf_yasg/inspectors
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__init__.py
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/field.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/field.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/query.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/query.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/view.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/__pycache__/view.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/base.py
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/field.py
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/query.py
/usr/lib/python3.10/site-packages/drf_yasg/inspectors/view.py
/usr/lib/python3.10/site-packages/drf_yasg/management
/usr/lib/python3.10/site-packages/drf_yasg/management/__init__.py
/usr/lib/python3.10/site-packages/drf_yasg/management/__pycache__
/usr/lib/python3.10/site-packages/drf_yasg/management/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/management/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/management/commands
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/__init__.py
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/__pycache__
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/__pycache__/generate_swagger.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/__pycache__/generate_swagger.cpython-310.pyc
/usr/lib/python3.10/site-packages/drf_yasg/management/commands/generate_swagger.py
/usr/lib/python3.10/site-packages/drf_yasg/middleware.py
/usr/lib/python3.10/site-packages/drf_yasg/openapi.py
/usr/lib/python3.10/site-packages/drf_yasg/renderers.py
/usr/lib/python3.10/site-packages/drf_yasg/static
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/immutable.min.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/insQ.min.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/redoc
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/redoc-init.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/redoc-old
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/redoc-old/redoc.min.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/redoc/redoc-logo.png
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/redoc/redoc.min.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/style.css
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/absolute-path.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/favicon-32x32.png
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/index.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/oauth2-redirect.html
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/swagger-ui-bundle.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/swagger-ui-es-bundle-core.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/swagger-ui-es-bundle.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/swagger-ui.css
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/swagger-ui-init.js
/usr/lib/python3.10/site-packages/drf_yasg/static/drf-yasg/url-polyfill.min.js
/usr/lib/python3.10/site-packages/drf_yasg/templates
/usr/lib/python3.10/site-packages/drf_yasg/templates/drf-yasg
/usr/lib/python3.10/site-packages/drf_yasg/templates/drf-yasg/redoc-old.html
/usr/lib/python3.10/site-packages/drf_yasg/templates/drf-yasg/redoc.html
/usr/lib/python3.10/site-packages/drf_yasg/templates/drf-yasg/swagger-ui.html
/usr/lib/python3.10/site-packages/drf_yasg/utils.py
/usr/lib/python3.10/site-packages/drf_yasg/views.py
/usr/share/doc/python3-drf-yasg
/usr/share/doc/python3-drf-yasg/README.rst
/usr/share/licenses/python3-drf-yasg
/usr/share/licenses/python3-drf-yasg/LICENSE.rst

References

Summary

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