From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: guix describe -p and Guix commit? Date: Tue, 24 Sep 2019 18:00:24 +0200 Message-ID: References: <87v9tim84a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55466) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCnF6-0004Qv-Oz for guix-devel@gnu.org; Tue, 24 Sep 2019 12:00:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCnF1-0003S8-RP for guix-devel@gnu.org; Tue, 24 Sep 2019 12:00:41 -0400 In-Reply-To: <87v9tim84a.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix Devel Hi Ludo, Thank you for explaining. On Tue, 24 Sep 2019 at 10:06, Ludovic Court=C3=A8s wrote: > zimoun skribis: > > > How to track from which channel and commit the packages in a profile co= me from? > > Pro tip: open the =E2=80=98manifest=E2=80=99 file of the profile, and sea= rch for > =E2=80=9Cprovenance=E2=80=9D. You=E2=80=99ll see things like: Oups! I scrolled this file but I missed the feature. It is what I have looking for. :-) > It=E2=80=99s an undocumented and unused feature, mostly because I wouldn= =E2=80=99t know > how to expose it at the CLI level. Ideas welcome! The easy CLI modification is "guix package --list-installed" to expose the commit and URI (and branch). I will give a try. One step further: the record should be compliant with the option file '-f' or manifest '-m' of "guix package" (or "guix pack"). Say, I created a profile, did some pulls, installed and removed packaged. Now I would like to easy "reproduce" this messy computational environment to another machine. Say I copy '/manifest' to 'my-mess', then if I can run "guix package -p my-profile -m my-mess" (or "guix pack"), I would be happy. ;-) Or if some compliance of '/manifest' and the option '-m' is not possible, perhaps a way to convert this /manifest into a '-m' manifest. Maybe, is it already possible? Re-instatiate the tools from a profile. What do you think? Does it make sense? > > What I would expect is: > > guix describe -p my-env > > Generation 5 Sep 20 2019 17:21:30 > > emacs 26.2 asdf12 > > guile 2.2.4 z56qwe > > This seems to be a mixture of =E2=80=98guix describe=E2=80=99 and =E2=80= =98guix package -I=E2=80=99, > right? I=E2=80=99m not sure what you=E2=80=99re expecting here. You have right. My mind was not clear. :-) I am expecting a better "guix package --list-installed". :-) All the best, simon