How To Install can-utils on Debian 9
Introduction
In this tutorial we learn how to install can-utils
on Debian 9.
What is can-utils
can-utils is:
CAN is a message-based network protocol designed for vehicles originally created by Robert Bosch GmbH. SocketCAN is a set of open source CAN drivers and a networking stack contributed by Volkswagen Research to the Linux kernel.
This package contains some userspace utilities for Linux SocketCAN subsystem: asc2log, bcmserver, canbusload, can-calc-bit-timing, candump, canfdtest, cangen, cangw, canlogserver, canplayer, cansend, cansniffer, isotpdump, isotprecv, isotpperf, isotpsend, isotpserver, isotpsniffer, isotptun, log2asc, log2long, slcan_attach, slcand and slcanpty.
There are three methods to install can-utils
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install can-utils Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install can-utils
using apt-get
by running the following command:
sudo apt-get -y install can-utils
Install can-utils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install can-utils
using apt
by running the following command:
sudo apt -y install can-utils
Install can-utils 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 can-utils
using aptitude
by running the following command:
sudo aptitude -y install can-utils
How To Uninstall can-utils on Debian 9
To uninstall only the can-utils
package we can use the following command:
sudo apt-get remove can-utils
Uninstall can-utils And Its Dependencies
To uninstall can-utils
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove can-utils
Remove can-utils Configurations and Data
To remove can-utils
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge can-utils
Remove can-utils configuration, data, and all of its dependencies
We can use the following command to remove can-utils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge can-utils
Dependencies
can-utils have the following dependencies:
References
Summary
In this tutorial we learn how to install can-utils
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.