ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitriy M. Maslennikov" <maslennikovdm@gmail.com>
To: ashen@nsrz.ru,
	 ALT Linux Community general discussions
	<community@lists.altlinux.org>
Subject: Re: [Comm] Синхронизация и экономия трафика
Date: Tue, 7 Apr 2009 12:35:26 +0400
Message-ID: <47c0071b0904070135h588f0f4ao7739d907d09a5283@mail.gmail.com> (raw)
In-Reply-To: <49DB0244.1000504@nsrz.ru>

7 апреля 2009 г. 11:35 пользователь AShen <ashen@nsrz.ru> написал:
> #докачиваем отсутствующие в кэше файлы установленных пакетов
> cat /tmp/dwrpm | while read PKG; do
> apt-get reinstall -d -y $PKG
> done
>
> #EOF
>
> Да скрипт отрабатывает достаточно долго. Из-за вызова apt'а для каждого
> пакета отдельно. Если нашему apt'у передать на вход зараз весь список
> пакетов, то ему сносит голову: слишком длинная строка входных параметров
> (примерно так, в вольном изложеии). Вот по сему надёжней передавать apt'у
> отдельно имя каждого пакета.
Откройте для себя xargs

-- 
Dmitriy M. Maslennikov
rlz@etersoft.ru
rlz@altlinux.org
maslennikovdm@gmail.com
master@armory.ru

  reply	other threads:[~2009-04-07  8:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07  6:54 alisher
2009-04-07  7:35 ` AShen
2009-04-07  8:35   ` Dmitriy M. Maslennikov [this message]
2009-04-07  9:57   ` Michael Shigorin
2009-04-07 13:07     ` AShen
2009-04-07 13:14       ` Michael Shigorin
2009-04-07 14:27       ` Ivan Fedorov
2009-04-07 10:26   ` alisher
2009-04-07 10:42     ` Dmitriy Kruglikov
2009-04-07 11:23       ` alisher
2009-04-07 11:49         ` Dmitriy Kruglikov
2009-04-07 12:48     ` AShen
2009-04-08 14:10       ` Timur Batyrshin
2009-04-08 14:14         ` AShen

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=47c0071b0904070135h588f0f4ao7739d907d09a5283@mail.gmail.com \
    --to=maslennikovdm@gmail.com \
    --cc=ashen@nsrz.ru \
    --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