guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ๐ŸŒŽ๏ธ Install every Guix package ๐ŸŒŽ๏ธ


From: kiasoc5
Subject: Re: ๐ŸŒŽ๏ธ Install every Guix package ๐ŸŒŽ๏ธ
Date: Thu, 5 Jan 2023 13:48:55 -0500

On 1/4/23 21:50, Eric Brown wrote:
"jgart" <jgart@dismail.de> writes:

Hi Guixers,

How would you approach writing a script that installs every Guix package 
exhaustively for your current revision?

I'm thinking of something similar to `all-packages` on PyPi but for every Guix 
package (the whole wide ๐ŸŒŽ๏ธ).

https://pypi.org/project/all-packages/

guix package -A | cut -f 1 | sort -u | xargs guix build --keep-going

can accomplish this. The `--keep-going' flag is useful in case a package
does not build.

Occasionally, I will sandwich in a negated grep to
exclude packages:

guix package -A | cut -f 1 | sort -u | grep -v "emacs-guile" | xargs guix build 
--keep-going

(Aside: emacs-guile-on-guix-system is the pinnacle of GNU, IMO but it failed to
build--appearing to be abandoned--and was removed.)

One may also select just the packages they want, perhaps by using a
scripting language such as python to make larger selections more
convenient.

This can be combined with a substitute server and an offload build
machine to make an on-site cache. One can choose whether to employ the
Guix substitute servers if that would be beneficial.

I just realized that this downloads all packages into the store, which not the same as installing all the packages into one or many profiles. I wonder what the minimum set of profiles to install all packages while avoiding collisions might be?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]