From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: List of installed package, version pairs Date: Wed, 9 Jan 2019 17:03:40 -0500 (EST) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghLws-0008DB-4u for help-guix@gnu.org; Wed, 09 Jan 2019 17:03:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghLwr-0007SX-9p for help-guix@gnu.org; Wed, 09 Jan 2019 17:03:42 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:46574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghLwr-0007SP-5Q for help-guix@gnu.org; Wed, 09 Jan 2019 17:03:41 -0500 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ghLwr-00067W-0O for help-guix@gnu.org; Wed, 09 Jan 2019 17:03:41 -0500 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: help-guix@gnu.org Hi, It seems that work has noticed the GuixSD host that I brought into the office. The security office maintains a risk profile be collecting lists of installed packages, so I've been asked to produce one for the GuixSD host. I assume that the garbage collector's live-paths is roughly equivalent to what they want. However, I've become stuck developing this report as both "guix gc --list-live" and the live-paths function in the (guix store) Guile module produce a list of store paths. I would like to get the package name and version. Is there a good way to do this without resorting to string manipulation? Best, Jack