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

To reply to this bug, email your comments to 39650 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#39650; Package guix. (Mon, 17 Feb 2020 22:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arne Babenhauserheide <arne_bab <at> web.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 17 Feb 2020 22:16:02 GMT) Full text and rfc822 format available.

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

From: Arne Babenhauserheide <arne_bab <at> web.de>
To: bug-guix <at> gnu.org
Subject: wish: search shows whether a package is installed
Date: Mon, 17 Feb 2020 23:15:35 +0100
Hi,

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

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

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken




Information forwarded to bug-guix <at> gnu.org:
bug#39650; Package guix. (Mon, 17 Feb 2020 22:35:02 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-guix <at> gnu.org:
bug#39650; Package guix. (Tue, 02 Apr 2024 20:35:02 GMT) Full text and rfc822 format available.

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

From: Adam Porter <adam <at> alphapapa.net>
To: 39650 <at> debbugs.gnu.org
Subject: wish: search shows whether a package is installed
Date: Tue, 2 Apr 2024 15:33:57 -0500
Hi,

FYI, I just filed bug#70153, which is related, about the "guix show" / 
"guix package --show" command.

https://issues.guix.gnu.org/70153

--Adam




This bug report was last modified 16 days ago.

Previous Next


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