ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Nick S. Grechukh" <ngrechukh@ua.fm>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [JT] Re: [sisyphus] Как лучше обновится?
Date: Thu, 27 Jan 2005 13:29:45 +0200
Message-ID: <200501271331.32602.ngrechukh@ua.fm> (raw)
In-Reply-To: <20050127072611.GB1986@ldc.net>

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

On Thursday 27 January 2005 09:26, Dmytro O. Redchuk wrote:
> On Wed, Jan 26, 2005 at 08:22:24PM +0300, Alexei V. Mezin wrote:
> > размера, пакуем, несем на работу. На работе распаковываем и по FTP
> > копируем в этот каталог все пакеты из реального Сизифа пропуская уже
> > имеющиеся. В получившемся каталоге убираем все файлы нулевого размера.
> >
> > В итоге имеем только те пакеты, которые обновились. Несем их домой,
> > обновляем там репозитарий.
>
> Когда-то (вытаскивал по ftp RHL4.1, кажется) сделал макрос (в .netrc),
> который делал список файлов для вытаскивания и вытаскивал их (diff
> имеющегося ls и ls на сервере). Всё из-за того, что приходилось докачивать
> ночами (diff выдавал недокачанные и отсутствующие).
>
> Другими словами, тут тоже можно (но уже видимо, другими средствами), если
> задача "неодноразовая".

дома:
find /mnt/win_d/sisyphus-mirror/ -name \*.rpm -printf "%f\n" > home-list1

на работе:

dday=050126
opath=/pub/distributions/ALTLinux/Sisyphus/files/i586/RPMS
lpath=/var/ftp/pub/mirror/i586/RPMS.050126
mkdirhier $lpath
lftp ftp.altlinux.ru << EOF
 cd $opath
 ls > 050126-full
EOF
cat 050126-full | awk '{print $9}' | sort > 050126-names
cat home-list1 | sort > home-list
diff -Naur home-list 050126-names | grep ^+ | grep -v ^+++ | cut -c 2- > 050126-diff
cat 050126-diff | while read f; do
 grep " $f"$ 050126-full
done | awk '{N=N+$5} END {print N}'
cat 050126-diff | awk 'BEGIN {print "open ftp.altlinux.ru; cd $opath; lcd $lpath"} {print "get -c "$1}' | lftp

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

  reply	other threads:[~2005-01-27 11:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26 17:05 Gennadiy Redko
2005-01-26 17:22 ` Alexei V. Mezin
2005-01-27  7:26   ` [JT] " Dmytro O. Redchuk
2005-01-27 11:29     ` Nick S. Grechukh [this message]
2005-01-26 19:07 ` [sisyphus] " Michael Shigorin
2005-01-27  4:45 ` [sisyphus] " Mike Lykov
2005-01-27  8:35   ` [sisyphus] " Michael Shigorin
2005-01-27  9:30     ` Mike Lykov
2005-01-27 11:34     ` Nick S. Grechukh
2005-01-27 13:28       ` Igor Zubkov
2005-01-27 16:03         ` Andrei Bulava
2005-01-27 16:30           ` q: список городов, где мы есть? (was: [sisyphus] Как лучше обновится?) Michael Shigorin
2005-01-27 16:46     ` [sisyphus] Re: Как лучше обновится? Gennadiy Redko
2005-01-27 16:50       ` Michael Shigorin
2005-01-27 17:20         ` Gennadiy Redko
2005-01-27 17:26           ` Michael Shigorin
2005-01-27 17:42           ` Ivan Fedorov
2005-01-27  7:02 ` [sisyphus] " Artem K. Jouravsky

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=200501271331.32602.ngrechukh@ua.fm \
    --to=ngrechukh@ua.fm \
    --cc=sisyphus@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 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