* Re: Is that normal??
2019-10-20 13:05 Is that normal?? Jone
@ 2019-10-20 10:36 ` Ricardo Wurmus
2019-10-20 10:39 ` Ricardo Wurmus
1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2019-10-20 10:36 UTC (permalink / raw)
To: help-guix
Jone <yeger9@gmail.com> writes:
> Hi communiti!
> I don't fully understand Guix in this case:
>
> ❯ guix pull -l | grep Generation
> Generation 15 Sep 28 2019 17:10:57 (current)
> ❯ guix package -l | grep Generation
> Generation 155 Oct 20 2019 09:29:25 (current)
> ❯ ls -1d /gnu/store/*-gtk+-2.24.32/
> /gnu/store/0v0dwirkd5sixh91n0qby9jzjh8r6m6a-gtk+-2.24.32
> /gnu/store/25sxqwh2x0j04z59yk49nrliz61cwrhd-gtk+-2.24.32
> /gnu/store/386h8ljfhzlpwxjh1682pqh2gxzrxn08-gtk+-2.24.32
> /gnu/store/3z1f2phvbzzjlxr1gvmf5qjprfp5jb7k-gtk+-2.24.32
> /gnu/store/4sdyqsy2np503akvk182xr3510067zgz-gtk+-2.24.32
> /gnu/store/6yabql5aiwnkaqbsi7mvwqiahaswl5ai-gtk+-2.24.32
> /gnu/store/bfa9122w70civ5bz4985h1cli20p0q1b-gtk+-2.24.32
> /gnu/store/ia1vzawl48yqfyg6v2zfxv47kisj49cp-gtk+-2.24.32
> /gnu/store/nzncsbi6d58k7zqzsr4rxyn8inn8pjhm-gtk+-2.24.32
> /gnu/store/wlc89m9yrb65mjbgw0zkabynms0j0xqa-gtk+-2.24.32
A list like this is rarely enlightening, because it’s not clear where
they are needed (if at all).
> * with the same subfolders *gtk+-2.24.32/{bin,etc,include,lib,share}
> ** and some with the same size
>
> What about deduplication and why different hashes?
What about deduplication? Deduplication is done at the file level via
/gnu/store/.links. You can look at the number of links a file has to
see that this actually works:
$ stat --format=%h /gnu/store/3qjd4jfjhd8c8skwlakl677n1fhpmfsr-gtk+-2.24.32/share/doc/gtk+-2.24.32/COPYING
19
This means that the same COPYING file exists 19 times, but all these
files are hard links to the same single file. You can also get
(slightly less impressive) numbers for binaries:
$ stat --format=%h /gnu/store/3qjd4jfjhd8c8skwlakl677n1fhpmfsr-gtk+-2.24.32/bin/gtk-builder-convert
4
Why different hashes? Different inputs will always lead to different
hashes. Why different inputs? Well, either the input package itself
got changed directly, or it has a different hash due to a change in its
inputs.
--
Ricardo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is that normal??
2019-10-20 13:05 Is that normal?? Jone
2019-10-20 10:36 ` Ricardo Wurmus
@ 2019-10-20 10:39 ` Ricardo Wurmus
2019-10-20 14:23 ` Jone
1 sibling, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2019-10-20 10:39 UTC (permalink / raw)
To: Jone; +Cc: help-guix
Hi Jone,
> I don't fully understand Guix in this case:
I forgot to answer your question: yes, it is normal that there might be
more than one variant of a package on your system.
To remove those that are no longer needed by any other package in any of
your profile generations run “guix gc”. You may want to delete unused
profile and system generations first, though.
--
Ricardo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Is that normal??
@ 2019-10-20 13:05 Jone
2019-10-20 10:36 ` Ricardo Wurmus
2019-10-20 10:39 ` Ricardo Wurmus
0 siblings, 2 replies; 4+ messages in thread
From: Jone @ 2019-10-20 13:05 UTC (permalink / raw)
To: help-guix
Hi communiti!
I don't fully understand Guix in this case:
❯ guix pull -l | grep Generation
Generation 15 Sep 28 2019 17:10:57 (current)
❯ guix package -l | grep Generation
Generation 155 Oct 20 2019 09:29:25 (current)
❯ ls -1d /gnu/store/*-gtk+-2.24.32/
/gnu/store/0v0dwirkd5sixh91n0qby9jzjh8r6m6a-gtk+-2.24.32
/gnu/store/25sxqwh2x0j04z59yk49nrliz61cwrhd-gtk+-2.24.32
/gnu/store/386h8ljfhzlpwxjh1682pqh2gxzrxn08-gtk+-2.24.32
/gnu/store/3z1f2phvbzzjlxr1gvmf5qjprfp5jb7k-gtk+-2.24.32
/gnu/store/4sdyqsy2np503akvk182xr3510067zgz-gtk+-2.24.32
/gnu/store/6yabql5aiwnkaqbsi7mvwqiahaswl5ai-gtk+-2.24.32
/gnu/store/bfa9122w70civ5bz4985h1cli20p0q1b-gtk+-2.24.32
/gnu/store/ia1vzawl48yqfyg6v2zfxv47kisj49cp-gtk+-2.24.32
/gnu/store/nzncsbi6d58k7zqzsr4rxyn8inn8pjhm-gtk+-2.24.32
/gnu/store/wlc89m9yrb65mjbgw0zkabynms0j0xqa-gtk+-2.24.32
* with the same subfolders *gtk+-2.24.32/{bin,etc,include,lib,share}
** and some with the same size
What about deduplication and why different hashes?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is that normal??
2019-10-20 10:39 ` Ricardo Wurmus
@ 2019-10-20 14:23 ` Jone
0 siblings, 0 replies; 4+ messages in thread
From: Jone @ 2019-10-20 14:23 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: help-guix
Hardlinks! I hadn't thought of that :) Thanks.
> To remove those that are no longer needed by any other package in any of
> your profile generations run “guix gc”. You may want to delete unused
> profile and system generations first, though.
Well, that's obvious. 'guix gc' is executed by cron, and before listing
above I specifically executed 'guix package --delete-generations && guix gc
--collect-garbage'. In other words, in the first case, the result is
already after all possible purges, usually I leave only the last generation
and do not store the previous ones.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-20 11:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-20 13:05 Is that normal?? Jone
2019-10-20 10:36 ` Ricardo Wurmus
2019-10-20 10:39 ` Ricardo Wurmus
2019-10-20 14:23 ` Jone
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.