unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Giovanni Biscuolo <g@xelera.eu>
To: sirgazil <sirgazil@zoho.com>, help-guix <help-guix@gnu.org>
Subject: Re: How do I install packages from a file without removing currently installed packages?
Date: Sat, 11 May 2019 10:30:34 +0200	[thread overview]
Message-ID: <87zhntfl5h.fsf@roquette.mug.biscuolo.net> (raw)
In-Reply-To: <16aa278da65.c6dd197c22998.5984578131160668235@zoho.com>

[-- Attachment #1: Type: text/plain, Size: 2098 bytes --]

Hello sirgazil,

sirgazil <sirgazil@zoho.com> writes:

[...]

> Is there any way to tell Guix to create a generation that is the
> aggregate of the packages installed in the current generation and the
> packages specified in the manifest file?

no way to aggregate packages this way in the same profile (default
profile I imagine), you should use "guix environment" as already poitend
out by ison in this thread or...

you could "manually" list packages installed in your preferred
(default?) profile to a manifest or...

if you are willing to hack a little bit, Ricardo Wurmus wrote a little
Guile script that helps convert a profile manifest (e.g. your default
profile) to a manifest.scm file:

http://lists.gnu.org/archive/html/guix-devel/2018-10/msg00023.html

quoting here an excerpt for completeness (since the original message was
on guix-devel):

> --8<---------------cut here---------------start------------->8---
> (use-modules (guix profiles)
>              (ice-9 match)
>              (ice-9 pretty-print))
> 
> (match (command-line)
>   ((_ where)
>    (pretty-print
>     `(specifications->manifest
>       ',(map manifest-entry-name (manifest-entries (profile-manifest where))))))
>   (_ (error "Please provide the path to a Guix profile.")))
> --8<---------------cut here---------------end--------------->8---
> 
> You can put this in a file “manifest-to-manifest.scm” and run it like
> this from a Guix source checkout:
> 
>     ./pre-inst-env guile -s manifest-to-manifest.scm /path/to/.guix-profile > 
> my-manifest.scm
> 
> You can then proceed to install the generated manifest with:
> 
>     guix package -m my-manifest.scm -p /path/to/new/.guix-profile

e.g. you can convert your current default profile manifest with:

 ./pre-inst-env guile -s manifest-to-manifest.scm $HOME/.guix-profile > default-manifest.scm
  
hint: if you look at $HOME/.guix-profile/manifest you'll see what's
installed in your default profile... *provenance* included :-)

HTH! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  parent reply	other threads:[~2019-05-11  8:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-10 15:59 How do I install packages from a file without removing currently installed packages? sirgazil
2019-05-10 17:42 ` swedebugia
2019-05-10 21:35   ` sirgazil
2019-05-10 20:49 ` ison
2019-05-10 21:29   ` sirgazil
2019-05-11  8:30 ` Giovanni Biscuolo [this message]
2019-05-11  8:55   ` Pierre Neidhardt
2019-05-11 15:55   ` sirgazil

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=87zhntfl5h.fsf@roquette.mug.biscuolo.net \
    --to=g@xelera.eu \
    --cc=help-guix@gnu.org \
    --cc=sirgazil@zoho.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.
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).