How To Install system-rules on Fedora 36
Introduction
In this tutorial we learn how to install system-rules
on Fedora 36.
What is system-rules
System Rules is a collection of JUnit rules for testing code which uses java.lang.System.
We can use yum
or dnf
to install system-rules
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install system-rules.
Install system-rules 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 system-rules
using dnf
by running the following command:
sudo dnf -y install system-rules
Install system-rules 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 system-rules
using yum
by running the following command:
sudo yum -y install system-rules
How To Uninstall system-rules on Fedora 36
To uninstall only the system-rules
package we can use the following command:
sudo dnf remove system-rules
system-rules Package Contents on Fedora 36
/usr/share/java/system-rules
/usr/share/java/system-rules/system-rules.jar
/usr/share/licenses/system-rules
/usr/share/licenses/system-rules/LICENSE
/usr/share/maven-metadata/system-rules.xml
/usr/share/maven-poms/system-rules
/usr/share/maven-poms/system-rules/system-rules.pom
References
Summary
In this tutorial we learn how to install system-rules
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).