How To Install cargo-vendor on Debian 10

Learn how to install cargo-vendor on Debian 10 with this tutorial. cargo-vendor is Cargo subcommand to vendor all crates.io dependencies onto the local filesystem

Introduction

In this tutorial we learn how to install cargo-vendor on Debian 10.

What is cargo-vendor

cargo-vendor is:

This package contains the following binaries built from the Rust crate “cargo-vendor”:

  • cargo-vendor

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

Install cargo-vendor Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cargo-vendor

Install cargo-vendor Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cargo-vendor

Install cargo-vendor 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 cargo-vendor using aptitude by running the following command:

sudo aptitude -y install cargo-vendor

How To Uninstall cargo-vendor on Debian 10

To uninstall only the cargo-vendor package we can use the following command:

sudo apt-get remove cargo-vendor

Uninstall cargo-vendor And Its Dependencies

To uninstall cargo-vendor and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove cargo-vendor

Remove cargo-vendor Configurations and Data

To remove cargo-vendor configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge cargo-vendor

Remove cargo-vendor configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cargo-vendor

Dependencies

cargo-vendor have the following dependencies:

References

Summary

In this tutorial we learn how to install cargo-vendor package on Debian 10 using different package management tools: apt, apt-get and aptitude.