How To Install cardpeek on Ubuntu 22.04

In this tutorial we learn how to install cardpeek on Ubuntu 22.04. cardpeek is Tool to read the contents of ISO7816 smartcards

Introduction

In this tutorial we learn how to install cardpeek on Ubuntu 22.04.

What is cardpeek

cardpeek is:

The goal of cardpeek is to allow smartcard owners to be better informed about what type of personal information is stored in these devices. The tool currently reads the contents of :

  • EMV cards, including NFC ones
  • Navigo public transport cards (partially supports MOBIB as well)
  • The French health card “Vitale 2”
  • Electronic/Biometric passports in BAC security mode

It can also read the following cards with limited interpretation of data:

  • Some Mifare cards (such as the Thalys card)
  • Moneo, the French electronic purse
  • GSM SIM cards

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

Install cardpeek Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cardpeek

Install cardpeek Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cardpeek using apt by running the following command:

sudo apt -y install cardpeek

Install cardpeek 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install cardpeek

How To Uninstall cardpeek on Ubuntu 22.04

To uninstall only the cardpeek package we can use the following command:

sudo apt-get remove cardpeek

Uninstall cardpeek And Its Dependencies

To uninstall cardpeek and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove cardpeek

Remove cardpeek Configurations and Data

To remove cardpeek configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge cardpeek

Remove cardpeek configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cardpeek

References

Summary

In this tutorial we learn how to install cardpeek package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.