Flatpak Installation
Flatpak is a universal package format that works across most Linux distributions. It's an excellent alternative for users on Fedora, Arch, Linux Mint, Debian, or other distributions that don't include Snap by default. It's also a good choice for users who prefer Flatpak's sandboxing model.
Pieces provides its own Flatpak repository hosted at builds.pieces.app, which contains both PiecesOS (com.pieces.os) and the Pieces Desktop App (com.pieces.pfd).
Flatpak Requirements
- Flatpak Runtime: Install Flatpak using your distro's package manager. Most distributions include it in their repositories. See flathub.org/setup for distro-specific instructions.
- Flathub Repository: The Flathub repository provides shared runtime dependencies that Pieces requires. It must be added before installing Pieces.
- User Permissions: The Pieces repository is added with the
--userflag, so nosudois required for installation.
Install via Flatpak
Follow these steps in order to install Pieces via Flatpak. All commands are run in your terminal.
```bash
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
```
This command is safe to run even if Flathub is already configured. It will skip if the repository already exists.
```bash
flatpak remote-add --user --if-not-exists --from pieces-flatpak https://builds.pieces.app/pieces-flatpak-repo/pieces-flatpak.flatpakrepo
```
The `--user` flag installs the repository for your user account only, so no `sudo` is required.
```bash
flatpak install -y pieces-flatpak com.pieces.os
```
This may take a few minutes as Flatpak downloads the required runtime dependencies.
```bash
flatpak install -y pieces-flatpak com.pieces.pfd
```
```bash
flatpak run com.pieces.os
```
Once PiecesOS is running, launch the Pieces Desktop App:
```bash
flatpak run com.pieces.pfd
```
After the first launch, both apps will appear in your application menu. Always launch PiecesOS before the Desktop App.
Updating
Flatpak apps are updated separately from your system packages. You can update Pieces manually or let Flatpak handle it automatically (if your distro supports automatic Flatpak updates).
To manually update both PiecesOS and the Pieces Desktop App, run:
flatpak update -y com.pieces.os com.pieces.pfd
You can also check for updates within the Pieces Desktop App by hovering over your username in the top left, then hovering over Update and selecting Check for Desktop App Updates or Check for PiecesOS Updates.
Uninstalling
You can remove PiecesOS and the Pieces Desktop App using Flatpak commands. The process involves stopping any running instances, removing the apps, and optionally removing the Pieces repository.
```bash
flatpak kill com.pieces.pfd || true
flatpak kill com.pieces.os || true
```
```bash
flatpak uninstall -y --delete-data com.pieces.pfd
```
```bash
flatpak uninstall -y --delete-data com.pieces.os
```
```bash
flatpak remote-delete --user pieces-flatpak
```
```bash
flatpak uninstall -y --unused
```
Troubleshooting
If you encounter issues with the Flatpak installation, try these common solutions.
Pieces Desktop App can't connect to PiecesOS:
PiecesOS must be running before you launch the Pieces Desktop App. Check if it's running and start it if needed:
# Check if PiecesOS is running
flatpak ps | grep pieces
# Start PiecesOS manually if it's not running
flatpak run com.pieces.os
Permission or sandbox issues:
If features aren't working correctly, reset the Flatpak permissions for both apps:
flatpak permission-reset com.pieces.os
flatpak permission-reset com.pieces.pfd
Then restart both applications.
Verify the Pieces repository is accessible:
If installation fails, confirm the Pieces repository is reachable:
curl -fsSIL https://builds.pieces.app/pieces-flatpak-repo/summary
You should see HTTP/2 200 after the redirect completes. The -L flag follows the redirect to the storage backend.
Complete reset (keeps personal data):
If you need a fresh start, uninstall and reinstall:
flatpak kill com.pieces.pfd || true
flatpak kill com.pieces.os || true
flatpak uninstall -y --delete-data com.pieces.pfd com.pieces.os
Then follow the installation steps above to reinstall.
Next Steps
After installation, explore Conversational Search to start chatting with your memories, or configure Long-Term Memory to customize how Pieces captures your workflow context.
If you encounter issues, see Linux troubleshooting for common solutions.