all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: 39650@debbugs.gnu.org
Subject: bug#39650: wish: search shows whether a package is installed
Date: Mon, 17 Feb 2020 23:33:51 +0100	[thread overview]
Message-ID: <CAJ3okZ3WxtHOGw9mtN+=oyxL_5t8H+LofvxpV03F8Lyu28pv0g@mail.gmail.com> (raw)
In-Reply-To: <87mu9geu7s.fsf@web.de>

Hi Arne,

On Mon, 17 Feb 2020 at 23:16, Arne Babenhauserheide <arne_bab@web.de> wrote:

> It would be great if `guix search TERMS` could show for each record
> whether the package is installed and which versions are installed.

I agree.
Say if it is already in '/gnu/store' is often helpful.

And "guix search" should even provide in which profile it is already installed
(maybe even in which generation of which profile it is already)


> I regularly search for a library and then check with guix package -I
> whether I already have it, and that’s quite inconvenient.

In the meantime, something along these lines should do the trick...

--8<---------------cut here---------------start------------->8---
for profile in $(guix package --list-profiles)
do
    echo $profile
    guix package -p $profile -I | grep <pkg>
done
--8<---------------cut here---------------end--------------->8---

and it is not convenient, I agree. :-)


All the best,
simon

  reply	other threads:[~2020-02-17 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-17 22:15 bug#39650: wish: search shows whether a package is installed Arne Babenhauserheide
2020-02-17 22:33 ` zimoun [this message]
2024-04-02 20:33 ` Adam Porter

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ3okZ3WxtHOGw9mtN+=oyxL_5t8H+LofvxpV03F8Lyu28pv0g@mail.gmail.com' \
    --to=zimon.toutoune@gmail.com \
    --cc=39650@debbugs.gnu.org \
    --cc=arne_bab@web.de \
    /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.
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.