WIP: introduce dnf as package manager #374

Draft
romain-dartigues wants to merge 1 commits from romain-dartigues/cdist:rd/dnf into master
Contributor

Another one to review, I made it before looking into the issues/pr; relates at least to #145.

Edit: I obviously forgot to push some files, brb…

Another one to review, I made it before looking into the issues/pr; relates at least to #145. Edit: I obviously forgot to push some files, brb…
romain-dartigues added 1 commit 2024-04-11 19:46:48 +00:00
fnux self-assigned this 2024-04-16 09:08:18 +00:00
fnux requested changes 2024-04-23 16:18:14 +00:00
@ -0,0 +35,4 @@
state_should="$(cat "$__object/parameter/state")"
if grep -q -E "(scientific|centos|redhat|amazon)" "$__global/explorer/os"
Collaborator

Why?

Why?
@ -0,0 +8,4 @@
DESCRIPTION
-----------
:abbr:`dnf (Dandified YUM)` is the next-generation version of the :abbr:`YUM (Yellowdog Updated Manager)`
Collaborator

dnf remplaced yum a long time ago - it's not 'next-generation' anymore :-)

dnf remplaced yum a long time ago - it's not 'next-generation' anymore :-)
@ -0,0 +12,4 @@
used on the Fedora (≥ 18), :abbr:`RHEL (Red Hat Enterprise Linux)` ≥ 8 and derivated, OpenMandriva, …)
distributions to manage packages.
If ``dnf`` is not available on the platform, it will automatically try to fallback to ``yum``.
Collaborator

Does it? I don't see any call to yum in this patchset.

Does it? I don't see any call to yum in this patchset.
@ -0,0 +40,4 @@
# Ensure zsh in installed
__package_dnf zsh --state present
# If you don't want to follow pythonX packages, but always use python
Collaborator

I don't really get this example, and packaging policies are tied to distros not to package managers anyway.

I don't really get this example, and packaging policies are tied to distros not to package managers anyway.
This pull request is marked as a work in progress.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b romain-dartigues-rd/dnf master
git pull rd/dnf

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff romain-dartigues-rd/dnf
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#374
No description provided.