Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2014 14:10:48 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Victor Sudakov <vas@mpeks.tomsk.su>, freebsd-pkg@freebsd.org
Subject:   Re: Dependency graph?
Message-ID:  <5389D4D8.6060604@qeng-ho.org>
In-Reply-To: <20140531122127.GA4538@admin.sibptus.tomsk.ru>
References:  <20140531065218.GB169@admin.sibptus.tomsk.ru> <538991E0.5000902@FreeBSD.org> <20140531122127.GA4538@admin.sibptus.tomsk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31/05/2014 13:21, Victor Sudakov wrote:
> Matthew Seaman wrote:
>>> Sometimes you attempt to "pkg install" a simple package and find out
>>> that it attempts to install a load of crap (like X libraries) because of
>>> some obscure dependency.
>>>
>>> Is there a tool that would analyze the repository metadata and display
>>> a dependency tree for a package?
>>>
>>> All the necessary dependency information is already in the repository
>>> in JSON (?) or sqlite format, perhaps someone has already come up with
>>> a script to display that?
>>
>> Not to my knowledge.  Generating output suitable for feeding into dot
>> should be pretty easy, just based on processing the output of 'pkg query'
>
> To my knowledge, 'pkg query' works with the locally installed packages.
> Can it really query a remote repository, and if yes, could you please give an
> example query?
>
> When I issue 'pkg query %do some_package_not_installed_locally', it
> returns an empty result.

pkg rquery






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5389D4D8.6060604>