Deposit your first package in the interface¶
What you'll learn:
- How to prepare a
.debfile that Repod can publish - How to drop it into the Déposer page and read each step of the security pipeline
- How to tell that the package really is published, not just accepted
- How to find it again on the Paquets page and get its install command
Time: ~15 minutes
Prerequisites: You are signed in as admin and have set your policy (see Set your security policy). You need a Linux shell with dpkg-deb to build the test file, which can be any machine.
This tutorial uses the web interface. The same upload through curl and the install on a client machine are in Upload your first package.
Step 1 — Prepare a package that can be published¶
Repod checks a package, then hands it to the APT repository tool (reprepro) to publish it. That tool needs a few fields in the package's control file. The checks themselves pass without them, which is why this is easy to miss.
Build a tiny package:
mkdir -p hello-repod/DEBIAN hello-repod/usr/local/bin
cat > hello-repod/usr/local/bin/hello-repod << 'EOF'
#!/bin/bash
echo "Hello from Repod! Package management that actually works."
EOF
chmod +x hello-repod/usr/local/bin/hello-repod
cat > hello-repod/DEBIAN/control << 'EOF'
Package: hello-repod
Version: 1.0.0
Architecture: all
Section: utils
Priority: optional
Maintainer: Your Name <[email protected]>
Description: A demo package for Repod
This package was created to demonstrate the Repod upload pipeline.
EOF
dpkg-deb --build hello-repod hello-repod_1.0.0_all.deb
Section and Priority are not optional here
A package without a Section field passes every check but is not published: the repository tool refuses it with "No section given". Always set both fields on packages you build yourself. Packages built by distributions already have them.
Copy hello-repod_1.0.0_all.deb to the computer whose browser you use for Repod.
Step 2 — Open the upload page and choose the distribution¶
Open Linux → Déposer.
Figure 1 — The upload page.
- Distribution cible. The distribution that will receive the package. The label on the right (APT) tells you which format it belongs to. Here the choice is Ubuntu 22.04 LTS, whose codename is
jammy. - The drop zone. Drag a
.deb,.rpmor.apkfile onto it, or click it to choose a file. - Pipeline de sécurité à l'import. The six checks every package goes through. The red Bloquant tag means a failure stops the package. The grey Avertissement tag means a problem is recorded but does not stop it.
The upload starts as soon as you choose the file
There is no confirmation button. Choose the distribution first, then drop the file. If you picked the wrong one, remove the package afterwards (Step 6) and upload it again.
Step 3 — Drop the file and follow the pipeline¶
Drop hello-repod_1.0.0_all.deb onto the zone. The page switches to a live view.
Figure 2 — The pipeline running.
- Pipeline en cours. The file name and a spinner. It becomes Pipeline terminé when everything is done.
- Réception du fichier. The file reached the server.
- Pipeline de validation. The checks of Figure 1 run one after the other, each turning green as it passes.
- Analyse CVE (Grype). For our package: "aucune CVE connue". The line below it repeats the policy that was applied, taken from the settings you reviewed in the previous tutorial.
Two lines deserve a word:
- Provenance SHA-256 reads "Provenance non vérifiable (import manuel)". When you import from a public source, Repod compares the file with the checksum of the source's index. A file you upload yourself has no reference to compare with, so this check can only say so. It is normal.
- Signature GPG reads "Signature optionnelle absente". Signatures are optional unless you turned on Signature GPG obligatoire.
A small package normally goes through in a few seconds.
If the spinner stays for a long time
Scans share the server with other jobs. If a scheduled mirror or a large import is running, your package waits for its turn and the pipeline looks stuck. Wait for it to finish rather than uploading again. See Schedule the recurring scans and mirrors for the jobs that can be running.
Step 4 — Read the result, and check that the package is really published¶
When the pipeline finishes, scroll down.
Figure 3 — The result.
- Déplacement vers le pool. The file is stored in the pool, the single store of all packages.
- Mise à jour de l'index. Repod's own catalogue is updated.
- Ajout au dépôt. The package is added to the APT repository served to your clients. This is the step that matters: "Paquet publié" in green means clients can now install it.
- Paquet accepté. The summary: package, version and distribution.
- SHA-256. The fingerprint of the file as stored. Keep it if you need to prove later that a client received this exact file.
A yellow \"Ajout au dépôt\" means the package is not published
If step 3 is yellow and says "Erreur lors de la publication", the package passed the checks but could not be added to the repository, whatever the green banner below says. The usual cause is a missing Section field (Step 1). Remove the package (Step 6), fix the control file, rebuild, and upload again.
You can confirm the publication from any machine, without trusting the interface. Replace the address with your repository URL:
curl -s http://repod.example.com/repos/dists/jammy/main/binary-amd64/Packages \
| grep -A9 '^Package: hello-repod'
You should see the package, its version and its SHA256, the same value as in Figure 3.
Step 5 — Find the package and read its detail¶
Open Linux → Paquets and type the name in the search box.
Figure 4 — The package list.
- Search. Filters the list as you type.
- Statut. Disponible means the package is published and installable. Other values appear when a package is waiting for a decision or has been quarantined.
- CVE. Clean means the scan found nothing.
- Inspecter. Opens the detail panel (the button to its right is the delete button, see Step 6).
Figure 5 — The package detail.
- Tabs. Informations, CVE (the vulnerabilities found, with scores), Décision RSSI (empty here, since nothing needed a decision), Commandes and Historique.
- Dependencies. "Toutes les dépendances sont présentes" means everything the package depends on is available in the repository.
- Métadonnées. Name, version, architecture, distribution, size, section, who imported it and when. The description comes from the
controlfile. - Intégrité. The SHA-256 again.
- Validation à l'import. The result of each check, kept with the package.
The Commandes tab is the one you will use on client machines.
Figure 6 — Ready-to-copy commands.
- Tab. Commandes.
- Installer.
sudo apt install hello-repod=1.0.0, with the exact version. - Mettre à jour vers cette version. The upgrade form of the command.
- Vérifier si installé.
dpkg -l hello-repod.
These commands assume the client machine already uses your repository. Client setup shows how to point a machine at Repod.
Step 6 — Remove the test package¶
When you no longer need it, click the red trash button of the package on the Paquets page. The browser asks you to confirm.
Deleting removes the package from every distribution
The button is labelled "Supprimer du dépôt". It removes the package by name from all the distributions of its format, not only from the one you uploaded it to. Do not use it to correct a wrong choice of distribution on a package that other distributions also carry.
What's next¶
- Upload your first package: the same upload with
curl, then the install on a client - Add your first client machine: see what is installed on your machines
- Client setup: point your machines at Repod
- Walk through a CVE remediation: what to do when the pipeline holds a package for review
- Set up CI/CD publishing: automate the upload





