How To Install librsvg2-2 on Ubuntu 20.04

In this tutorial we learn how to install librsvg2-2 on Ubuntu 20.04. librsvg2-2 is SAX-based renderer library for SVG files (runtime) SAX-based renderer library for SVG files (runtime)

Introduction

In this tutorial we learn how to install librsvg2-2 on Ubuntu 20.04.

What is librsvg2-2

librsvg2-2 is:

The rsvg library is an efficient renderer for Scalable Vector Graphics (SVG) pictures.

This package contains the runtime library, necessary to run applications using librsvg. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: librsvg2-2 Architecture: amd64 Version: 2.48.2-1 Multi-Arch: same Priority: optional Section: libs Source: librsvg Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian GNOME Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4524 Depends: libc6 (>= 2.29), libcairo2 (>= 1.15.8), libgcc-s1 (>= 4.2), libgdk-pixbuf2.0-0 (>= 2.25.2), libglib2.0-0 (>= 2.37.3), libpango-1.0-0 (>= 1.38.0), libpangocairo-1.0-0 (>= 1.38.0), libxml2 (>= 2.9.0) Recommends: librsvg2-common Suggests: librsvg2-bin Filename: pool/main/libr/librsvg/librsvg2-2_2.48.2-1_amd64.deb Size: 1338732 MD5sum: 0b96cbb32e9da978e689efff143e7435 SHA1: ffb0ec25542153e82d61d3a18285eeaaf9a67609 SHA256: 634babae56bf5095368ed22adc92ad54e1260687ef17bc927de74d195b33c4d5 Homepage: https://wiki.gnome.org/Projects/LibRsvg Description-en: SAX-based renderer library for SVG files (runtime) The rsvg library is an efficient renderer for Scalable Vector Graphics (SVG) pictures.

This package contains the runtime library, necessary to run applications using librsvg. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install librsvg2-2 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install librsvg2-2 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install librsvg2-2 using apt-get by running the following command:

sudo apt-get -y install librsvg2-2

Install librsvg2-2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librsvg2-2 using apt by running the following command:

sudo apt -y install librsvg2-2

Install librsvg2-2 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install librsvg2-2 using aptitude by running the following command:

sudo aptitude -y install librsvg2-2

How To Uninstall librsvg2-2 on Ubuntu 20.04

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

sudo apt-get remove librsvg2-2

Uninstall librsvg2-2 And Its Dependencies

To uninstall librsvg2-2 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove librsvg2-2

Remove librsvg2-2 Configurations and Data

To remove librsvg2-2 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge librsvg2-2

Remove librsvg2-2 configuration, data, and all of its dependencies

We can use the following command to remove librsvg2-2 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librsvg2-2

References

Summary

In this tutorial we learn how to install librsvg2-2 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.