Project

General

Profile

Actions

Enhancement #24054

open

Package present doesn't install depedencies

Added by Elaad FURREEDAN 4 months ago. Updated 24 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
UX impact:
It bothers me each time
Suggestion strength:
Want - This would make my life a lot easier but I can manage without
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Large
Name check:
To do
Fix check:
To do
Regression:
No

Description

Use case

In many uses cases, we want the method to install the dependencies for the package (for apt and rpm)
The local install use rpm instead of yum, and he is not able to install dependencies https://github.com/Normation/ncf/blob/c1d12a1bed1ea23ab5e3ef3c60f8d4702c642892/tree/10_ncf_internals/modules/packages/yum#L391

Fix ideas

  • We can use yum instead
    • Ideally upstream at CFEngine
    • Do the same for apt

Workaround

For now, we have two workarounds
  • Install the dependencies with the method package present before the installation of the actual package
  • Use command execution method to use yum
Actions

Also available in: Atom PDF