From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: bug#39650: wish: search shows whether a package is installed Date: Mon, 17 Feb 2020 23:33:51 +0100 Message-ID: References: <87mu9geu7s.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53069) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3oyl-0006ID-8M for bug-guix@gnu.org; Mon, 17 Feb 2020 17:35:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3oyk-00082b-Cy for bug-guix@gnu.org; Mon, 17 Feb 2020 17:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3oyk-00082Q-7u for bug-guix@gnu.org; Mon, 17 Feb 2020 17:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3oyk-00070N-4G for bug-guix@gnu.org; Mon, 17 Feb 2020 17:35:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mu9geu7s.fsf@web.de> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Arne Babenhauserheide Cc: 39650@debbugs.gnu.org Hi Arne, On Mon, 17 Feb 2020 at 23:16, Arne Babenhauserheide 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 instal= led (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=E2=80=99s 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 done --8<---------------cut here---------------end--------------->8--- and it is not convenient, I agree. :-) All the best, simon