How To Install python3-send2trash on Fedora 36

In this tutorial we learn how to install python3-send2trash in Fedora 36. python3-send2trash is Python library to natively send files to Trash

Introduction

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

What is python3-send2trash

Send2Trash is a small package that sends files to the Trash (or Recycle Bin) natively and on all platforms. On OS X, it uses native FSMoveObjectToTrashSync Cocoa calls, on Windows, it uses native (and ugly) SHFileOperation win32 calls. On other platforms, if PyGObject and GIO are available, it will use this. Otherwise, it will fallback to its own implementation of the trash specifications from freedesktop.org.

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

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

sudo dnf -y install python3-send2trash

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

sudo yum -y install python3-send2trash

How To Uninstall python3-send2trash on Fedora 36

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

sudo dnf remove python3-send2trash

python3-send2trash Package Contents on Fedora 36

/usr/bin/send2trash
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/Send2Trash-1.8.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/send2trash
/usr/lib/python3.10/site-packages/send2trash/IFileOperationProgressSink.py
/usr/lib/python3.10/site-packages/send2trash/__init__.py
/usr/lib/python3.10/site-packages/send2trash/__main__.py
/usr/lib/python3.10/site-packages/send2trash/__pycache__
/usr/lib/python3.10/site-packages/send2trash/__pycache__/IFileOperationProgressSink.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/IFileOperationProgressSink.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_gio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_gio.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_osx.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_osx.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_osx_ctypes.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_osx_ctypes.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_osx_pyobjc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_osx_pyobjc.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_other.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_other.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_win.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_win.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_win_legacy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_win_legacy.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_win_modern.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/plat_win_modern.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/send2trash/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/send2trash/compat.py
/usr/lib/python3.10/site-packages/send2trash/exceptions.py
/usr/lib/python3.10/site-packages/send2trash/plat_gio.py
/usr/lib/python3.10/site-packages/send2trash/plat_osx.py
/usr/lib/python3.10/site-packages/send2trash/plat_osx_ctypes.py
/usr/lib/python3.10/site-packages/send2trash/plat_osx_pyobjc.py
/usr/lib/python3.10/site-packages/send2trash/plat_other.py
/usr/lib/python3.10/site-packages/send2trash/plat_win.py
/usr/lib/python3.10/site-packages/send2trash/plat_win_legacy.py
/usr/lib/python3.10/site-packages/send2trash/plat_win_modern.py
/usr/lib/python3.10/site-packages/send2trash/util.py
/usr/share/doc/python3-send2trash
/usr/share/doc/python3-send2trash/CHANGES.rst
/usr/share/doc/python3-send2trash/README.rst
/usr/share/licenses/python3-send2trash
/usr/share/licenses/python3-send2trash/LICENSE

References

Summary

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