On Wed, 06 May 2026 23:40:41 +0930
Tim <[email protected]> wrote:

> On Wed, 2026-05-06 at 06:56 +0200, Francis Montagnac via users wrote:
> > For clarity, it is better IMO to not modify such a global config file  

> Or make notes (e.g. comments in the file for your modifications), 
> or
> keep back-ups.

Or add the configuration files you modify to a versioning system [1]
or use etckeeper, or, if you have several machines, use software like:
ansible puppet chef ... to deploy them.

[1] I use a local /.git repo build as follows (as root):

    cd /
    git init
    echo '*' > .gitignore
    git add -f .gitignore
    git commit -am Init

Add /.git to your backup.

then, to add /etc/dnf/dnf.conf

   git add -f /etc/dnf/dnf.conf
   git commit -am '/etc/dnf/dnf.conf: Init from libdnf5-5.2.18.0-2.fc43'
   # Modifiy it, ex: installonly_limit = 2
   git commit -am '/etc/dnf/dnf.conf: installonly_limit 2'

I prefer that to etckeeper (cf dnf info etckeeper):

  - versionning of only the needed files
  - permits to manage files outside /etc, ex /root /var /usr/local

-- 
francis
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to