How To Install python3-dnf-plugin-cow on Fedora 36

In this tutorial we learn how to install python3-dnf-plugin-cow in Fedora 36. python3-dnf-plugin-cow is DNF plugin to enable Copy on Write in RPM - Python3

Introduction

In this tutorial we learn how to install python3-dnf-plugin-cow on Fedora 36.

What is python3-dnf-plugin-cow

Installing this package enables a DNF plugin which changes the behaviour of librepo. Instead of downloading rpm files directly into cache before installation they will be “transcoded” into “extent based” rpms which contain all the constituent files of the rpm already uncompressed. This package depends on a version of rpm which includes /usr/bin/rpm2extents and the sub-package rpm-plugin-reflink which understands these “extent based” rpms and can install files without copying the underlying data. This package broadly assumes the root filesystem supports copy on write / reflink’ing. Today this means btrfs or xfs.

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

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

sudo dnf -y install python3-dnf-plugin-cow

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

sudo yum -y install python3-dnf-plugin-cow

How To Uninstall python3-dnf-plugin-cow on Fedora 36

To uninstall only the python3-dnf-plugin-cow package we can use the following command:

sudo dnf remove python3-dnf-plugin-cow

python3-dnf-plugin-cow Package Contents on Fedora 36

/etc/dnf/plugins/reflink.conf
/usr/lib/python3.10/site-packages/dnf-plugins/__pycache__/reflink.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dnf-plugins/__pycache__/reflink.cpython-310.pyc
/usr/lib/python3.10/site-packages/dnf-plugins/reflink.py
/usr/share/doc/python3-dnf-plugin-cow
/usr/share/doc/python3-dnf-plugin-cow/README.md
/usr/share/licenses/python3-dnf-plugin-cow
/usr/share/licenses/python3-dnf-plugin-cow/LICENSE

References

Summary

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