From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cLmoHowCUmAdJwAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 13:22:20 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aP99GowCUmBcEAAA1q6Kng (envelope-from ) for ; Wed, 17 Mar 2021 13:22:20 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 824911B84A for ; Wed, 17 Mar 2021 14:22:19 +0100 (CET) Received: from localhost ([::1]:48848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMW7t-0004pO-GU for larch@yhetil.org; Wed, 17 Mar 2021 09:22:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMW7Y-0004pG-Vo for help-guix@gnu.org; Wed, 17 Mar 2021 09:21:57 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:54966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMW7X-0003TF-6W for help-guix@gnu.org; Wed, 17 Mar 2021 09:21:56 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6B8D628D; Wed, 17 Mar 2021 14:21:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IeqI5MC5NIji; Wed, 17 Mar 2021 14:21:49 +0100 (CET) Received: from jurong (p200300dd5710fa007685d76df494a60d.dip0.t-ipconnect.de [IPv6:2003:dd:5710:fa00:7685:d76d:f494:a60d]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 56842A4; Wed, 17 Mar 2021 14:21:49 +0100 (CET) Date: Wed, 17 Mar 2021 14:21:47 +0100 From: Andreas Enge To: =?iso-8859-15?Q?Tom=E1s?= Chapunov Subject: Re: How do I retrieve the path to a Guix installed program from command line in a foreign distro? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 6B8D628D X-Spamd-Result: default: False [0.50 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FORGED_RECIPIENTS(2.00)[tomaschapunov@gmail.com ..,andreas.enge@aquilenet.fr ...]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-3.00)[100.00%] Received-SPF: neutral client-ip=185.233.100.1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action 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=1615987339; 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; bh=BspTm4IyGjf+gEZ4q9NCmMrqbTyeN83/tRN0Ju/+x+Y=; b=pJ7JXbLfWtN+U3PuE3RPNXvbK06t/xLJXKVyViKRiopLBeHC6NBW/l9cOUcPtUcHCEJfi3 1LHhafxmGg8oGBdvoIPPwgk0R4oJpgYZRFkg0bqoryAZYX+YOvMl8rcp+zDmeJ6iDpmY3N nCz2zKMEhlYoUVs/CB+lcy+ORYZm5xY4xmZpP5e+sivSPjlZPgNojMD+xdSNmY+w4WKL0e FofOnjxcpje7QM0u9/ULcReiY/u3P5OZgXvPulj+EUy6Y9IwtHTRYixoC2hSbi6obV/v4D HDDZUXNvD+cSvQgIUKS6qVshG+lQXweHqjcOiQQTSj78iwggcGeoplnPqSSzkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615987339; a=rsa-sha256; cv=none; b=o5K4n4iZXCK8+KGNqAJsQkhe+c4DxSRuri5yPGKUK/jexSip7Hb6xxVBYkWNCBBRRdmb9R Q+XnsyN8JPQ5l+8Lvp2rtvTx+Vi7Y3PdjQQ8MVJqBM40X9Ye2m12EsL1CSgR6gX/jurK1G PIUh5LQVFgzRyd/5LBB7crV9t7DupZbst69rIVvuT3VOjAe5bAoZTTYRHl9nkn4VIppEh8 BN8AevWK0f9eU1V0AOQyPphct+GeQ39abE+daWugHb31clnWMwn17qKHcJlQfBJmwOdOqX mpZCzWhJiRW0+1+ji8pMmur3o1SlefJov3kP7s+BYhZu7LVTT0PG0sJMVzIJrQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.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: -1.43 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.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: 824911B84A X-Spam-Score: -1.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: EB+GgMVucp/h Hello, Am Wed, Mar 17, 2021 at 09:32:29AM -0300 schrieb Tomás 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