On Wed, May 24, 2017 07:34, Gabriella Lynns wrote:
> Hi
>

> I want - I need - a method for finding all the dependencies of a package,
> preferably in one of the orders they should be installed.
>
> And so, to the point: is any such tool around? Or do I have to fire up php
> yet again?
>
> TIA
> Gabe

Hello Gabe,

In the past I have attempted to use topological sorting (tsort). This
method takes a bit of time if you start with an App with a lot of deps. A
rought example through book and required/recommended deps and coming up
with something for Vim (have to work through the circular deps):

deps.txt:
vim gpm
vim lua
vim python2
vim ruby
vim tcl
vim gtk2
gtk2 atk2
gtk2 gdk-pixbuf
gtk2 pango
gtk2 hicolor-icon-theme
atk2 glib
gdk-pixbuf glib
gdk-pixbuf libjpegturbo
gdk-pixbuf libpng
gdk-pixbuf libtiff
gdk-pixbuf xorglibs
glib libffi
glib python2
glib pcre
libjpegturbo nasm
libjpegturbo yasm
python2 libffi
xorglibs fontconfig
xorglibs libxcb
libxcb libxau
libxcb xcbproto
libxcb libxdmcp
libxdmcp xorgproto
xorgproto util-macros
xorgproto sudo
xorgproto wget
wget certauth
wget openssl
util-macros xorgbuildenv
xcbproto python2
xcbproto xorgbuildenv
libxau xorgproto
fontconfig freetype2
freetype2 harfbuzz
freetype2 libpng
freetype2 which
harfbuzz glib
harfbuzz icu
pango fontconfig
pango glib
pango cairo
pango xorglibs
cairo libpng
cairo pixman
cairo fontconfig
cairo glib
pixman gtk2
pixman libpng

tsort deps.txt:
vim
tcl
ruby
lua
gpm
tsort: deps.txt: input contains a loop:
tsort: pango
tsort: cairo
tsort: pixman
tsort: gtk2
pango
cairo
pixman
gtk2
hicolor-icon-theme
gdk-pixbuf
atk2
xorglibs
libtiff
libjpegturbo
libxcb
fontconfig
yasm
nasm
libxdmcp
xcbproto
libxau
freetype2
xorgproto
which
libpng
harfbuzz
wget
sudo
util-macros
icu
glib
openssl
certauth
xorgbuildenv
pcre
python2
libffi

Sincerely,

William
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to