From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 20 Apr 2006 17:01:15 +0300 From: Michael Shigorin To: ALT Linux Sisyphus discussion list Message-ID: <20060420140115.GN25667@osdn.org.ua> Mail-Followup-To: ALT Linux Sisyphus discussion list References: <44468DF7.9050805@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="eqp4TxRxnD4KrmFZ" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <44468DF7.9050805@yandex.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [sisyphus] =?koi8-r?b?x9LBxiBycG0=?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2006 14:02:19 -0000 Archived-At: List-Archive: List-Post: --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Apr 19, 2006 at 10:22:31PM +0300, Artem wrote: > Понадобилось сделать граф зависимостей набора rpm-пакетов. > Искал в сизифе rpmgraph - не нашел. :-/ Что еще посоветуете? Аттач. -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=rpmdot #!/bin/sh echo "digraph RPM { size=\"40,22\" page=\"8,12\" ratio=fill " rpmlist=$(rpm -qa --qf='[%{name}\n]') for i in $rpmlist ; do rpmdeplist=`(rpm -q --qf='[%{requirename}\n]' "$i"| grep -ve 'rpmlib\(.*\)'| xargs rpm -q --whatprovides |sort -u | xargs rpm -q --qf='%{name}\n'| while read package ; do if test "$i" != "$package" ; then rpm -q --qf='%{name}\n' "$package" fi done| sed -e 's/, $//') 2>/dev/null` iescape=$(echo "$i"|tr '/-' '__') echo "$iescape [fontsize=12, label=\"$i\"]" for j in $rpmdeplist ; do jescape=$(echo "$j"|tr '/-' '__') echo "$iescape -> $jescape;" done done echo "}" --eqp4TxRxnD4KrmFZ--