From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: List of installed package, version pairs Date: Tue, 15 Jan 2019 16:28:42 -0500 (EST) Message-ID: References: <20190110073328.GE18849@macbook41> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjWGc-0006vf-50 for help-guix@gnu.org; Tue, 15 Jan 2019 16:29:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjWGa-0002aC-Ot for help-guix@gnu.org; Tue, 15 Jan 2019 16:29:02 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:37876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gjWGa-0002TV-EJ for help-guix@gnu.org; Tue, 15 Jan 2019 16:29:00 -0500 In-Reply-To: <20190110073328.GE18849@macbook41> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Efraim Flashner Cc: help-guix@gnu.org Thanks! I'm still not quite there, but the suggestion below have been quite helpful in my thinking and experimentation. On Thu, 10 Jan 2019, Efraim Flashner wrote: > For packages you have installed in your profile > 'guix package -I | cut -f1,2 --output-delimiter=@ | sort -u' gives a > nice list. Perhaps someone else has an idea for the list from your > os-config. I think I have an answer for the OS config: pass the --profile option to guix package, so the guix package command becomes 'guix package --profile=/var/guix/profiles/system/profile -I' > Although the code above doesn't take into account build inputs and > packages that are in your binaries' paths. For that my two initial ideas > are 'guix package -I | cut -f1 | sort -u | xargs guix size' or > 'guix package -I | cut -f1 | sort -u | guix refresh --list-transitive' > and some more shell scripting to get the package and version. Yes, I did want to inputs in the list as well. However, I worry that calculating these by passing package names to the current guix may inadvertently list newer inputs than were used by the, potentially older, guix that instantiated the profile. Best, Jack