How To Install librdata-dev on Debian 12

Learn how to install librdata-dev on Debian 12 with this tutorial. librdata-dev is Read and write R data frames from C (dev files)

Introduction

In this tutorial we learn how to install librdata-dev on Debian 12.

What is librdata-dev

librdata-dev is:

Originally part of ReadStat, librdata is a small C library for reading and writing R data frames.

Features:

  • Read both RData and RDS formats
  • Read compressed files (requires bzip2, zlib, and lzma)
  • Write factors, timestamps, logical vectors, and more

This package distributes development files.

There are three methods to install librdata-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install librdata-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install librdata-dev

Install librdata-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librdata-dev

Install librdata-dev 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install librdata-dev

How To Uninstall librdata-dev on Debian 12

To uninstall only the librdata-dev package we can use the following command:

sudo apt-get remove librdata-dev

Uninstall librdata-dev And Its Dependencies

To uninstall librdata-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove librdata-dev

Remove librdata-dev Configurations and Data

To remove librdata-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge librdata-dev

Remove librdata-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librdata-dev

Dependencies

librdata-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install librdata-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.