Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 70CDE780FF0 for <~alpine/users@lists.alpinelinux.org>; Sun, 9 Jan 2022 00:39:07 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id w26so571661wmi.0 for <~alpine/users@lists.alpinelinux.org>; Sat, 08 Jan 2022 16:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mBCNMX93i+iNiv4ENhbZxlITUSrWm+mNXWIys2e7OuI=; b=LEBepd7vuDVSa+IGCZpcsL/Kg0ztg7ns8/cdhzQNHYeVCXlcbkA8l3FskqYriUnyhO TboW5C9osTRzEBwBl7ysjSR+k09BRzpmIhcic1+RT0oFSCJ8VFFqKTNRZuODVXz7zLfG t0EqJrGnXTT26K3YnBH7KvGDYQY435K5sriIdPQkTPiUjlPnaVhxzodaezLgtl973l9s fedtOVP+zYL9evCHEJ3YPHfbpyYDTaZbErG3NstlVnnw5apdrrGaOz+vNoxv1pdySnlZ rTdbgZKOHVPPSGUW3nnrnxkOqGJWBwxnYpoUmGldkAgZAMrVzw8qAe5bgNEtgkf5k3mU F2lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mBCNMX93i+iNiv4ENhbZxlITUSrWm+mNXWIys2e7OuI=; b=J4Sx4LMdJHV3Gl6N8id04H2XYPTYvoKg9L0dhz1R2CxPYdfcYyJOSBXifYuD5c2a++ ejB/EXj5We3cFuyVKpogQS2nzvNhZNMB1VFbf6U9YKMz7NyHGn+i1sdrJCRagfVvC837 MFa3S17S5S/CUE17L+nqGo+XhZG1yPu+ncYwuALFsjiVtcpLZCB+k4VwsbW81d7KKlsh 71rJFkhz5dpvSSRJ8hGHQzRwu2zbUIhJwVmkgpkr4Dh3JDYYrqInOmkEelCWwmYcm2Hf oB6dzw+OoTMicyVGCXYl3UQVod6bC+rzv1SvPY3LtTeCH5+P6+4nQKfhzjUVv4AXCa7/ 4IQg== X-Gm-Message-State: AOAM530kSK13WLMlq3f1Ky/rEe49ZJmyD8CSatPnxrjuDbqYD6DNGXt7 bo7KzJ3Ebv+ywNa1jglpi3EUmDj1oTU= X-Google-Smtp-Source: ABdhPJw2ZNofO1J1CXE78wp8Jc8pbDhNAJ5uZqHrCA7L09BnBIby8AAQpOFadVaAWQMqcgggxbBMZw== X-Received: by 2002:a1c:209:: with SMTP id 9mr1952500wmc.171.1641688746647; Sat, 08 Jan 2022 16:39:06 -0800 (PST) Received: from homepc.lan (aftr-88-152-185-170.unity-media.net. [88.152.185.170]) by smtp.gmail.com with ESMTPSA id j26sm3159664wms.46.2022.01.08.16.39.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jan 2022 16:39:06 -0800 (PST) Date: Sun, 9 Jan 2022 01:39:08 +0100 From: Daniel Kulesz To: ~alpine/users@lists.alpinelinux.org Cc: winston@ml1.net Subject: Re: Compare /etc against package defaults? Message-Id: <20220109013908.349f0156064dbe8936527b9f@googlemail.com> In-Reply-To: <20220108225120.m2vrlqjlcdffb7c7@ml1.net> References: <20220108225120.m2vrlqjlcdffb7c7@ml1.net> X-Mailer: Daniel's homebrew MUA 0.0.1-early-pre-alpha Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Dear Winston, it might be a bit boring, but I would suggest the following approach: (1) fetch a list of installed packages from your old system (2) install a fresh (second) Alpine system with the version you have now (e. g. 3.14) (3) install exactly the apps you have installed right now on the new system (4) use just any tool that can compare the contents of two directories to find the differences Cheers, Daniel On Sat, 8 Jan 2022 16:51:20 -0600 Winston Weinert wrote: > Hello, > > I have some crufty old servers that have quite a few modified configuration > files. I'm looking into moving these customizations into a configuration > management solution (probably Ansible). > > Is there a way to compare files in /etc against the default versions that ships > with Alpine? > > I know there is update-conf and the *.apk-new files, however, this qusetion is > more along the lines of auditing all installed packages' configuration files, > as opposed to migrating configuration files on upgrade. > > Best, > -- > Winston Weinert > winston@ml1.net > https://winny.tech/