pkgsrc-Users archive

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

Re: pkg_add on machine without Internet connection



 >> but how do I find out which packages kde depends on so I can fetch 
 >> their .tgz files and put them all in one directory prior to running 
 >> the command above?

> pkg_info -n /path/to/binaries/kdebase4-4.4.4nb1.tgz

> -n will give the list of dependencies

> But it won't list the dependencies of dependencies, so you could do this 
> a step at a time.

JFYI. Taiking pkg_summary on input you can easily fetch all dependencies
recursively using wip/pkg_summary-utils.

   bzcat /tmp/pkg_summary.bz2 | \
   pkg_summary2deps -dn | \
   pkg_subgraph_deps -r -x -p kdebase4

This command outputs a dependency graph. Converting it to a list of
packages is trivial.

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index