Skip to content

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]
  1. 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.
  2. Your confirmation. The job stops and waits for you. You read the simulation and decide.
  3. 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.

The first step of the wizard: a list of machines with checkboxes and the target distribution

Figure 1 — Choosing the machines.

  1. Filtre. Type to narrow the list. Tout cocher selects every machine shown.
  2. A machine. Tick the machine or machines to deploy to. The badge shows the distribution of the machine (here jammy).
  3. 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.
  4. Suivant. Goes to the choice of the package.

Step 2 — Choose the package

The second step: a search box and the matching package with its distribution, version and size

Figure 2 — Choosing the package.

  1. Recap. The number of machines and their distributions. Modifier goes back to Step 1.
  2. Search. Type at least two characters, then Rechercher. The search covers the packages published in Repod.
  3. 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.
  4. Suivant — Récapitulatif. Becomes active once a package is selected.

Step 3 — Check the summary and start

The summary: the package to install, the target machines and a reminder that a dry-run comes first

Figure 3 — The summary.

  1. Paquet à installer. The package and the version that will be installed on each machine (latest dans repod).
  2. Machines cibles. The machines that will receive it, each with the version for its distribution.
  3. The reminder. A dry-run is performed on every machine before the real installation, and you must confirm before it starts.
  4. 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.

The job waiting for confirmation, with the packages that would be installed and the Confirm and Cancel buttons

Figure 4 — The job waiting for confirmation.

  1. Attente de confirmation. The state of the job.
  2. Confirmer and Annuler. Confirmer starts the real installation. Annuler ends the job and nothing is installed.
  3. Dry-run terminé. The simulation worked on every machine.
  4. 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.
  5. 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

The history: the completed deployment with the machine, its status and the installed package

Figure 5 — The history.

  1. A completed deployment. The green tick means every machine succeeded. 1/1 machine counts the machines that finished.
  2. 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.
  3. 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:

dpkg -l hello-repod
hello-repod

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.

A failed deployment: the message, the machine in error and the log showing the package could not be located

Figure 6 — A deployment that failed at the simulation.

  1. 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.
  2. The message. Dry-run échoué sur toutes les machines cibles, with a hint under the machine: "paquet introuvable ou dépendance manquante".
  3. Voir logs. Opens the output of the package manager. This is where the real cause is.
  4. 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 update on 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