How To Install ck-devel on CentOS 8

ck-devel is Header files and libraries for CK development

Introduction

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

What is ck-devel

Concurrency Kit provides a plethora of concurrency primitives, safe memory reclamation mechanisms and lock-less and lock-free data structures designed to aid in the design and implementation of high performance concurrent systems. It is designed to minimize dependencies on operating system-specific interfaces and most of the interface relies only on a strict subset of the standard library and more popular compiler extensions. This package provides the libraries, include files, and other resources needed for developing Concurrency Kit applications.

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

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

sudo dnf -y install ck-devel

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

sudo yum -y install ck-devel

How To Uninstall ck-devel on CentOS 8

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

sudo dnf remove ck-devel

ck-devel Package Contents on CentOS 8

/usr/include/ck
/usr/include/ck/ck_array.h
/usr/include/ck/ck_backoff.h
/usr/include/ck/ck_barrier.h
/usr/include/ck/ck_bitmap.h
/usr/include/ck/ck_brlock.h
/usr/include/ck/ck_bytelock.h
/usr/include/ck/ck_cc.h
/usr/include/ck/ck_cohort.h
/usr/include/ck/ck_elide.h
/usr/include/ck/ck_epoch.h
/usr/include/ck/ck_fifo.h
/usr/include/ck/ck_hp.h
/usr/include/ck/ck_hp_fifo.h
/usr/include/ck/ck_hp_stack.h
/usr/include/ck/ck_hs.h
/usr/include/ck/ck_ht.h
/usr/include/ck/ck_limits.h
/usr/include/ck/ck_malloc.h
/usr/include/ck/ck_md.h
/usr/include/ck/ck_pflock.h
/usr/include/ck/ck_pr.h
/usr/include/ck/ck_queue.h
/usr/include/ck/ck_rhs.h
/usr/include/ck/ck_ring.h
/usr/include/ck/ck_rwcohort.h
/usr/include/ck/ck_rwlock.h
/usr/include/ck/ck_sequence.h
/usr/include/ck/ck_spinlock.h
/usr/include/ck/ck_stack.h
/usr/include/ck/ck_stdbool.h
/usr/include/ck/ck_stddef.h
/usr/include/ck/ck_stdint.h
/usr/include/ck/ck_stdlib.h
/usr/include/ck/ck_string.h
/usr/include/ck/ck_swlock.h
/usr/include/ck/ck_tflock.h
/usr/include/ck/gcc
/usr/include/ck/gcc/aarch64
/usr/include/ck/gcc/aarch64/ck_f_pr.h
/usr/include/ck/gcc/aarch64/ck_pr.h
/usr/include/ck/gcc/aarch64/ck_pr_llsc.h
/usr/include/ck/gcc/aarch64/ck_pr_lse.h
/usr/include/ck/gcc/arm
/usr/include/ck/gcc/arm/ck_f_pr.h
/usr/include/ck/gcc/arm/ck_pr.h
/usr/include/ck/gcc/ck_cc.h
/usr/include/ck/gcc/ck_f_pr.h
/usr/include/ck/gcc/ck_pr.h
/usr/include/ck/gcc/ppc
/usr/include/ck/gcc/ppc/ck_f_pr.h
/usr/include/ck/gcc/ppc/ck_pr.h
/usr/include/ck/gcc/ppc64
/usr/include/ck/gcc/ppc64/ck_f_pr.h
/usr/include/ck/gcc/ppc64/ck_pr.h
/usr/include/ck/gcc/s390x
/usr/include/ck/gcc/s390x/ck_f_pr.h
/usr/include/ck/gcc/s390x/ck_pr.h
/usr/include/ck/gcc/sparcv9
/usr/include/ck/gcc/sparcv9/ck_f_pr.h
/usr/include/ck/gcc/sparcv9/ck_pr.h
/usr/include/ck/gcc/x86
/usr/include/ck/gcc/x86/ck_f_pr.h
/usr/include/ck/gcc/x86/ck_pr.h
/usr/include/ck/gcc/x86_64
/usr/include/ck/gcc/x86_64/ck_f_pr.h
/usr/include/ck/gcc/x86_64/ck_pr.h
/usr/include/ck/gcc/x86_64/ck_pr_rtm.h
/usr/include/ck/spinlock
/usr/include/ck/spinlock/anderson.h
/usr/include/ck/spinlock/cas.h
/usr/include/ck/spinlock/clh.h
/usr/include/ck/spinlock/dec.h
/usr/include/ck/spinlock/fas.h
/usr/include/ck/spinlock/hclh.h
/usr/include/ck/spinlock/mcs.h
/usr/include/ck/spinlock/ticket.h
/usr/lib64/libck.so
/usr/lib64/pkgconfig/ck.pc
/usr/share/man/man3/CK_ARRAY_FOREACH.3.gz
/usr/share/man/man3/CK_COHORT_INIT.3.gz
/usr/share/man/man3/CK_COHORT_INSTANCE.3.gz
/usr/share/man/man3/CK_COHORT_LOCK.3.gz
/usr/share/man/man3/CK_COHORT_PROTOTYPE.3.gz
/usr/share/man/man3/CK_COHORT_TRYLOCK.3.gz
/usr/share/man/man3/CK_COHORT_TRYLOCK_PROTOTYPE.3.gz
/usr/share/man/man3/CK_COHORT_UNLOCK.3.gz
/usr/share/man/man3/CK_HS_HASH.3.gz
/usr/share/man/man3/CK_RHS_HASH.3.gz
/usr/share/man/man3/CK_RWCOHORT_INIT.3.gz
/usr/share/man/man3/CK_RWCOHORT_INSTANCE.3.gz
/usr/share/man/man3/CK_RWCOHORT_PROTOTYPE.3.gz
/usr/share/man/man3/CK_RWCOHORT_READ_LOCK.3.gz
/usr/share/man/man3/CK_RWCOHORT_READ_UNLOCK.3.gz
/usr/share/man/man3/CK_RWCOHORT_WRITE_LOCK.3.gz
/usr/share/man/man3/CK_RWCOHORT_WRITE_UNLOCK.3.gz
/usr/share/man/man3/ck_array_buffer.3.gz
/usr/share/man/man3/ck_array_commit.3.gz
/usr/share/man/man3/ck_array_deinit.3.gz
/usr/share/man/man3/ck_array_init.3.gz
/usr/share/man/man3/ck_array_initialized.3.gz
/usr/share/man/man3/ck_array_length.3.gz
/usr/share/man/man3/ck_array_put.3.gz
/usr/share/man/man3/ck_array_put_unique.3.gz
/usr/share/man/man3/ck_array_remove.3.gz
/usr/share/man/man3/ck_bitmap_base.3.gz
/usr/share/man/man3/ck_bitmap_bits.3.gz
/usr/share/man/man3/ck_bitmap_bts.3.gz
/usr/share/man/man3/ck_bitmap_buffer.3.gz
/usr/share/man/man3/ck_bitmap_clear.3.gz
/usr/share/man/man3/ck_bitmap_init.3.gz
/usr/share/man/man3/ck_bitmap_iterator_init.3.gz
/usr/share/man/man3/ck_bitmap_next.3.gz
/usr/share/man/man3/ck_bitmap_reset.3.gz
/usr/share/man/man3/ck_bitmap_set.3.gz
/usr/share/man/man3/ck_bitmap_size.3.gz
/usr/share/man/man3/ck_bitmap_test.3.gz
/usr/share/man/man3/ck_bitmap_union.3.gz
/usr/share/man/man3/ck_brlock.3.gz
/usr/share/man/man3/ck_cohort.3.gz
/usr/share/man/man3/ck_elide.3.gz
/usr/share/man/man3/ck_epoch_barrier.3.gz
/usr/share/man/man3/ck_epoch_begin.3.gz
/usr/share/man/man3/ck_epoch_call.3.gz
/usr/share/man/man3/ck_epoch_end.3.gz
/usr/share/man/man3/ck_epoch_init.3.gz
/usr/share/man/man3/ck_epoch_poll.3.gz
/usr/share/man/man3/ck_epoch_reclaim.3.gz
/usr/share/man/man3/ck_epoch_recycle.3.gz
/usr/share/man/man3/ck_epoch_register.3.gz
/usr/share/man/man3/ck_epoch_synchronize.3.gz
/usr/share/man/man3/ck_epoch_unregister.3.gz
/usr/share/man/man3/ck_hs_apply.3.gz
/usr/share/man/man3/ck_hs_count.3.gz
/usr/share/man/man3/ck_hs_destroy.3.gz
/usr/share/man/man3/ck_hs_fas.3.gz
/usr/share/man/man3/ck_hs_gc.3.gz
/usr/share/man/man3/ck_hs_get.3.gz
/usr/share/man/man3/ck_hs_grow.3.gz
/usr/share/man/man3/ck_hs_init.3.gz
/usr/share/man/man3/ck_hs_iterator_init.3.gz
/usr/share/man/man3/ck_hs_move.3.gz
/usr/share/man/man3/ck_hs_next.3.gz
/usr/share/man/man3/ck_hs_put.3.gz
/usr/share/man/man3/ck_hs_put_unique.3.gz
/usr/share/man/man3/ck_hs_rebuild.3.gz
/usr/share/man/man3/ck_hs_remove.3.gz
/usr/share/man/man3/ck_hs_reset.3.gz
/usr/share/man/man3/ck_hs_reset_size.3.gz
/usr/share/man/man3/ck_hs_set.3.gz
/usr/share/man/man3/ck_hs_stat.3.gz
/usr/share/man/man3/ck_ht_count.3.gz
/usr/share/man/man3/ck_ht_destroy.3.gz
/usr/share/man/man3/ck_ht_entry_empty.3.gz
/usr/share/man/man3/ck_ht_entry_key.3.gz
/usr/share/man/man3/ck_ht_entry_key_direct.3.gz
/usr/share/man/man3/ck_ht_entry_key_length.3.gz
/usr/share/man/man3/ck_ht_entry_key_set.3.gz
/usr/share/man/man3/ck_ht_entry_key_set_direct.3.gz
/usr/share/man/man3/ck_ht_entry_set.3.gz
/usr/share/man/man3/ck_ht_entry_set_direct.3.gz
/usr/share/man/man3/ck_ht_entry_value.3.gz
/usr/share/man/man3/ck_ht_entry_value_direct.3.gz
/usr/share/man/man3/ck_ht_gc.3.gz
/usr/share/man/man3/ck_ht_get_spmc.3.gz
/usr/share/man/man3/ck_ht_grow_spmc.3.gz
/usr/share/man/man3/ck_ht_hash.3.gz
/usr/share/man/man3/ck_ht_hash_direct.3.gz
/usr/share/man/man3/ck_ht_init.3.gz
/usr/share/man/man3/ck_ht_iterator_init.3.gz
/usr/share/man/man3/ck_ht_next.3.gz
/usr/share/man/man3/ck_ht_put_spmc.3.gz
/usr/share/man/man3/ck_ht_remove_spmc.3.gz
/usr/share/man/man3/ck_ht_reset_size_spmc.3.gz
/usr/share/man/man3/ck_ht_reset_spmc.3.gz
/usr/share/man/man3/ck_ht_set_spmc.3.gz
/usr/share/man/man3/ck_ht_stat.3.gz
/usr/share/man/man3/ck_pflock.3.gz
/usr/share/man/man3/ck_pr.3.gz
/usr/share/man/man3/ck_pr_add.3.gz
/usr/share/man/man3/ck_pr_and.3.gz
/usr/share/man/man3/ck_pr_barrier.3.gz
/usr/share/man/man3/ck_pr_btc.3.gz
/usr/share/man/man3/ck_pr_btr.3.gz
/usr/share/man/man3/ck_pr_bts.3.gz
/usr/share/man/man3/ck_pr_cas.3.gz
/usr/share/man/man3/ck_pr_dec.3.gz
/usr/share/man/man3/ck_pr_faa.3.gz
/usr/share/man/man3/ck_pr_fas.3.gz
/usr/share/man/man3/ck_pr_fence_acquire.3.gz
/usr/share/man/man3/ck_pr_fence_atomic.3.gz
/usr/share/man/man3/ck_pr_fence_atomic_load.3.gz
/usr/share/man/man3/ck_pr_fence_atomic_store.3.gz
/usr/share/man/man3/ck_pr_fence_load.3.gz
/usr/share/man/man3/ck_pr_fence_load_atomic.3.gz
/usr/share/man/man3/ck_pr_fence_load_depends.3.gz
/usr/share/man/man3/ck_pr_fence_load_store.3.gz
/usr/share/man/man3/ck_pr_fence_memory.3.gz
/usr/share/man/man3/ck_pr_fence_release.3.gz
/usr/share/man/man3/ck_pr_fence_store.3.gz
/usr/share/man/man3/ck_pr_fence_store_atomic.3.gz
/usr/share/man/man3/ck_pr_fence_store_load.3.gz
/usr/share/man/man3/ck_pr_inc.3.gz
/usr/share/man/man3/ck_pr_load.3.gz
/usr/share/man/man3/ck_pr_neg.3.gz
/usr/share/man/man3/ck_pr_not.3.gz
/usr/share/man/man3/ck_pr_or.3.gz
/usr/share/man/man3/ck_pr_rtm.3.gz
/usr/share/man/man3/ck_pr_stall.3.gz
/usr/share/man/man3/ck_pr_store.3.gz
/usr/share/man/man3/ck_pr_sub.3.gz
/usr/share/man/man3/ck_pr_xor.3.gz
/usr/share/man/man3/ck_queue.3.gz
/usr/share/man/man3/ck_rhs_apply.3.gz
/usr/share/man/man3/ck_rhs_count.3.gz
/usr/share/man/man3/ck_rhs_destroy.3.gz
/usr/share/man/man3/ck_rhs_fas.3.gz
/usr/share/man/man3/ck_rhs_gc.3.gz
/usr/share/man/man3/ck_rhs_get.3.gz
/usr/share/man/man3/ck_rhs_grow.3.gz
/usr/share/man/man3/ck_rhs_init.3.gz
/usr/share/man/man3/ck_rhs_iterator_init.3.gz
/usr/share/man/man3/ck_rhs_move.3.gz
/usr/share/man/man3/ck_rhs_next.3.gz
/usr/share/man/man3/ck_rhs_put.3.gz
/usr/share/man/man3/ck_rhs_put_unique.3.gz
/usr/share/man/man3/ck_rhs_rebuild.3.gz
/usr/share/man/man3/ck_rhs_remove.3.gz
/usr/share/man/man3/ck_rhs_reset.3.gz
/usr/share/man/man3/ck_rhs_reset_size.3.gz
/usr/share/man/man3/ck_rhs_set.3.gz
/usr/share/man/man3/ck_rhs_stat.3.gz
/usr/share/man/man3/ck_ring_capacity.3.gz
/usr/share/man/man3/ck_ring_dequeue_spmc.3.gz
/usr/share/man/man3/ck_ring_dequeue_spsc.3.gz
/usr/share/man/man3/ck_ring_enqueue_spmc.3.gz
/usr/share/man/man3/ck_ring_enqueue_spmc_size.3.gz
/usr/share/man/man3/ck_ring_enqueue_spsc.3.gz
/usr/share/man/man3/ck_ring_enqueue_spsc_size.3.gz
/usr/share/man/man3/ck_ring_init.3.gz
/usr/share/man/man3/ck_ring_size.3.gz
/usr/share/man/man3/ck_ring_trydequeue_spmc.3.gz
/usr/share/man/man3/ck_rwcohort.3.gz
/usr/share/man/man3/ck_rwlock.3.gz
/usr/share/man/man3/ck_sequence.3.gz
/usr/share/man/man3/ck_spinlock.3.gz
/usr/share/man/man3/ck_swlock.3.gz
/usr/share/man/man3/ck_tflock.3.gz

References

Summary

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