How To Install pthsem on Fedora 34

pthsem is The GNU Portable Threads library extended with semaphore support The GNU Portable Threads library extended with semaphore support

Introduction

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

What is pthsem

Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (“multithreading”) inside server applications. All threads run in the same address space of the server application, but each thread has it’s own individual program-counter, run-time stack, signal mask and errno variable. pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth. The header file is called pthsem.h, the configuration program pthsem-config and the autoconf macro AC_CHECK_PTHSEM. pthsem 2.0.7 22.fc34 x86_64 92 k pthsem-2.0.7-22.fc34.src.rpm fedora The GNU Portable Threads library extended with semaphore support http LGPLv2+ Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (“multithreading”) inside server applications. All threads run in the same address space of the server application, but each thread has it’s own individual program-counter, run-time stack, signal mask and errno variable. pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth. The header file is called pthsem.h, the configuration program pthsem-config and the autoconf macro AC_CHECK_PTHSEM.

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

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

sudo dnf -y install pthsem

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

sudo yum -y install pthsem

How To Uninstall pthsem on Fedora 34

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

sudo dnf remove pthsem

pthsem Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/d037b8db77b81d7a4ed46d55536e5f07a1b874
/usr/lib64/libpthsem.so.20
/usr/lib64/libpthsem.so.20.0.27
/usr/share/doc/pthsem
/usr/share/doc/pthsem/ANNOUNCE
/usr/share/doc/pthsem/AUTHORS
/usr/share/doc/pthsem/COPYING
/usr/share/doc/pthsem/ChangeLog
/usr/share/doc/pthsem/HISTORY
/usr/share/doc/pthsem/NEWS
/usr/share/doc/pthsem/PORTING
/usr/share/doc/pthsem/README
/usr/share/doc/pthsem/SUPPORT
/usr/share/doc/pthsem/TESTS
/usr/share/doc/pthsem/THANKS
/usr/share/doc/pthsem/USERS
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/f7f7b1f184721dd935c9209c9d05e3e412a368
/usr/lib/libpthsem.so.20
/usr/lib/libpthsem.so.20.0.27
/usr/share/doc/pthsem
/usr/share/doc/pthsem/ANNOUNCE
/usr/share/doc/pthsem/AUTHORS
/usr/share/doc/pthsem/COPYING
/usr/share/doc/pthsem/ChangeLog
/usr/share/doc/pthsem/HISTORY
/usr/share/doc/pthsem/NEWS
/usr/share/doc/pthsem/PORTING
/usr/share/doc/pthsem/README
/usr/share/doc/pthsem/SUPPORT
/usr/share/doc/pthsem/TESTS
/usr/share/doc/pthsem/THANKS
/usr/share/doc/pthsem/USERS

References

Summary

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