unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Inconsistency between "guix system" and "guix package"
Date: Sat, 30 Sep 2017 20:13:31 +0300	[thread overview]
Message-ID: <87k20gt8hw.fsf@gmail.com> (raw)
In-Reply-To: <e39ff8b8-8286-11eb-b380-b56950305807@crazy-compilers.com> (Hartmut Goebel's message of "Fri, 22 Sep 2017 14:13:56 +0200")

Hello Hartmut,

Hartmut Goebel <h.goebel@crazy-compilers.com> 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 ‘--’.  I guess it's required, because with
‘system’ you could do additional ACTIONS as ‘guix system --help’ says.
ACTIONS includes more OPTIONS.  It will be a mess to include all not
related OPTIONS from ACTIONS (really long ‘--help’).

> 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=2w
--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.

  reply	other threads:[~2017-09-30 17:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-22 12:13 Inconsistency between "guix system" and "guix package" Hartmut Goebel
2017-09-30 17:13 ` Oleg Pykhalov [this message]
2017-10-01 20:04 ` Alex Kost
2017-10-02 14:43   ` Ludovic Courtès
2017-10-02 18:56     ` Hartmut Goebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k20gt8hw.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=h.goebel@crazy-compilers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).