How To Install duktape-devel on CentOS 8

duktape-devel is Development files for duktape

Introduction

In this tutorial we learn how to install duktape-devel on CentOS 8.

What is duktape-devel

Embeddable Javascript engine. This package contains header files and libraries needed to develop application that use duktape.

We can use yum or dnf to install duktape-devel on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install duktape-devel.

Install duktape-devel on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install duktape-devel

Install duktape-devel on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install duktape-devel using yum by running the following command:

sudo yum -y install duktape-devel

How To Uninstall duktape-devel on CentOS 8

To uninstall only the duktape-devel package we can use the following command:

sudo dnf remove duktape-devel

duktape-devel Package Contents on CentOS 8

/usr/include/duk_config.h
/usr/include/duktape.h
/usr/lib64/libduktape.so
/usr/lib64/libduktaped.so
/usr/lib64/pkgconfig/duktape.pc
/usr/share/doc/duktape-devel
/usr/share/doc/duktape-devel/README.rst
/usr/share/doc/duktape-devel/examples
/usr/share/doc/duktape-devel/examples/README.rst
/usr/share/doc/duktape-devel/examples/alloc-hybrid
/usr/share/doc/duktape-devel/examples/alloc-hybrid/README.rst
/usr/share/doc/duktape-devel/examples/alloc-hybrid/duk_alloc_hybrid.c
/usr/share/doc/duktape-devel/examples/alloc-hybrid/duk_alloc_hybrid.h
/usr/share/doc/duktape-devel/examples/alloc-logging
/usr/share/doc/duktape-devel/examples/alloc-logging/README.rst
/usr/share/doc/duktape-devel/examples/alloc-logging/duk_alloc_logging.c
/usr/share/doc/duktape-devel/examples/alloc-logging/duk_alloc_logging.h
/usr/share/doc/duktape-devel/examples/alloc-logging/log2gnuplot.py
/usr/share/doc/duktape-devel/examples/alloc-torture
/usr/share/doc/duktape-devel/examples/alloc-torture/README.rst
/usr/share/doc/duktape-devel/examples/alloc-torture/duk_alloc_torture.c
/usr/share/doc/duktape-devel/examples/alloc-torture/duk_alloc_torture.h
/usr/share/doc/duktape-devel/examples/cmdline
/usr/share/doc/duktape-devel/examples/cmdline/README.rst
/usr/share/doc/duktape-devel/examples/cmdline/duk_cmdline.c
/usr/share/doc/duktape-devel/examples/cmdline/duk_cmdline.h
/usr/share/doc/duktape-devel/examples/cmdline/duk_cmdline_lowmem.c
/usr/share/doc/duktape-devel/examples/codepage-conv
/usr/share/doc/duktape-devel/examples/codepage-conv/README.rst
/usr/share/doc/duktape-devel/examples/codepage-conv/duk_codepage_conv.c
/usr/share/doc/duktape-devel/examples/codepage-conv/duk_codepage_conv.h
/usr/share/doc/duktape-devel/examples/codepage-conv/test.c
/usr/share/doc/duktape-devel/examples/coffee
/usr/share/doc/duktape-devel/examples/coffee/README.rst
/usr/share/doc/duktape-devel/examples/coffee/globals.coffee
/usr/share/doc/duktape-devel/examples/coffee/hello.coffee
/usr/share/doc/duktape-devel/examples/coffee/mandel.coffee
/usr/share/doc/duktape-devel/examples/cpp-exceptions
/usr/share/doc/duktape-devel/examples/cpp-exceptions/README.rst
/usr/share/doc/duktape-devel/examples/cpp-exceptions/cpp_exceptions.cpp
/usr/share/doc/duktape-devel/examples/debug-trans-dvalue
/usr/share/doc/duktape-devel/examples/debug-trans-dvalue/Makefile
/usr/share/doc/duktape-devel/examples/debug-trans-dvalue/README.rst
/usr/share/doc/duktape-devel/examples/debug-trans-dvalue/duk_trans_dvalue.c
/usr/share/doc/duktape-devel/examples/debug-trans-dvalue/duk_trans_dvalue.h
/usr/share/doc/duktape-devel/examples/debug-trans-dvalue/test.c
/usr/share/doc/duktape-devel/examples/debug-trans-socket
/usr/share/doc/duktape-devel/examples/debug-trans-socket/README.rst
/usr/share/doc/duktape-devel/examples/debug-trans-socket/duk_trans_socket.h
/usr/share/doc/duktape-devel/examples/debug-trans-socket/duk_trans_socket_unix.c
/usr/share/doc/duktape-devel/examples/debug-trans-socket/duk_trans_socket_windows.c
/usr/share/doc/duktape-devel/examples/dummy-date-provider
/usr/share/doc/duktape-devel/examples/dummy-date-provider/README.rst
/usr/share/doc/duktape-devel/examples/dummy-date-provider/dummy_date_provider.c
/usr/share/doc/duktape-devel/examples/eval
/usr/share/doc/duktape-devel/examples/eval/README.rst
/usr/share/doc/duktape-devel/examples/eval/eval.c
/usr/share/doc/duktape-devel/examples/eventloop
/usr/share/doc/duktape-devel/examples/eventloop/README.rst
/usr/share/doc/duktape-devel/examples/eventloop/basic-test.js
/usr/share/doc/duktape-devel/examples/eventloop/c_eventloop.c
/usr/share/doc/duktape-devel/examples/eventloop/c_eventloop.js
/usr/share/doc/duktape-devel/examples/eventloop/client-socket-test.js
/usr/share/doc/duktape-devel/examples/eventloop/curses-timers.js
/usr/share/doc/duktape-devel/examples/eventloop/ecma_eventloop.js
/usr/share/doc/duktape-devel/examples/eventloop/fileio.c
/usr/share/doc/duktape-devel/examples/eventloop/main.c
/usr/share/doc/duktape-devel/examples/eventloop/ncurses.c
/usr/share/doc/duktape-devel/examples/eventloop/poll.c
/usr/share/doc/duktape-devel/examples/eventloop/server-socket-test.js
/usr/share/doc/duktape-devel/examples/eventloop/socket.c
/usr/share/doc/duktape-devel/examples/guide
/usr/share/doc/duktape-devel/examples/guide/README.rst
/usr/share/doc/duktape-devel/examples/guide/fib.js
/usr/share/doc/duktape-devel/examples/guide/prime.js
/usr/share/doc/duktape-devel/examples/guide/primecheck.c
/usr/share/doc/duktape-devel/examples/guide/process.js
/usr/share/doc/duktape-devel/examples/guide/processlines.c
/usr/share/doc/duktape-devel/examples/guide/uppercase.c
/usr/share/doc/duktape-devel/examples/hello
/usr/share/doc/duktape-devel/examples/hello/README.rst
/usr/share/doc/duktape-devel/examples/hello/hello.c
/usr/share/doc/duktape-devel/examples/jxpretty
/usr/share/doc/duktape-devel/examples/jxpretty/README.rst
/usr/share/doc/duktape-devel/examples/jxpretty/jxpretty.c
/usr/share/doc/duktape-devel/examples/sandbox
/usr/share/doc/duktape-devel/examples/sandbox/README.rst
/usr/share/doc/duktape-devel/examples/sandbox/sandbox.c

References

Summary

In this tutorial we learn how to install duktape-devel on CentOS 8 using yum and dnf.