How To Install rejson on Fedora 34

rejson is JSON data type for Redis

Introduction

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

What is rejson

ReJSON is a Redis module that implements the JSON Data Interchange Standard as a native data type. It allows storing, updating and fetching JSON values from Redis.

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

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

sudo dnf -y install rejson

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

sudo yum -y install rejson

How To Uninstall rejson on Fedora 34

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

sudo dnf remove rejson

rejson Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/5b55451bc6d09732af49a1d2359a8b091ff3d9
/usr/lib64/redis/modules/rejson.so
/usr/share/doc/rejson
/usr/share/doc/rejson/README.md
/usr/share/doc/rejson/bench_empty_string.png
/usr/share/doc/rejson/bench_empty_string_p.png
/usr/share/doc/rejson/bench_lua_get_path.png
/usr/share/doc/rejson/bench_lua_get_path_l.png
/usr/share/doc/rejson/bench_lua_get_root.png
/usr/share/doc/rejson/bench_lua_get_root_l.png
/usr/share/doc/rejson/bench_lua_pass_100.png
/usr/share/doc/rejson/bench_lua_pass_100_l.png
/usr/share/doc/rejson/bench_lua_pass_json_parser_0000.png
/usr/share/doc/rejson/bench_lua_pass_json_parser_0000_l.png
/usr/share/doc/rejson/bench_lua_pass_jsonsl_1.png
/usr/share/doc/rejson/bench_lua_pass_jsonsl_1_l.png
/usr/share/doc/rejson/bench_lua_pass_jsonsl_yahoo2.png
/usr/share/doc/rejson/bench_lua_pass_jsonsl_yahoo2_l.png
/usr/share/doc/rejson/bench_lua_pass_jsonsl_yelp.png
/usr/share/doc/rejson/bench_lua_pass_jsonsl_yelp_l.png
/usr/share/doc/rejson/bench_lua_set_path.png
/usr/share/doc/rejson/bench_lua_set_path_l.png
/usr/share/doc/rejson/bench_lua_set_root.png
/usr/share/doc/rejson/bench_lua_set_root_l.png
/usr/share/doc/rejson/bench_numbers.png
/usr/share/doc/rejson/bench_numbers_p.png
/usr/share/doc/rejson/bench_pass_100.png
/usr/share/doc/rejson/bench_pass_100_p.png
/usr/share/doc/rejson/bench_pass_json_parser_0000.png
/usr/share/doc/rejson/bench_pass_json_parser_0000_p.png
/usr/share/doc/rejson/bench_pass_jsonsl_1.png
/usr/share/doc/rejson/bench_pass_jsonsl_1_p.png
/usr/share/doc/rejson/bench_ping.png
/usr/share/doc/rejson/bench_ping_p.png
/usr/share/doc/rejson/commands.md
/usr/share/doc/rejson/demo.gif
/usr/share/doc/rejson/developer.md
/usr/share/doc/rejson/favicon.png
/usr/share/doc/rejson/index.md
/usr/share/doc/rejson/logo.svg
/usr/share/doc/rejson/path.md
/usr/share/doc/rejson/performance.md
/usr/share/doc/rejson/ram.md
/usr/share/licenses/rejson
/usr/share/licenses/rejson/LICENSE

References

Summary

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