How To Install librust-ureq-dev on Debian 12

Learn how to install librust-ureq-dev on Debian 12 with this tutorial. librust-ureq-dev is simple and safe HTTP client - Rust source code

Introduction

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

What is librust-ureq-dev

librust-ureq-dev is:

Ureq is a simple, safe HTTP client.

Ureq’s first priority is being easy for you to use. It’s great for anyone who wants a low-overhead HTTP client that just gets the job done. Works very well with HTTP APIs. Its features include cookies, JSON, HTTP proxies, HTTPS, and charset decoding.

Ureq is in pure Rust for safety and ease of understanding. It avoids using “unsafe” directly. It uses blocking I/O instead of async I/O, because that keeps the API simple and keeps dependencies to a minimum. For TLS, ureq uses rustls or native-tls.

This package contains the source for the Rust ureq crate, packaged by debcargo for use with cargo and dh-cargo.

There are three methods to install librust-ureq-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 librust-ureq-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 librust-ureq-dev using apt-get by running the following command:

sudo apt-get -y install librust-ureq-dev

Install librust-ureq-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librust-ureq-dev

Install librust-ureq-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 librust-ureq-dev using aptitude by running the following command:

sudo aptitude -y install librust-ureq-dev

How To Uninstall librust-ureq-dev on Debian 12

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

sudo apt-get remove librust-ureq-dev

Uninstall librust-ureq-dev And Its Dependencies

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

sudo apt-get -y autoremove librust-ureq-dev

Remove librust-ureq-dev Configurations and Data

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

sudo apt-get -y purge librust-ureq-dev

Remove librust-ureq-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librust-ureq-dev

Dependencies

librust-ureq-dev have the following dependencies:

References

Summary

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