How To Install datalog on Fedora 34

datalog is A Lightweight Deductive Database using Datalog A Lightweight Deductive Database using Datalog

Introduction

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

What is datalog

This package contains a lightweight deductive database system. Queries and database updates are expressed using Datalog–a declarative logic language in which each formula is a function-free Horn clause, and every variable in the head of a clause must appear in the body of the clause. The use of Datalog syntax and an implementation based on tabling intermediate results, ensures that all queries terminate. The components in this package are designed to be small, and usable on memory constrained devices. The package includes an interactive interpreter for Datalog, and the development package has a library that can be used to embed the interpreter into C programs. datalog 2.6 16.fc34 x86_64 67 k datalog-2.6-16.fc34.src.rpm fedora A Lightweight Deductive Database using Datalog http LGPLv2+ This package contains a lightweight deductive database system. Queries and database updates are expressed using Datalog–a declarative logic language in which each formula is a function-free Horn clause, and every variable in the head of a clause must appear in the body of the clause. The use of Datalog syntax and an implementation based on tabling intermediate results, ensures that all queries terminate. The components in this package are designed to be small, and usable on memory constrained devices. The package includes an interactive interpreter for Datalog, and the development package has a library that can be used to embed the interpreter into C programs.

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

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

sudo dnf -y install datalog

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

sudo yum -y install datalog

How To Uninstall datalog on Fedora 34

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

sudo dnf remove datalog

datalog Package Contents on Fedora 34

/usr/bin/datalog
/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/a8710a26d8a3d9e19b85b3f112147cf31b82be
/usr/lib/.build-id/72
/usr/lib/.build-id/72/20d658dbf2f0540d07f87d70bdff079f6a351e
/usr/lib64/libdatalog.so.0
/usr/lib64/libdatalog.so.0.0.0
/usr/share/doc/datalog
/usr/share/doc/datalog/AUTHORS
/usr/share/doc/datalog/COPYING.LIB
/usr/share/doc/datalog/ChangeLog
/usr/share/doc/datalog/NEWS
/usr/share/doc/datalog/README
/usr/share/doc/datalog/datalog.html
/usr/share/info/datalog.info.gz
/usr/share/lua/5.4/datalog.lua
/usr/share/man/man1/datalog.1.gz
/usr/bin/datalog
/usr/lib/.build-id
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/6c7aaf9ae29b0daa7b6ad5b215481092c77090
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/5c134a95f94ab9761fa04a0cb6ee6be4e38d78
/usr/lib/libdatalog.so.0
/usr/lib/libdatalog.so.0.0.0
/usr/share/doc/datalog
/usr/share/doc/datalog/AUTHORS
/usr/share/doc/datalog/COPYING.LIB
/usr/share/doc/datalog/ChangeLog
/usr/share/doc/datalog/NEWS
/usr/share/doc/datalog/README
/usr/share/doc/datalog/datalog.html
/usr/share/info/datalog.info.gz
/usr/share/lua/5.4/datalog.lua
/usr/share/man/man1/datalog.1.gz

References

Summary

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