How To Install proguard on Fedora 36

In this tutorial we learn how to install proguard in Fedora 36. proguard is Java class file shrinker, optimizer, obfuscator and preverifier

Introduction

In this tutorial we learn how to install proguard on Fedora 36.

What is proguard

ProGuard is a free Java class file shrinker, optimizer, obfuscator and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it preverifies the processed code for Java 6 or for Java Micro Edition.

We can use yum or dnf to install proguard on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install proguard.

Install proguard on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install proguard using dnf by running the following command:

sudo dnf -y install proguard

Install proguard on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install proguard using yum by running the following command:

sudo yum -y install proguard

How To Uninstall proguard on Fedora 36

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

sudo dnf remove proguard

proguard Package Contents on Fedora 36

/usr/bin/proguard
/usr/bin/proguard-retrace
/usr/share/doc/proguard
/usr/share/doc/proguard/README
/usr/share/doc/proguard/README.dist
/usr/share/doc/proguard/examples
/usr/share/doc/proguard/examples/android.pro
/usr/share/doc/proguard/examples/annotations
/usr/share/doc/proguard/examples/annotations/examples
/usr/share/doc/proguard/examples/annotations/examples.pro
/usr/share/doc/proguard/examples/annotations/examples/Applet.java
/usr/share/doc/proguard/examples/annotations/examples/Application.java
/usr/share/doc/proguard/examples/annotations/examples/Bean.java
/usr/share/doc/proguard/examples/annotations/examples/NativeCallBack.java
/usr/share/doc/proguard/examples/annotations/lib
/usr/share/doc/proguard/examples/annotations/lib/annotations.pro
/usr/share/doc/proguard/examples/annotations/src
/usr/share/doc/proguard/examples/annotations/src/proguard
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/Keep.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepApplication.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepClassMemberNames.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepClassMembers.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepGettersSetters.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepImplementations.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepName.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepPublicClassMemberNames.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepPublicClassMembers.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepPublicGettersSetters.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepPublicImplementations.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepPublicProtectedClassMemberNames.java
/usr/share/doc/proguard/examples/annotations/src/proguard/annotation/KeepPublicProtectedClassMembers.java
/usr/share/doc/proguard/examples/ant
/usr/share/doc/proguard/examples/ant/applets.xml
/usr/share/doc/proguard/examples/ant/applications1.xml
/usr/share/doc/proguard/examples/ant/applications2.xml
/usr/share/doc/proguard/examples/ant/applications3.xml
/usr/share/doc/proguard/examples/ant/library.xml
/usr/share/doc/proguard/examples/ant/midlets.xml
/usr/share/doc/proguard/examples/ant/proguard.xml
/usr/share/doc/proguard/examples/ant/servlets.xml
/usr/share/doc/proguard/examples/applets.pro
/usr/share/doc/proguard/examples/applications.pro
/usr/share/doc/proguard/examples/dictionaries
/usr/share/doc/proguard/examples/dictionaries/compact.txt
/usr/share/doc/proguard/examples/dictionaries/keywords.txt
/usr/share/doc/proguard/examples/dictionaries/shakespeare.txt
/usr/share/doc/proguard/examples/dictionaries/windows.txt
/usr/share/doc/proguard/examples/gradle
/usr/share/doc/proguard/examples/gradle/android.gradle
/usr/share/doc/proguard/examples/gradle/applets.gradle
/usr/share/doc/proguard/examples/gradle/applications.gradle
/usr/share/doc/proguard/examples/gradle/library.gradle
/usr/share/doc/proguard/examples/gradle/midlets.gradle
/usr/share/doc/proguard/examples/gradle/proguard.gradle
/usr/share/doc/proguard/examples/gradle/proguardall.gradle
/usr/share/doc/proguard/examples/gradle/proguardgui.gradle
/usr/share/doc/proguard/examples/gradle/retrace.gradle
/usr/share/doc/proguard/examples/gradle/scala.gradle
/usr/share/doc/proguard/examples/gradle/servlets.gradle
/usr/share/doc/proguard/examples/library.pro
/usr/share/doc/proguard/examples/midlets.pro
/usr/share/doc/proguard/examples/proguard.pro
/usr/share/doc/proguard/examples/proguardall.pro
/usr/share/doc/proguard/examples/proguardgui.pro
/usr/share/doc/proguard/examples/retrace.pro
/usr/share/doc/proguard/examples/scala.pro
/usr/share/doc/proguard/examples/servlets.pro
/usr/share/java/proguard
/usr/share/java/proguard/proguard.jar
/usr/share/java/proguard/retrace.jar

References

Summary

In this tutorial we learn how to install proguard on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).