From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sK2nDn8NUmDUTAAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 14:09:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +JiCCn8NUmAZfAAAB5/wlQ (envelope-from ) for ; Wed, 17 Mar 2021 14:09:03 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 74A0D10839 for ; Wed, 17 Mar 2021 15:09:02 +0100 (CET) Received: from localhost ([::1]:34390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMWr7-0007sg-Lg for larch@yhetil.org; Wed, 17 Mar 2021 10:09:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMWqy-0007sG-5J for help-guix@gnu.org; Wed, 17 Mar 2021 10:08:52 -0400 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:40934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMWqw-0006yY-H1 for help-guix@gnu.org; Wed, 17 Mar 2021 10:08:51 -0400 Received: by mail-io1-xd2c.google.com with SMTP id m7so22024434iow.7 for ; Wed, 17 Mar 2021 07:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=btdSQpk9Xk9FRG6QaKOC2BEwuP8xWiNRyTPGLTH4cng=; b=PnVNkeFLhZMmGb/pD/ZIEuERtStTbqEYgVnOwI04HrsgHn3yuaZCb8qWHltxZIHq7e odewTZ9I+0djtfvaRtTwRy6h18i58j+3IwnSNg2QhWSj8R5bvF6+GQpkWTd4S5xF8Le2 yTmbTS3ynPRb64OCehM7HkSnLqdaf+EFBgiQPozBR0eLvRClp2MSf9x3O6GDLSM30kv9 ixtyg/p9t0oZaFrqYCD0N9Je9bLkldmhmtnRXnjjUescOFpCOaZwEoD7E2C+DW8mvCIu FLHS4MiNrD7p/sVo50lN4CaxYa9NLDN9CbDvea2q55C5q6K01sBz8C9FkNIczmO+84UL 55cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=btdSQpk9Xk9FRG6QaKOC2BEwuP8xWiNRyTPGLTH4cng=; b=Rwl8bIDwo+JHHMENadNsDG3RKnLeyMaWMI8rTvTQHrPJ6d0y0YJh8+G0GLld9JX7NJ qFuJ1hwpQujd6wvkm7jeYbn9on+l25LebhczdQo2U1qWwLfNQm6vf/g6c+rX7n2NLVuC sRAPR7pyxjg1cmN51xZU3aM0UBApUXfmVgv6HCtidHDJBsNR6vZ42S6b2QhyDJHxt6O4 66TABX3qRY7u+TXO9n7q0lxOfd21FxGRoVOg3Qnz+ZbVl3jd2QQNX8VxciS/MANqbiB7 YbctAhwxja5kTNXJFxBODv7pGFY1L/WetrQwm+Xe/16UK/qai3t9yVgXTMkA49i/+RtD fz8g== X-Gm-Message-State: AOAM532/V3/3z5LD9nMZlMqLBiguEvrSYkdtGdDV2J9NE+Os7gq6Cdvo ng6a1YDhEAMMUmda2NGdvAcdB+khyGnmjH221bW/2hh9 X-Google-Smtp-Source: ABdhPJyzIg21/rsI4VRkx7l/9/Jz+SIMN3I+/0HZZJSfUnkrOktxFS6jstlz70kNr8C5PWjtGErbtfNkvTdOKXM+7Fs= X-Received: by 2002:a05:6602:314b:: with SMTP id m11mr7104296ioy.158.1615990128971; Wed, 17 Mar 2021 07:08:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Tom=C3=A1s_Chapunov?= Date: Wed, 17 Mar 2021 11:08:35 -0300 Message-ID: Subject: Re: How do I retrieve the path to a Guix installed program from command line in a foreign distro? To: Andreas Enge Received-SPF: pass client-ip=2607:f8b0:4864:20::d2c; envelope-from=tomaschapunov@gmail.com; helo=mail-io1-xd2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615990142; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YMKwA9ETgzXrW3SpCWydYmqZWSLmHs7oonb+JvpdMeo=; b=tAH/HGag3haC/6Q370pPhSPo9Q+bY2Yia6IhOPVFzx1HQC7FmRTk+CC8ShS5zKUR2Zqutz 2moe3IC5Tk2NQmmd78H7EIRmqqQkK0wZ4dW5ns7wChrqfpvra0V0o30Zc0xgLLYX99V8F/ TzEegtpNMPNyZqs9yoTZ2f9nsPgrqD+beUmGHApA0xxnVC2pO+AiWQ53P5i5cg8giqYkhV hcdIx/cKwRokIGXlP0KbSu98TXzr9+Q7QRuznmVeZQn66MjQkwi/2dRfBj8e6rwnEsUApq fd11lpZvH2TaluFgZoOPvbiQElLzdAOpMHiDYTcNxMPzioxnouJjFDXzdstvQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615990142; a=rsa-sha256; cv=none; b=N+ZMCe1UKqfwpuocTSg8kGiylYqgMV2UJ3u+nA8K2wmJ4vbMv9V2PAjB3v4syaWvmyWAic FPCNFetH1GrVAH65M+piAIPJP6oZ2YPugGQazpecL74tg915xqH4U0aXnSpgoMu3QQfLF6 M7c3RucEg+SB/jHE3FdQEennhCpEh17RD5Xkny7WTMsBJZfs3qWOQQg6PTk2T0donimSG3 EW4Hwi0chDLMghFV0dB4xEgtGV2KVmaoxSfKYF+o/dJ2nUzbtJ+xkZmXXSJ90l/BgGYRHP CcqrAqM59GIGdiYQvZ10m2Iwgedga6HkCuMtoWEMRNidE8uQV74wv5bmB027ZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=PnVNkeFL; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=PnVNkeFL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 74A0D10839 X-Spam-Score: -0.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: z3cERjTByTad That is what I was looking for. Thanks, I'll check it out! Tom=C3=A1s El mi=C3=A9., 17 mar. 2021 10:21, Andreas Enge escribi=C3= =B3: > Hello, > > Am Wed, Mar 17, 2021 at 09:32:29AM -0300 schrieb Tom=C3=A1s Chapunov: > > Is there a canonical way to retrieve the full path in my profile to a > > specific package with a command, in Guix on a foreign distro? > > I used locate or find, but I can't figure out from the output how to > detect > > and select the correct one. > > I think you are looking for "which". This shows you which program would > be executed depending on your $PATH variable, and assuming that the Guix > directories are at the front of it, the Guix program will be preferred. > Like so: > $ which calibre > /home/andreas/.guix-profile/bin/calibre > > This is actually the common pattern; you can expect the full path to be > $HOME/.guix-profile/bin/name-of-the-binary > > Using this would follow updates of your user profile. If you want to know > the real binary behind the scenes, you could use > $ readlink `which calibre` > /gnu/store/bhasa1a7pvv1icmdm6nrpscazw23pa03-calibre-4.18.0/bin/calibre > > It does not move, but thus can of course become outdated or even deleted > when you do a "guix gc". > > Andreas > >