ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] apt-rdepends-tree и apt-tree
Date: Fri, 21 Nov 2025 16:45:14 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.2511211638380.1643@imap.altlinux.org> (raw)
In-Reply-To: <88f29de5-6dc8-4c2d-a347-81d720f30fa2@yandex.ru>

[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]

Здравствуйте!

On Wed, 19 Nov 2025, Alexander Lubyagin wrote:

> Искал сейчас аналог aptitude dependency tree для терминала (не интерактивный).
> 
> Встретил пару реализаций - на Bash, и на Lua:
> 
>   https://gist.github.com/damphat/6214499
> 
>   https://gist.github.com/AshleighAdams/662da4fed7ed50c5eb93
> 
> Но... На Gists часто не указывают лицензий. Поэтому оттуда брать не стал.
> 
> Впрочем, есть аналог от Самсонова Антона на GitHub, где явно указана лицензия
> Unlicense:
> 
>   https://github.com/blanktonio/apt-tree
> 
> Мало ли, кому-то надо будет. В Сизифе, вроде бы, такой утилиты пока нет.

Конечно, почему бы и нет, если кому-то удобно и полезно.

> Мне это понадобилось, чтобы понять - какую из версий шелла тянет модуль
> Альтератора.
> Решил сделать без aptitude.
> 
> Может быть, есть более классические (элегантные) реализации?

Мне только известны команды apt-cache:

$ apt-cache -h |fgrep depends
   depends - Show raw dependency information for a package
   whatdepends - Show raw dependency information on a package

и rdepends (которая не указана в помощи; можно улучшить помощь).

Но они, по-моему, не особо позволяют учесть, что разные версии пакеты 
могут по=разному удовлетворять зависимости.

-- 
Best regards,
Ivan

      reply	other threads:[~2025-11-21 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19 19:46 Alexander Lubyagin
2025-11-21 13:45 ` Ivan Zakharyaschev [this message]

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=alpine.LFD.2.20.2511211638380.1643@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=community@lists.altlinux.org \
    /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