How To Install librsvg2 on Fedora 34

librsvg2 is An SVG library based on cairo An SVG library based on cairo

Introduction

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

What is librsvg2

An SVG library based on cairo. librsvg2 2.50.6 1.fc34 x86_64 3.4 M librsvg2-2.50.6-1.fc34.src.rpm updates An SVG library based on cairo https LGPLv2+ An SVG library based on cairo.

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

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

sudo dnf -y install librsvg2

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

sudo yum -y install librsvg2

How To Uninstall librsvg2 on Fedora 34

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

sudo dnf remove librsvg2

librsvg2 Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/d7250241986fb2e2e876678096daa34511afa8
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/adefd88ac204953d370c852a053f58c1d710e7
/usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/Rsvg-2.0.typelib
/usr/lib64/librsvg-2.so.2
/usr/lib64/librsvg-2.so.2.47.0
/usr/share/doc/librsvg2
/usr/share/doc/librsvg2/CONTRIBUTING.md
/usr/share/doc/librsvg2/README.md
/usr/share/licenses/librsvg2
/usr/share/licenses/librsvg2/COPYING.LIB
/usr/share/locale/es/LC_MESSAGES/librsvg.mo
/usr/share/thumbnailers
/usr/share/thumbnailers/librsvg.thumbnailer
/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/ac9460a0201e47ef457dc57b953bc3e4d9fe67
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/93c0fbe04c7fbd44651e1b24794fc0a90732f4
/usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/Rsvg-2.0.typelib
/usr/lib64/librsvg-2.so.2
/usr/lib64/librsvg-2.so.2.47.0
/usr/share/doc/librsvg2
/usr/share/doc/librsvg2/CONTRIBUTING.md
/usr/share/doc/librsvg2/README.md
/usr/share/licenses/librsvg2
/usr/share/licenses/librsvg2/COPYING.LIB
/usr/share/locale/es/LC_MESSAGES/librsvg.mo
/usr/share/thumbnailers
/usr/share/thumbnailers/librsvg.thumbnailer
/usr/lib/.build-id
/usr/lib/.build-id/be
/usr/lib/.build-id/be/9e5bbbd3ce4af47a86bc5390710c42516c45fa
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/039a8f0d968cce11b54c06b38f24236e01bed5
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
/usr/lib/girepository-1.0
/usr/lib/girepository-1.0/Rsvg-2.0.typelib
/usr/lib/librsvg-2.so.2
/usr/lib/librsvg-2.so.2.47.0
/usr/share/doc/librsvg2
/usr/share/doc/librsvg2/CONTRIBUTING.md
/usr/share/doc/librsvg2/README.md
/usr/share/licenses/librsvg2
/usr/share/licenses/librsvg2/COPYING.LIB
/usr/share/locale/es/LC_MESSAGES/librsvg.mo
/usr/share/thumbnailers
/usr/share/thumbnailers/librsvg.thumbnailer
/usr/lib/.build-id
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/549093d3edbede9ee9baeb965771730e482bf1
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/574df9765be855f6321787a275e9ecd5a3672a
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
/usr/lib/girepository-1.0
/usr/lib/girepository-1.0/Rsvg-2.0.typelib
/usr/lib/librsvg-2.so.2
/usr/lib/librsvg-2.so.2.47.0
/usr/share/doc/librsvg2
/usr/share/doc/librsvg2/CONTRIBUTING.md
/usr/share/doc/librsvg2/README.md
/usr/share/licenses/librsvg2
/usr/share/licenses/librsvg2/COPYING.LIB
/usr/share/locale/es/LC_MESSAGES/librsvg.mo
/usr/share/thumbnailers
/usr/share/thumbnailers/librsvg.thumbnailer

References

Summary

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