unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39650: wish: search shows whether a package is installed
@ 2020-02-17 22:15 Arne Babenhauserheide
  2020-02-17 22:33 ` zimoun
  2024-04-02 20:33 ` Adam Porter
  0 siblings, 2 replies; 3+ messages in thread
From: Arne Babenhauserheide @ 2020-02-17 22:15 UTC (permalink / raw)
  To: 39650

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#39650: wish: search shows whether a package is installed
  2020-02-17 22:15 bug#39650: wish: search shows whether a package is installed Arne Babenhauserheide
@ 2020-02-17 22:33 ` zimoun
  2024-04-02 20:33 ` Adam Porter
  1 sibling, 0 replies; 3+ messages in thread
From: zimoun @ 2020-02-17 22:33 UTC (permalink / raw)
  To: Arne Babenhauserheide; +Cc: 39650

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#39650: wish: search shows whether a package is installed
  2020-02-17 22:15 bug#39650: wish: search shows whether a package is installed Arne Babenhauserheide
  2020-02-17 22:33 ` zimoun
@ 2024-04-02 20:33 ` Adam Porter
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Porter @ 2024-04-02 20:33 UTC (permalink / raw)
  To: 39650

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-02 20:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 22:15 bug#39650: wish: search shows whether a package is installed Arne Babenhauserheide
2020-02-17 22:33 ` zimoun
2024-04-02 20:33 ` Adam Porter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).