How To Install python3-pysmb on AlmaLinux 8

In this tutorial we learn how to install python3-pysmb in AlmaLinux 8. python3-pysmb is Python SMB/CIFS library

Introduction

In this tutorial we learn how to install python3-pysmb on AlmaLinux 8.

What is python3-pysmb

pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders.

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

Install python3-pysmb on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-pysmb using dnf by running the following command:

sudo dnf -y install python3-pysmb

Install python3-pysmb on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-pysmb using yum by running the following command:

sudo yum -y install python3-pysmb

How To Uninstall python3-pysmb on AlmaLinux 8

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

sudo dnf remove python3-pysmb

References

Summary

In this tutorial we learn how to install python3-pysmb on AlmaLinux 8 using yum and dnf.