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-2.8.0.zip (2.65 MiB, 2025-01-28 12:42)
- Latest Snapshot: pi4j-3.0.0-SNAPSHOT.zip (2.65 MiB, 2025-02-11 07:45)
- 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://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 apt-key add -
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 pi4j
Pi4J Version 2 (testing)
wget -qO- https://pi4j.com/pi4j.gpg | sudo apt-key add -
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 pi4j
Pi4J Version 1 (stable)
wget -qO- https://pi4j.com/pi4j.gpg | sudo apt-key add -
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 pi4j
Pi4J Version 1 (testing)
wget -qO- https://pi4j.com/pi4j.gpg | sudo apt-key add -
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