This repository host the Pi4J APT/PPA Package Repository accessible via pi4j.com/download.
The download files are located on github.com/Pi4J/download.
For more information about the Pi4J Project, please see: pi4j.com.
- Latest Release: pi4j-4.0.0.zip (6.70 MiB, 2026-02-20 09:56)
- Latest Snapshot: pi4j-4.1.0-SNAPSHOT.zip (6.86 MiB, 2026-02-25 12:22)
- Release Archives: stable Pi4J builds for use in your own projects
- Snapshot Archives: experimental Pi4J builds, might cause breakage
- APT/PPA Repository: install Pi4J via APT/PPA system package manager
To use a snapshot version of the library in your Maven project, add the following repositories-settings to your pom.xml.
<repositories>
<repository>
<id>oss-snapshots-repo</id>
<name>Sonatype OSS Maven Repository</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<!--
Snapshot versions created before 09/2025:
<url>https://oss.sonatype.org/content/groups/public</url>
-->
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>The list of available releases and snapshots can also be found on sonatype.org.
The easiest way to get started with the Pi4J APT/PPA repository is to use our pre-built installation scripts:
- Pi4J Version 2:
curl -sSL https://pi4j.com/v2/install | sudo bash - Pi4J Version 1:
curl -sSL https://pi4j.com/install | sudo bash
Should you decide against running our installer script, you can also use these commands to setup the appropriate repository:
Pi4J Version 2 (stable)
wget -qO - https://pi4j.com/pi4j.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pi4j.gpg
echo 'deb [arch=all] https://pi4j.com/download v2 stable' | sudo tee /etc/apt/sources.list.d/pi4j.list
sudo apt update
sudo apt install pi4jPi4J Version 2 (testing)
wget -qO - https://pi4j.com/pi4j.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pi4j.gpg
echo 'deb [arch=all] https://pi4j.com/download v2 testing' | sudo tee /etc/apt/sources.list.d/pi4j.list
sudo apt update
sudo apt install pi4jPi4J Version 1 (stable)
wget -qO - https://pi4j.com/pi4j.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pi4j.gpg
echo 'deb [arch=all] https://pi4j.com/download v1 stable' | sudo tee /etc/apt/sources.list.d/pi4j.list
sudo apt update
sudo apt install pi4jPi4J Version 1 (testing)
wget -qO - https://pi4j.com/pi4j.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pi4j.gpg
echo 'deb [arch=all] https://pi4j.com/download v1 testing' | sudo tee /etc/apt/sources.list.d/pi4j.list
sudo apt update
sudo apt install pi4j