How To Install lutok on Fedora 36

In this tutorial we learn how to install lutok in Fedora 36. lutok is Lightweight C++ API library for Lua

Introduction

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

What is lutok

Lutok provides thin C++ wrappers around the Lua C API to ease the interaction between C++ and Lua. These wrappers make intensive use of RAII to prevent resource leakage, expose C++-friendly data types, report errors by means of exceptions and ensure that the Lua stack is always left untouched in the face of errors. The library also provides a small subset of miscellaneous utility functions built on top of the wrappers. Lutok focuses on providing a clean and safe C++ interface; the drawback is that it is not suitable for performance-critical environments. In order to implement error-safe C++ wrappers on top of a Lua C binary library, Lutok adds several layers or abstraction and error checking that go against the original spirit of the Lua C API and thus degrade performance.

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

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

sudo dnf -y install lutok

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

sudo yum -y install lutok

How To Uninstall lutok on Fedora 36

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

sudo dnf remove lutok

lutok Package Contents on Fedora 36

---
title: "How To Install lutok on Fedora 36"
linkTitle: "lutok"
type: "docs"
description: "In this tutorial we learn how to install lutok in Fedora 36. lutok is Lightweight C++ API library for Lua"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/lutok-featured.png
---

## Introduction

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

### What is `lutok`

> Lutok provides thin C++ wrappers around the Lua C API to ease the interaction between C++ and Lua.  These wrappers make intensive use of RAII to prevent resource leakage, expose C++-friendly data types, report errors by means of exceptions and ensure that the Lua stack is always left untouched in the face of errors.  The library also provides a small subset of miscellaneous utility functions built on top of the wrappers.  Lutok focuses on providing a clean and safe C++ interface; the drawback is that it is not suitable for performance-critical environments.  In order to implement error-safe C++ wrappers on top of a Lua C binary library, Lutok adds several layers or abstraction and error checking that go against the original spirit of the Lua C API and thus degrade performance.  

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

## Install lutok on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

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

sudo dnf -y install lutok

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

sudo yum -y install lutok

How To Uninstall lutok on Fedora 36

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

sudo dnf remove lutok

lutok Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/0c66601b892c50e42f9836f9bcd3674442a2e4
/usr/lib/liblutok.so.3
/usr/lib/liblutok.so.3.0.0
/usr/share/doc/lutok
/usr/share/doc/lutok/AUTHORS
/usr/share/doc/lutok/COPYING
/usr/share/doc/lutok/NEWS
/usr/share/doc/lutok/README

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/8b /usr/lib/.build-id/8b/63ca597537d136cfe4fde24cae62eda00aee4a /usr/lib64/liblutok.so.3 /usr/lib64/liblutok.so.3.0.0 /usr/share/doc/lutok /usr/share/doc/lutok/AUTHORS /usr/share/doc/lutok/COPYING /usr/share/doc/lutok/NEWS /usr/share/doc/lutok/README


## References

* [lutok website](http://code.google.com/p/lutok/)

## Summary

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