How To Install R2spec on Fedora 36

In this tutorial we learn how to install R2spec in Fedora 36. R2spec is Python script to generate R spec file

Introduction

In this tutorial we learn how to install R2spec on Fedora 36.

What is R2spec

R2spec is a small python tool that generates spec file for R libraries. It can work from a URL or a tarball. R2spec provides R2rpm which generates rpm for R libraries using the R2spec API.

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

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

sudo dnf -y install R2spec

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

sudo yum -y install R2spec

How To Uninstall R2spec on Fedora 36

To uninstall only the R2spec package we can use the following command:

sudo dnf remove R2spec

R2spec Package Contents on Fedora 36

/etc/R2spec/repos.cfg
/usr/bin/R2rpm
/usr/bin/R2spec
/usr/lib/python3.10/site-packages/R2spec-5.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/R2spec-5.0.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/R2spec-5.0.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/R2spec-5.0.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/R2spec-5.0.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/r2spec
/usr/lib/python3.10/site-packages/r2spec/__init__.py
/usr/lib/python3.10/site-packages/r2spec/__pycache__
/usr/lib/python3.10/site-packages/r2spec/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/build.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/build.cpython-310.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/r2spec_obj.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/r2spec_obj.cpython-310.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/rpackage.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/rpackage.cpython-310.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/spec.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/r2spec/__pycache__/spec.cpython-310.pyc
/usr/lib/python3.10/site-packages/r2spec/build.py
/usr/lib/python3.10/site-packages/r2spec/r2spec_obj.py
/usr/lib/python3.10/site-packages/r2spec/rpackage.py
/usr/lib/python3.10/site-packages/r2spec/spec.py
/usr/lib/python3.10/site-packages/r2spec/specfile.tpl
/usr/share/doc/R2spec
/usr/share/doc/R2spec/CHANGELOG
/usr/share/doc/R2spec/LICENSE
/usr/share/doc/R2spec/README
/usr/share/man/man1/R2rpm.1.gz
/usr/share/man/man1/R2spec.1.gz

References

Summary

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