[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47163] [PATCH] refresh: Add '--installed' option.
From: |
Léo Le Bouter |
Subject: |
[bug#47163] [PATCH] refresh: Add '--installed' option. |
Date: |
Tue, 16 Mar 2021 14:10:46 +0100 |
User-agent: |
Evolution 3.34.2 |
On Tue, 2021-03-16 at 13:58 +0100, zimoun wrote:
> Adding the manifest option to "guix lint", is it not enough? I do
> not
> know how many packages you have in your operating-system definition
> but from my understanding your user-wide packages should be in
> manifest.scm files, and you could also maintain a manifest.scm file
> for your packages system-wide. Anyway.
>
> Here an example with an hard-coded path, saved in /tmp/manifest-from-
> os.scm:
>
> --8<---------------cut here---------------start------------->8---
> (use-modules
> (gnu system)
> (guix profiles))
>
> (define os
> (load "/home/simon/src/guix/guix/gnu/system/examples/bare-
> bones.tmpl"))
>
> (define pkgs (operating-system-packages os))
>
> (packages->manifest pkgs)
> --8<---------------cut here---------------end--------------->8---
>
> Then "guix refresh -m /tmp/manifest-from-os.scm" should do the job.
> Well, it is an example, the point is simply to show that an option is
> not necessary, IMHO. However, a robust script could be in etc/ with
> some other tools and with a line in the manual. Maybe. :-)
> It seems better to keep separated what operates on packages and what
> operates on system.
>
>
> Cheers,
> simon
You are right that looks great!
signature.asc
Description: This is a digitally signed message part
- [bug#47163] [PATCH] refresh: Add '--installed' option., Xinglu Chen, 2021/03/15
- [bug#47163] [PATCH] refresh: Add '--installed' option., Ludovic Courtès, 2021/03/15
- [bug#47163] [PATCH] refresh: Add '--installed' option., Xinglu Chen, 2021/03/16
- [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.), Xinglu Chen, 2021/03/16
- [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.), zimoun, 2021/03/16
- [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.), Xinglu Chen, 2021/03/16
- [bug#47163] Using package transformations declaratively, Ludovic Courtès, 2021/03/17
[bug#47163] [PATCH] doc: Add snippet for running 'guix refresh' on installed packages, Xinglu Chen, 2021/03/16
[bug#47213] [PATCH v2] doc: Add snippet for running 'guix refresh' on installed, Xinglu Chen, 2021/03/17