Install eancheck by entering the following commands in the terminal:
sudo apt update sudo apt install eancheck
Check digit validator for EAN/PLU/UPC barcode numbers
Eancheck is a simple program for checking EAN, PLU and UPC check digits. It also includes a header file for incorporating such functions into your own programs.