Install a package on a machine from the interface¶
What you'll learn:
- How Repod installs a package on a machine over SSH, and why it simulates first
- How to run the three-step deployment wizard
- How to read the simulation and confirm the real installation
- How to check the result, and how to read a failed deployment
Time: ~15 minutes
Prerequisites: A package published in Repod (see Deposit your first package in the interface) and a machine registered in SSH mode (see Add your first client machine). Machines in agent mode cannot receive installations.
How an installation works¶
Repod never installs anything without showing you what it is about to do. A deployment goes through fixed phases on every target machine:
flowchart LR
A[Wizard] --> B[Simulation<br/>dry-run]
B --> C{Your<br/>confirmation}
C -->|Confirm| D[Real<br/>installation]
C -->|Cancel| E[Nothing installed]
D --> F[Check<br/>with dpkg]
F --> G[Automatic<br/>inventory scan]
- Simulation. Repod connects to the machine over SSH, makes sure the Repod repository is configured there, and asks the package manager what it would do (
apt-get install --dry-run). Nothing is installed. - Your confirmation. The job stops and waits for you. You read the simulation and decide.
- Installation. Only then does Repod install the package, check that it is present, and start an inventory scan of the machine so the Inventory page is up to date.
Step 1 — Choose the machines¶
Open Clients → Déploiement.
Figure 1 — Choosing the machines.
- Filtre. Type to narrow the list. Tout cocher selects every machine shown.
- A machine. Tick the machine or machines to deploy to. The badge shows the distribution of the machine (here
jammy). - Distributions ciblées. Once you have ticked machines, Repod lists the distributions concerned. They decide which versions of the package are offered in Step 2.
- Suivant. Goes to the choice of the package.
Step 2 — Choose the package¶
Figure 2 — Choosing the package.
- Recap. The number of machines and their distributions. Modifier goes back to Step 1.
- Search. Type at least two characters, then Rechercher. The search covers the packages published in Repod.
- The result. Name, section, description, then one line per distribution with its version and size. Click the card to select it: a tick appears on its right.
- Suivant — Récapitulatif. Becomes active once a package is selected.
Step 3 — Check the summary and start¶
Figure 3 — The summary.
- Paquet à installer. The package and the version that will be installed on each machine (latest dans repod).
- Machines cibles. The machines that will receive it, each with the version for its distribution.
- The reminder. A dry-run is performed on every machine before the real installation, and you must confirm before it starts.
- Déployer sur 1 machine. Starts the job. This starts the simulation only.
Step 4 — Read the simulation and confirm¶
A few seconds later the job appears under En cours and waits for you.
Figure 4 — The job waiting for confirmation.
- Attente de confirmation. The state of the job.
- Confirmer and Annuler. Confirmer starts the real installation. Annuler ends the job and nothing is installed.
- Dry-run terminé. The simulation worked on every machine.
- The machine. Click it to see what would be installed: here 1 paquet(s) à installer,
hello-repod. If the package pulled dependencies in, they would be listed here too, and this is the moment to look at them. - Afficher la sortie brute. The raw output of the package manager, for the full details.
Click Confirmer. The installation takes a few seconds for a package this small.
Step 5 — Check the result¶
Figure 5 — The history.
- A completed deployment. The green tick means every machine succeeded. 1/1 machine counts the machines that finished.
- Durée. The total time of the job. It includes the time the job spent waiting for your confirmation, so a long duration does not mean the installation was slow.
- The machine. Terminé, with the package that was installed. Voir logs shows the output of the installation.
Right after the installation, Repod starts a scan of the machine: a bar at the bottom of the page shows it. When it ends, the package appears in the machine's Paquets tab on the Inventory page, and its vulnerabilities, if any, in the CVE tab.
You can also check on the machine itself:
The first command lists the package with the status ii (installed). The second runs the program and prints Hello from Repod! Package management that actually works.
When the simulation fails¶
A deployment can stop at the simulation. When it does, nothing was installed.
Figure 6 — A deployment that failed at the simulation.
- The failed deployment. The red cross and 0/1 machine · 1 erreur. The duration is only a few seconds: the job stopped at the first phase.
- The message. Dry-run échoué sur toutes les machines cibles, with a hint under the machine: "paquet introuvable ou dépendance manquante".
- Voir logs. Opens the output of the package manager. This is where the real cause is.
- The log. Here,
E: Unable to locate package hello-repod: the machine did not know the package.
The usual causes, in the order to check them:
- The package lists on the machine are out of date. The machine has not seen the package since it was published. Run
sudo apt-get updateon the machine and start the deployment again. - The package is not published for the machine's distribution. Check on the Paquets page that it exists in the right distribution, and that its status is Disponible (see Deposit your first package in the interface, Step 4).
- The Repod repository is not configured on the machine. See Client setup.
Prefer to configure the repository yourself
If a machine has no Repod source, the deployment adds one so the installation can go on. That source is added without signature checking. Configure the source and the signing key yourself, as described in Client setup, so that APT verifies everything it installs.
Good to know¶
- Maintenance windows. If you defined time windows for a tag or a machine, a deployment outside them waits for the next window instead of running. See Maintenance windows.
- Scans and installations do not overlap. Repod refuses a new installation on a machine while a scan of that machine is running.
- Every deployment is recorded. The history keeps who started it, when, the machines and the logs, so you can answer "what was installed, and by whom" later.
What's next¶
- Add your first client machine: the inventory behind the deployment
- Client setup: point machines at your repository
- Maintenance windows: control when deployments may run
- Fix a vulnerability on your machines: deploy the fix for a vulnerability found on a machine





