proguard command not found

In this troubleshooting guide we learn how to fix proguard command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

proguard: command not found

or when using sudo you get the following error message

sudo: proguard: command not found

Solutions to proguard: command not found

How To Fix proguard: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu proguard is provided by proguard-cli package.

proguard-cli is:

ProGuard is a free Java class file shrinker, optimizer, and obfuscator. It can detect and remove unused classes, fields, methods, and attributes. It can then optimize bytecode and remove unused instructions. Finally, it can rename the remaining classes, fields, and methods using short meaningless names. The resulting jars are smaller and harder to reverse-engineer.

This package contains the Proguard command line tool.

To fix this problem, we can install more using the command below.

sudo apt-get -y install proguard-cli

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install proguard-cli.

sudo apt -y install proguard-cli

Or if you have aptitude installed you can use the following command.

sudo aptitude install proguard-cli

Summary

In this tutorial we learn how to fix proguard command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.