How To Install ruby-pdf-reader on Debian 12
Introduction
In this tutorial we learn how to install ruby-pdf-reader
on Debian 12.
What is ruby-pdf-reader
ruby-pdf-reader is:
The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe. It provides programmatic access to the contents of a PDF file with a high degree of flexibility.
This is primarily a low-level library that should be used as the foundation for higher level functionality. There are a few exceptions to support very common use cases like extracting text from a page.
There are three methods to install ruby-pdf-reader
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 ruby-pdf-reader Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ruby-pdf-reader
using apt-get
by running the following command:
sudo apt-get -y install ruby-pdf-reader
Install ruby-pdf-reader Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-pdf-reader
using apt
by running the following command:
sudo apt -y install ruby-pdf-reader
Install ruby-pdf-reader 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 ruby-pdf-reader
using aptitude
by running the following command:
sudo aptitude -y install ruby-pdf-reader
How To Uninstall ruby-pdf-reader on Debian 12
To uninstall only the ruby-pdf-reader
package we can use the following command:
sudo apt-get remove ruby-pdf-reader
Uninstall ruby-pdf-reader And Its Dependencies
To uninstall ruby-pdf-reader
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove ruby-pdf-reader
Remove ruby-pdf-reader Configurations and Data
To remove ruby-pdf-reader
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge ruby-pdf-reader
Remove ruby-pdf-reader configuration, data, and all of its dependencies
We can use the following command to remove ruby-pdf-reader
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-pdf-reader
Dependencies
ruby-pdf-reader have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-pdf-reader
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.