unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Joshua Branson <jbranso@dismail.de>
To: Phil <phil@beadling.co.uk>
Cc: help-guix@gnu.org
Subject: Re: Output all dependencies recursively for package
Date: Sun, 31 Jan 2021 10:03:20 -0500	[thread overview]
Message-ID: <87v9bdno7b.fsf@dismail.de> (raw)
In-Reply-To: <85zh0pdzyn.fsf@beadling.co.uk> (phil@beadling.co.uk's message of "Sun, 31 Jan 2021 12:59:40 +0000")

Phil <phil@beadling.co.uk> writes:

> Hi all,
>
> I'm looking for a command similar to 'guix show' which will give a packages explicit
> dependencies, recursively.
>
> Basically something like python's 'pip freeze' for a specific package.
>

Does guix-refresh --recursive do that? 

#+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 10.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 ‘guix refresh --list-dependent’ (*note
     ‘--list-dependent’: 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


  reply	other threads:[~2021-01-31 15:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31 12:59 Output all dependencies recursively for package Phil
2021-01-31 15:03 ` Joshua Branson [this message]
2021-02-01  1:32   ` Tobias Geerinckx-Rice
2021-02-01  6:26     ` zimoun
2021-02-01 16:21       ` me--- via
2021-02-01 19:36       ` Phil
2021-01-31 15:30 ` Efraim Flashner
2021-01-31 19:09 ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9bdno7b.fsf@dismail.de \
    --to=jbranso@dismail.de \
    --cc=help-guix@gnu.org \
    --cc=phil@beadling.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).