How To Install reg on Fedora 34

reg is Docker registry v2 command line client

Introduction

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

What is reg

Docker registry v2 command line client and repo listing generator with security checks.

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

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

sudo dnf -y install reg

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

sudo yum -y install reg

How To Uninstall reg on Fedora 34

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

sudo dnf remove reg

reg Package Contents on Fedora 34

/etc/sysconfig/reg-server
/usr/bin/reg
/usr/lib/.build-id
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/442e9fa4466de809934425ac2da8b70dce71ec
/usr/lib/systemd/system/reg-server.service
/usr/share/doc/reg
/usr/share/doc/reg/Dockerfile
/usr/share/doc/reg/Makefile
/usr/share/doc/reg/README.md
/usr/share/licenses/reg
/usr/share/licenses/reg/LICENSE
/var/lib/reg-server/static
/var/lib/reg-server/static/css
/var/lib/reg-server/static/css/bootstrap-theme.css
/var/lib/reg-server/static/css/bootstrap-theme.min.css
/var/lib/reg-server/static/css/bootstrap.css
/var/lib/reg-server/static/css/bootstrap.min.css
/var/lib/reg-server/static/css/search.svg
/var/lib/reg-server/static/css/styles.css
/var/lib/reg-server/static/css/styles.less
/var/lib/reg-server/static/favicon.ico
/var/lib/reg-server/static/js
/var/lib/reg-server/static/js/lib
/var/lib/reg-server/static/js/lib/jquery-1.9.1.min.js
/var/lib/reg-server/static/js/scripts.js
/var/lib/reg-server/templates
/var/lib/reg-server/templates/repositories.html
/var/lib/reg-server/templates/tags.html
/var/lib/reg-server/templates/vulns.html

References

Summary

In this tutorial we learn how to install reg on Fedora 34 using yum and dnf.