From: Michael Shigorin <mike@osdn.org.ua>
To: community@altlinux.ru
Subject: [Comm] Re: дерево - диаграмма зависимостей пакетов
Date: Thu, 18 Nov 2004 17:44:58 +0200
Message-ID: <20041118154458.GT31740@osdn.org.ua> (raw)
In-Reply-To: <E1CUo3t-000LOo-00.vikerness-mail-ru@f9.mail.ru>
[-- Attachment #1.1: Type: text/plain, Size: 411 bytes --]
On Thu, Nov 18, 2004 at 06:19:05PM +0300, Михаил Исаченков wrote:
> а чем можно построить диаграмму-дерево зависимостей
> установленных пакетов? вопрос праздный, но тем не менее.
Посмотрите apt-cache(1) про dotty, ну и apt-get install graphviz
:-)
Также прилагаю скриптик имени Alexander Bokovoy.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #1.2: rpmdot --]
[-- Type: text/plain, Size: 644 bytes --]
#!/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 "}"
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-11-18 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-18 15:19 [Comm] " Михаил Исаченков
2004-11-18 15:44 ` Michael Shigorin [this message]
2004-11-18 16:52 ` [Comm] " Michael Isachenkov
2004-11-18 17:43 ` [Comm] " Andrey Rahmatullin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041118154458.GT31740@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git