GNU bug report logs - #39650
wish: search shows whether a package is installed

Previous Next

Package: guix;

Reported by: Arne Babenhauserheide <arne_bab <at> web.de>

Date: Mon, 17 Feb 2020 22:16:01 UTC

Severity: normal

Full log


Message #8 received at 39650 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Arne Babenhauserheide <arne_bab <at> web.de>
Cc: 39650 <at> debbugs.gnu.org
Subject: Re: bug#39650: wish: search shows whether a package is installed
Date: Mon, 17 Feb 2020 23:33:51 +0100
Hi Arne,

On Mon, 17 Feb 2020 at 23:16, Arne Babenhauserheide <arne_bab <at> 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




This bug report was last modified 1 year and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.