From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id xgoiM8zGFmDeNgAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 15:03:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cEZwLszGFmA2bQAA1q6Kng (envelope-from ) for ; Sun, 31 Jan 2021 15:03:40 +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 DCBF29404C2 for ; Sun, 31 Jan 2021 15:03:39 +0000 (UTC) Received: from localhost ([::1]:50692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6EGI-00073m-EW for larch@yhetil.org; Sun, 31 Jan 2021 10:03:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6EGB-00073c-1u for help-guix@gnu.org; Sun, 31 Jan 2021 10:03:31 -0500 Received: from mx1.dismail.de ([78.46.223.134]:39901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6EG8-0001uo-Ds for help-guix@gnu.org; Sun, 31 Jan 2021 10:03:30 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 41f72e26; Sun, 31 Jan 2021 16:03:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=20190914; bh=73cAvZBR 55FKRPrAYOznqFddJhKLtNyT1vmKrbv5Okg=; b=bUFOVd98QjsBaUAfDxAa6y6M yhiyjCdHUMrFVK+v39EdOEu9GMmq8sNLaLj834g7iUMZQpjiEXRYuuAGdMKxsuq5 gQJqk5Dod0d0gbmiY0BqwfG601LrRbhR0QpyIxxKaCDN5LXUoFpTMRJDLj8r1WZM GnKiToD9Wjl+XM/hyGIO9prQHIfkStVpmPYp+qaxbtRVGhymr6WdAijNpJhptt4T yHxWepTkgu1v4JU05JW6BEuCsbnbSB8/StGH0y0q6d2NwssuBGxGb1LGJXweOE80 TyFRlm9Z5Esv3mE+n4l4fszhUPJqYO7E6ffEhvZ83wVf4m/b/N7CUa6YWDw9PQ== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 00153d29; Sun, 31 Jan 2021 16:03:24 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 7a197263; Sun, 31 Jan 2021 16:03:24 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 31cdc73e (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 31 Jan 2021 16:03:23 +0100 (CET) From: Joshua Branson To: Phil Subject: Re: Output all dependencies recursively for package References: <85zh0pdzyn.fsf@beadling.co.uk> Mail-Followup-To: Phil , help-guix@gnu.org Date: Sun, 31 Jan 2021 10:03:20 -0500 In-Reply-To: <85zh0pdzyn.fsf@beadling.co.uk> (phil@beadling.co.uk's message of "Sun, 31 Jan 2021 12:59:40 +0000") Message-ID: <87v9bdno7b.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=bUFOVd98; dmarc=pass (policy=reject) header.from=dismail.de; 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: DCBF29404C2 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: W+H2mI8rtu1V Phil writes: > Hi all, > > I'm looking for a command similar to 'guix show' which will give a packag= es explicit > dependencies, recursively. > > Basically something like python's 'pip freeze' for a specific package. > Does guix-refresh --recursive do that?=20 #+BEGIN_SRC sh $ guix refresh --recursive guile gnu/packages/multiprecision.scm:41:12: gmp would be upgraded from 6.2.0 to = 6.2.1 guix/build-system/gnu.scm:143:8: tar would be upgraded from 1.32 to 1.33 guix/build-system/gnu.scm:143:8: findutils would be upgraded from 4.7.0 to = 4.8.0 guix/build-system/gnu.scm:143:8: gawk would be upgraded from 5.0.1 to 5.1.0 gnu/packages/commencement.scm:3741:4: grep would be upgraded from 3.4 to 3.6 guix/build-system/gnu.scm:143:8: gmp would be upgraded from 6.2.0 to 6.2.1 guix/build-system/gnu.scm:143:8: guile would be upgraded from 3.0.2 to 3.0.5 gnu/packages/commencement.scm:3501:2: binutils would be upgraded from 2.34 = to 2.36 gnu/packages/commencement.scm:3561:2: gcc would be upgraded from 7.5.0 to 1= 0.2.0 gnu/packages/commencement.scm:3456:2: glibc would be upgraded from 2.31 to = 2.32 #+END_SRC I'm sure you can use an awk script and uniq from coreutils to turn that into what you want. Note that for core packages this can yield huge graphs. If all you want is to know the number of packages that depend on a given package, use =E2=80=98guix refresh --list-dependent=E2=80=99 (*note =E2=80=98--list-dependent=E2=80=99: Invoking guix refresh.). > Any ideas? > > Thanks, > Phil. > -- Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar