How To Install libserialport on Fedora 34

libserialport is Library for accessing serial ports Library for accessing serial ports

Introduction

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

What is libserialport

libserialport is a minimal library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports. By writing your serial code to use libserialport, you enable it to work transparently on any platform supported by the library. The operations that are supported are - Port enumeration (obtaining a list of serial ports on the system). - Opening and closing ports. - Setting port parameters (baud rate, parity, etc). - Reading, writing and flushing data. - Obtaining error information. libserialport 0.1.1 11.fc34 x86_64 33 k libserialport-0.1.1-11.fc34.src.rpm updates Library for accessing serial ports http LGPLv3+ libserialport is a minimal library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports. By writing your serial code to use libserialport, you enable it to work transparently on any platform supported by the library. The operations that are supported are - Port enumeration (obtaining a list of serial ports on the system). - Opening and closing ports. - Setting port parameters (baud rate, parity, etc). - Reading, writing and flushing data. - Obtaining error information.

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

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

sudo dnf -y install libserialport

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

sudo yum -y install libserialport

How To Uninstall libserialport on Fedora 34

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

sudo dnf remove libserialport

libserialport Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/06447dd0ccaa14e3589357de97550e833398bc
/usr/lib/libserialport.so.0
/usr/lib/libserialport.so.0.1.0
/usr/share/doc/libserialport
/usr/share/doc/libserialport/COPYING
/usr/share/doc/libserialport/README
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/f3e3ea2dfc636613c6db74e3c483a709ea7173
/usr/lib/libserialport.so.0
/usr/lib/libserialport.so.0.1.0
/usr/share/doc/libserialport
/usr/share/doc/libserialport/COPYING
/usr/share/doc/libserialport/README
/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/823d9d602b7492c1775f3cc7bbaca532913c50
/usr/lib64/libserialport.so.0
/usr/lib64/libserialport.so.0.1.0
/usr/share/doc/libserialport
/usr/share/doc/libserialport/COPYING
/usr/share/doc/libserialport/README
/usr/lib/.build-id
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/376d7b7756dfaba6e0fd022a385c80730ea135
/usr/lib64/libserialport.so.0
/usr/lib64/libserialport.so.0.1.0
/usr/share/doc/libserialport
/usr/share/doc/libserialport/COPYING
/usr/share/doc/libserialport/README

References

Summary

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