From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: Re: Inconsistency between "guix system" and "guix package" Date: Sat, 30 Sep 2017 20:13:31 +0300 Message-ID: <87k20gt8hw.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyLKc-0008Bo-4u for guix-devel@gnu.org; Sat, 30 Sep 2017 13:13:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyLKY-0007jQ-Rp for guix-devel@gnu.org; Sat, 30 Sep 2017 13:13:38 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:51576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyLKY-0007ia-Iz for guix-devel@gnu.org; Sat, 30 Sep 2017 13:13:34 -0400 Received: by mail-lf0-x233.google.com with SMTP id y187so2295372lfc.8 for ; Sat, 30 Sep 2017 10:13:34 -0700 (PDT) In-Reply-To: (Hartmut Goebel's message of "Fri, 22 Sep 2017 14:13:56 +0200") 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: Hartmut Goebel Cc: guix-devel Hello Hartmut, Hartmut Goebel writes: > Hi, > > I just stepped into problems listing the generations of "system". Then I > found out: > > "guix system" uses sub-commands > > guix system list-generations > guix system roll-back > guix system switch-generation > > > Contrary to this "guix package" uses options: > > guix package --list-generations > guix package --switch-generation > guix package --roll-back > guix package --delete-generations As I understand you mean =E2=80=98--=E2=80=99. I guess it's required, beca= use with =E2=80=98system=E2=80=99 you could do additional ACTIONS as =E2=80=98guix s= ystem --help=E2=80=99 says. ACTIONS includes more OPTIONS. It will be a mess to include all not related OPTIONS from ACTIONS (really long =E2=80=98--help=E2=80=99). > Please also note there is no "guix system delete-generations"! Yes, as I remember there is no command to clean up system generations. At least I didn't find one. So I wrote a script to remove system generations older than 14 days (second line) and remove guile packages older than 2 weeks (third line). --8<---------------cut here---------------start------------->8--- #!/bin/sh exec find /var/guix/profiles/* -maxdepth 0 -mtime +14 -not -name per-user -= exec sudo unlink {} \; exec guix package --delete-generations=3D2w --8<---------------cut here---------------end--------------->8--- > This difference is confusing. Should I report this as a bug? Probably no, because it's not a bug. Just a discussion about improvement, which guix-devel mailing list is enough.