ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] средства создания chroot'ов в Сизифе
Date: Wed, 10 Oct 2007 15:30:40 +0400
Message-ID: <20071010113040.GA9731@basalt.office.altlinux.org> (raw)
In-Reply-To: <200710101352.12064.peet@altlinux.ru>

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

On Wed, Oct 10, 2007 at 01:52:11PM +0400, Peter V. Saveliev wrote:
> On Wednesday 10 October 2007, Alex Gorbachenko wrote:
> > On Wed, 10 Oct 2007 13:01:01 +0400
> >
> > Peter wrote:
> > >Ответы вида "man hsh-initroot" не принимаются, т.к. не относятся к
> > >делу (исключение --
> > > если только будет достаточное обоснование)
> >
> > почему ?
> >
> 
> мне категорически не нужен rpm со всеми зависимостями rpmbuild.
> hasher не удовлетворяет условию, что в чруте не должно быть пакетов, не 
> входящих в список достаточных для удовлетворения зависимостей необходимых 
> пакетов.

псевдокод решения этой задачи:

$ mkaptbox
$ needed=$(path/to/aptbox/apt-get -y --print-uris install список-нужных-пакетов |sed регвыражение |sort -u)
$ hsh --ini --pkg-build=,
$ hsh-install список-нужных-пакетов
$ installed=$(hsh-run -- rpmquery -a --qf '%{name}\n' |sort -u)
$ hsh-run --r -- rpmi -e $(comm -23 <(echo "$installed") <(echo "$needed"))

регвыражение можно позаимствовать из
/usr/bin/hsh-sh-functions:print_uris()


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2007-10-10 11:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10  9:01 Peter V. Saveliev
2007-10-10  9:09 ` Alex Gorbachenko
2007-10-10  9:52   ` Peter V. Saveliev
2007-10-10 10:09     ` Andrew Borodin
2007-10-10 10:14       ` Andrew Borodin
2007-10-10 11:30     ` Dmitry V. Levin [this message]
2007-10-29  9:59       ` Alexey Tourbin
2007-10-29 10:31         ` Dmitry V. Levin
2007-10-29 10:52           ` Alexey Tourbin
2007-10-10  9:49 ` Michael Shigorin
2007-10-10 10:19   ` Peter V. Saveliev

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=20071010113040.GA9731@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git