How To Install libv4l on CentOS 8
Introduction
In this tutorial we learn how to install libv4l
on CentOS 8.
What is libv4l
libv4l is a collection of libraries which adds a thin abstraction layer on top of video4linux2 devices. The purpose of this (thin) layer is to make it easy for application writers to support a wide variety of devices without having to write separate code for different devices in the same class. libv4l consists of 3 different libraries libv4lconvert offers functions to convert from any (known) pixel-format to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420. libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent of the drivers for those devices supporting v4l1 compatibility (which many v4l2 drivers do not). libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the application transparent libv4lconvert conversion where necessary. libv4l 1.14.2 3.el8 x86_64 194 k v4l-utils-1.14.2-3.el8.src.rpm appstream Collection of video4linux support libraries http LGPLv2+ and GPLv2 libv4l is a collection of libraries which adds a thin abstraction layer on top of video4linux2 devices. The purpose of this (thin) layer is to make it easy for application writers to support a wide variety of devices without having to write separate code for different devices in the same class. libv4l consists of 3 different libraries libv4lconvert offers functions to convert from any (known) pixel-format to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420. libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent of the drivers for those devices supporting v4l1 compatibility (which many v4l2 drivers do not). libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the application transparent libv4lconvert conversion where necessary.
We can use yum
or dnf
to install libv4l
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install libv4l.
Install libv4l 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 libv4l
using dnf
by running the following command:
sudo dnf -y install libv4l
Install libv4l 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 libv4l
using yum
by running the following command:
sudo yum -y install libv4l
How To Uninstall libv4l on CentOS 8
To uninstall only the libv4l
package we can use the following command:
sudo dnf remove libv4l
libv4l Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/7f485d2c54ad1a1d7d74aae249f71ff876b772
/usr/lib/.build-id/3d/6e0f32909a039112a306dce841e4973ce651a1
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/65244e2012e4788a8cc91824b0fa59b69f1b07
/usr/lib/.build-id/77
/usr/lib/.build-id/77/a23aec3c7f6e6bb008ab2197e1a9bb53a5fb36
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/148bd379fcb34f95ef6f469dff8d379ce8015e
/usr/lib/.build-id/83
/usr/lib/.build-id/83/13805cefc5155f166025d78804190f2fa1e1a8
/usr/lib/.build-id/99
/usr/lib/.build-id/99/27f421df2c715ca8bcfbd5264586f75e0b1722
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/3ec72e8961de5f6564f8b08a23d1035d1f68ae
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/1393d4b7728227671a2ea784588100a49a762f
/usr/lib64/libv4l
/usr/lib64/libv4l/ov511-decomp
/usr/lib64/libv4l/ov518-decomp
/usr/lib64/libv4l/plugins
/usr/lib64/libv4l/plugins/libv4l-mplane.so
/usr/lib64/libv4l/v4l1compat.so
/usr/lib64/libv4l/v4l2convert.so
/usr/lib64/libv4l1.so.0
/usr/lib64/libv4l1.so.0.0.0
/usr/lib64/libv4l2.so.0
/usr/lib64/libv4l2.so.0.0.0
/usr/lib64/libv4l2rds.so.0
/usr/lib64/libv4l2rds.so.0.0.0
/usr/lib64/libv4lconvert.so.0
/usr/lib64/libv4lconvert.so.0.0.0
/usr/share/doc/libv4l
/usr/share/doc/libv4l/ChangeLog
/usr/share/doc/libv4l/README.libv4l
/usr/share/doc/libv4l/TODO
/usr/share/licenses/libv4l
/usr/share/licenses/libv4l/COPYING
/usr/share/licenses/libv4l/COPYING.libv4l
/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/b1b15f9b48874a600e506234a04874cf6b56a4
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/860458f84d40ed465698ed565ad6a06da834fe
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/b527f11981a1b56d48e09a7939889358df20f2
/usr/lib/.build-id/88/508de9283a166135069f0f85725ba8c572d6e6
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/a6722bdd7a86577d1c54ed23d639d3b9c3824b
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/db08c1a75647b5dc5801f2cdca13480296567d
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/001e7b549df8f07623b81f06f60296e9e8dc93
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/9715b544ffca454d71246af79513ef82945f91
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/72f4b121bb18e1ce2632868050b97ed9359d63
/usr/lib/libv4l
/usr/lib/libv4l/ov511-decomp
/usr/lib/libv4l/ov518-decomp
/usr/lib/libv4l/plugins
/usr/lib/libv4l/plugins/libv4l-mplane.so
/usr/lib/libv4l/v4l1compat.so
/usr/lib/libv4l/v4l2convert.so
/usr/lib/libv4l1.so.0
/usr/lib/libv4l1.so.0.0.0
/usr/lib/libv4l2.so.0
/usr/lib/libv4l2.so.0.0.0
/usr/lib/libv4l2rds.so.0
/usr/lib/libv4l2rds.so.0.0.0
/usr/lib/libv4lconvert.so.0
/usr/lib/libv4lconvert.so.0.0.0
/usr/share/doc/libv4l
/usr/share/doc/libv4l/ChangeLog
/usr/share/doc/libv4l/README.libv4l
/usr/share/doc/libv4l/TODO
/usr/share/licenses/libv4l
/usr/share/licenses/libv4l/COPYING
/usr/share/licenses/libv4l/COPYING.libv4l
References
- [libv4l website](http://hansdegoede.livejournal.com/3636.html http://hansdegoede.livejournal.com/3636.html)
Summary
In this tutorial we learn how to install libv4l
on CentOS 8 using yum and dnf.