* Inconsistency between "guix system" and "guix package"
@ 2017-09-22 12:13 Hartmut Goebel
2017-09-30 17:13 ` Oleg Pykhalov
2017-10-01 20:04 ` Alex Kost
0 siblings, 2 replies; 5+ messages in thread
From: Hartmut Goebel @ 2017-09-22 12:13 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 707 bytes --]
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
Please also note there is no "guix system delete-generations"!
This difference is confusing. Should I report this as a bug?
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
[-- Attachment #2: 0xBF773B65.asc --]
[-- Type: application/pgp-keys, Size: 14855 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inconsistency between "guix system" and "guix package"
2017-09-22 12:13 Inconsistency between "guix system" and "guix package" Hartmut Goebel
@ 2017-09-30 17:13 ` Oleg Pykhalov
2017-10-01 20:04 ` Alex Kost
1 sibling, 0 replies; 5+ messages in thread
From: Oleg Pykhalov @ 2017-09-30 17:13 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inconsistency between "guix system" and "guix package"
2017-09-22 12:13 Inconsistency between "guix system" and "guix package" Hartmut Goebel
2017-09-30 17:13 ` Oleg Pykhalov
@ 2017-10-01 20:04 ` Alex Kost
2017-10-02 14:43 ` Ludovic Courtès
1 sibling, 1 reply; 5+ messages in thread
From: Alex Kost @ 2017-10-01 20:04 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
Hartmut Goebel (2017-09-22 14:13 +0200) wrote:
> 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
>
> Please also note there is no "guix system delete-generations"!
>
> This difference is confusing. Should I report this as a bug?
I think it's not a bug, just some inconsistency that was accumulated
with time. I also asked about it 2 years ago:
http://lists.gnu.org/archive/html/guix-devel/2015-10/msg00960.html
My understanding is that people would agree on unified actions/options
for "package" and "system" commands. The problem is that no one has
worked in this direction :-)
--
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inconsistency between "guix system" and "guix package"
2017-10-01 20:04 ` Alex Kost
@ 2017-10-02 14:43 ` Ludovic Courtès
2017-10-02 18:56 ` Hartmut Goebel
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2017-10-02 14:43 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel
Hey hey!
Alex Kost <alezost@gmail.com> skribis:
> Hartmut Goebel (2017-09-22 14:13 +0200) wrote:
>
>> 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
>>
>> Please also note there is no "guix system delete-generations"!
>>
>> This difference is confusing. Should I report this as a bug?
>
> I think it's not a bug, just some inconsistency that was accumulated
> with time. I also asked about it 2 years ago:
>
> http://lists.gnu.org/archive/html/guix-devel/2015-10/msg00960.html
>
> My understanding is that people would agree on unified actions/options
> for "package" and "system" commands. The problem is that no one has
> worked in this direction :-)
That’s a good summary. :-)
There’s also the problem that ‘guix package’ needs to support multiple
actions on the same line, for transactions, as in:
guix package -i guile -r python
So we cannot just have “guix package install” or “guix package remove”.
Thoughts?
It’s one of these simple problems that appear to lack a simple solution.
:-)
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inconsistency between "guix system" and "guix package"
2017-10-02 14:43 ` Ludovic Courtès
@ 2017-10-02 18:56 ` Hartmut Goebel
0 siblings, 0 replies; 5+ messages in thread
From: Hartmut Goebel @ 2017-10-02 18:56 UTC (permalink / raw)
To: Ludovic Courtès, Alex Kost; +Cc: guix-devel
Am 02.10.2017 um 16:43 schrieb Ludovic Courtès:
> So we cannot just have “guix package install” or “guix package remove”.
>
> Thoughts?
use the dashes in "guix system", too:
guix system --roll-back
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-02 18:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22 12:13 Inconsistency between "guix system" and "guix package" Hartmut Goebel
2017-09-30 17:13 ` Oleg Pykhalov
2017-10-01 20:04 ` Alex Kost
2017-10-02 14:43 ` Ludovic Courtès
2017-10-02 18:56 ` Hartmut Goebel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.