help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Output all dependencies recursively for package


From: Joshua Branson
Subject: Re: Output all dependencies recursively for package
Date: Sun, 31 Jan 2021 10:03:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]