How To Install python3-smi on Fedora 36

In this tutorial we learn how to install python3-smi in Fedora 36. python3-smi is A Python implementation of SNMP/SMI MIB parsing and conversion library

Introduction

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

What is python3-smi

PySMI is a pure-Python implementation of SNMP SMI MIB parser. This tool is designed to turn ASN.1 MIBs into various formats. As of this moment, JSON and pysnmp modules can be generated from ASN.1 MIBs. - Understands SMIv1, SMIv2 and de-facto SMI dialects - Turns MIBs into pysnmp classes and JSON documents - Maintains an index of MIB objects over many MIB modules - Automatically pulls ASN.1 MIBs from local directories, ZIP archives, HTTP and FTP servers

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

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

sudo dnf -y install python3-smi

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

sudo yum -y install python3-smi

How To Uninstall python3-smi on Fedora 36

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

sudo dnf remove python3-smi

python3-smi Package Contents on Fedora 36

/usr/bin/mibcopy
/usr/bin/mibdump
/usr/lib/python3.10/site-packages/pysmi
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pysmi-0.3.4-py3.10.egg-info/zip-safe
/usr/lib/python3.10/site-packages/pysmi/__init__.py
/usr/lib/python3.10/site-packages/pysmi/__pycache__
/usr/lib/python3.10/site-packages/pysmi/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/compiler.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/compiler.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/debug.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/debug.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/error.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/error.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/mibinfo.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/__pycache__/mibinfo.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower
/usr/lib/python3.10/site-packages/pysmi/borrower/__init__.py
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/anyfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/anyfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/pyfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/__pycache__/pyfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/borrower/anyfile.py
/usr/lib/python3.10/site-packages/pysmi/borrower/base.py
/usr/lib/python3.10/site-packages/pysmi/borrower/pyfile.py
/usr/lib/python3.10/site-packages/pysmi/codegen
/usr/lib/python3.10/site-packages/pysmi/codegen/__init__.py
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/jsondoc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/jsondoc.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/null.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/null.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/pysnmp.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/pysnmp.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/symtable.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/__pycache__/symtable.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/codegen/base.py
/usr/lib/python3.10/site-packages/pysmi/codegen/jsondoc.py
/usr/lib/python3.10/site-packages/pysmi/codegen/null.py
/usr/lib/python3.10/site-packages/pysmi/codegen/pysnmp.py
/usr/lib/python3.10/site-packages/pysmi/codegen/symtable.py
/usr/lib/python3.10/site-packages/pysmi/compat.py
/usr/lib/python3.10/site-packages/pysmi/compiler.py
/usr/lib/python3.10/site-packages/pysmi/debug.py
/usr/lib/python3.10/site-packages/pysmi/error.py
/usr/lib/python3.10/site-packages/pysmi/lexer
/usr/lib/python3.10/site-packages/pysmi/lexer/__init__.py
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__/smi.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/lexer/__pycache__/smi.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/lexer/base.py
/usr/lib/python3.10/site-packages/pysmi/lexer/smi.py
/usr/lib/python3.10/site-packages/pysmi/mibinfo.py
/usr/lib/python3.10/site-packages/pysmi/parser
/usr/lib/python3.10/site-packages/pysmi/parser/__init__.py
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/dialect.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/dialect.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/null.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/null.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smi.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smi.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smiv1.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smiv1.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smiv1compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smiv1compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smiv2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/__pycache__/smiv2.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/parser/base.py
/usr/lib/python3.10/site-packages/pysmi/parser/dialect.py
/usr/lib/python3.10/site-packages/pysmi/parser/null.py
/usr/lib/python3.10/site-packages/pysmi/parser/smi.py
/usr/lib/python3.10/site-packages/pysmi/parser/smiv1.py
/usr/lib/python3.10/site-packages/pysmi/parser/smiv1compat.py
/usr/lib/python3.10/site-packages/pysmi/parser/smiv2.py
/usr/lib/python3.10/site-packages/pysmi/reader
/usr/lib/python3.10/site-packages/pysmi/reader/__init__.py
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/callback.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/callback.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/ftpclient.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/ftpclient.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/httpclient.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/httpclient.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/localfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/localfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/url.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/url.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/zipreader.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/__pycache__/zipreader.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/reader/base.py
/usr/lib/python3.10/site-packages/pysmi/reader/callback.py
/usr/lib/python3.10/site-packages/pysmi/reader/ftpclient.py
/usr/lib/python3.10/site-packages/pysmi/reader/httpclient.py
/usr/lib/python3.10/site-packages/pysmi/reader/localfile.py
/usr/lib/python3.10/site-packages/pysmi/reader/url.py
/usr/lib/python3.10/site-packages/pysmi/reader/zipreader.py
/usr/lib/python3.10/site-packages/pysmi/searcher
/usr/lib/python3.10/site-packages/pysmi/searcher/__init__.py
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/anyfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/anyfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/pyfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/pyfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/pypackage.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/pypackage.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/stub.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/__pycache__/stub.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/searcher/anyfile.py
/usr/lib/python3.10/site-packages/pysmi/searcher/base.py
/usr/lib/python3.10/site-packages/pysmi/searcher/pyfile.py
/usr/lib/python3.10/site-packages/pysmi/searcher/pypackage.py
/usr/lib/python3.10/site-packages/pysmi/searcher/stub.py
/usr/lib/python3.10/site-packages/pysmi/writer
/usr/lib/python3.10/site-packages/pysmi/writer/__init__.py
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/callback.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/callback.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/localfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/localfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/pyfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/__pycache__/pyfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pysmi/writer/base.py
/usr/lib/python3.10/site-packages/pysmi/writer/callback.py
/usr/lib/python3.10/site-packages/pysmi/writer/localfile.py
/usr/lib/python3.10/site-packages/pysmi/writer/pyfile.py
/usr/share/doc/python3-smi
/usr/share/doc/python3-smi/CHANGES.rst
/usr/share/doc/python3-smi/README.md
/usr/share/doc/python3-smi/THANKS.txt
/usr/share/doc/python3-smi/TODO.txt
/usr/share/doc/python3-smi/always-borrow-precompiled-pysnmp-files.py
/usr/share/doc/python3-smi/borrow-precompiled-pysnmp-files-on-failure.py
/usr/share/doc/python3-smi/compile-smistar-mibs-into-pysnmp-files-if-needed.py
/usr/share/doc/python3-smi/compile-smiv2-mibs-from-text-into-pysnmp-code.py
/usr/share/doc/python3-smi/download-and-compile-smistar-mibs-into-json.py
/usr/share/doc/python3-smi/download-and-compile-smistar-mibs-into-pysnmp-files.py
/usr/share/licenses/python3-smi
/usr/share/licenses/python3-smi/LICENSE.rst

References

Summary

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