How To Install R2spec on Fedora 34

R2spec is Python script to generate R spec file

Introduction

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

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 34. In this tutorial we discuss both methods but you only need to choose one of method to install R2spec.

Install R2spec on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install R2spec

Install R2spec on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove R2spec

R2spec Package Contents on Fedora 34

/etc/R2spec/repos.cfg
/usr/bin/R2rpm
/usr/bin/R2spec
/usr/lib/python3.9/site-packages/R2spec-5.0.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/R2spec-5.0.0-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/R2spec-5.0.0-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/R2spec-5.0.0-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/R2spec-5.0.0-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/r2spec
/usr/lib/python3.9/site-packages/r2spec/__init__.py
/usr/lib/python3.9/site-packages/r2spec/__pycache__
/usr/lib/python3.9/site-packages/r2spec/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/build.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/build.cpython-39.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/r2spec_obj.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/r2spec_obj.cpython-39.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/rpackage.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/rpackage.cpython-39.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/spec.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/r2spec/__pycache__/spec.cpython-39.pyc
/usr/lib/python3.9/site-packages/r2spec/build.py
/usr/lib/python3.9/site-packages/r2spec/r2spec_obj.py
/usr/lib/python3.9/site-packages/r2spec/rpackage.py
/usr/lib/python3.9/site-packages/r2spec/spec.py
/usr/lib/python3.9/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 34 using yum and dnf.