From owner-freebsd-pkg@FreeBSD.ORG Sat May 31 12:21:32 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBF6BBFA for ; Sat, 31 May 2014 12:21:32 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 57C5524E8 for ; Sat, 31 May 2014 12:21:31 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 35574417 for freebsd-pkg@freebsd.org; Sat, 31 May 2014 19:21:29 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.7/8.14.7) with ESMTP id s4VCLS9C004815 for ; Sat, 31 May 2014 19:21:28 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.7/8.14.7/Submit) id s4VCLSbI004814 for freebsd-pkg@freebsd.org; Sat, 31 May 2014 19:21:28 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Sat, 31 May 2014 19:21:28 +0700 From: Victor Sudakov To: freebsd-pkg@freebsd.org Subject: Re: Dependency graph? Message-ID: <20140531122127.GA4538@admin.sibptus.tomsk.ru> References: <20140531065218.GB169@admin.sibptus.tomsk.ru> <538991E0.5000902@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <538991E0.5000902@FreeBSD.org> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 May 2014 12:21:33 -0000 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. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru