ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: devel@lists.altlinux.org
Subject: [devel] I: altlinux-repolist-utils
Date: Tue, 24 Apr 2018 16:03:01 +0300
Message-ID: <20180424130300.GA27538@dad.imath.kiev.ua> (raw)

Уважаемые господа,

хочу представить вашему вниманию еще один набор простых утилит
для удобства работы майнтайнера.

1) библиотечка для поиска локального зеркала ALT:

 $ altlinux-find-local-mirror 
/var/ftp/pub/Linux/ALT/Sisyphus

$ altlinux-find-local-mirror -b p8
/var/ftp/pub/Linux/ALT/p8/branch

полезная вещь для установки значений по умолчанию.
Если где-то зеркало не находит, сообщайте, буду добавлять пути.

2) altlinux-repolist-utils

быстрая конверсия имен в файлы в репозиториях ALT,
используя файлы files/list/src.list,files/list/bin.list
по умолчанию используется локальное зеркало ALT (см. выше).

$ altlinux-repolist-src-names-to-src-files 0ad gear
/var/ftp/pub/Linux/ALT/Sisyphus/files/SRPMS/0ad-0.0.22-alt1.src.rpm
/var/ftp/pub/Linux/ALT/Sisyphus/files/SRPMS/gear-2.2.0-alt1.src.rpm

$ altlinux-repolist-src-names-to-src-files --branch p8 0ad
/var/ftp/pub/Linux/ALT/p8/branch/files/SRPMS/0ad-0.0.20-alt1.src.rpm

$ altlinux-repolist-src-names-to-bin-files 0ad 
/var/ftp/pub/Linux/ALT/Sisyphus/files/i586/RPMS/0ad-0.0.22-alt1.i586.rpm
/var/ftp/pub/Linux/ALT/Sisyphus/files/x86_64/RPMS/0ad-0.0.22-alt1.x86_64.rpm
/var/ftp/pub/Linux/ALT/Sisyphus/files/i586/RPMS/0ad-debuginfo-0.0.22-alt1.i586.rpm
/var/ftp/pub/Linux/ALT/Sisyphus/files/x86_64/RPMS/0ad-debuginfo-0.0.22-alt1.x86_64.rpm

$ altlinux-repolist-src-names-to-bin-files --arch noarch,x86_64 0ad
/var/ftp/pub/Linux/ALT/Sisyphus/files/x86_64/RPMS/0ad-0.0.22-alt1.x86_64.rpm
/var/ftp/pub/Linux/ALT/Sisyphus/files/x86_64/RPMS/0ad-debuginfo-0.0.22-alt1.x86_64.rpm

имена можно брать из файла:
altlinux-repolist-src-names-to-src-files --infile names.list

Понадобилось мне скопировать большой набор noarch java пакетов
из Сизифа в e2k, но girar copy из Сизифа в e2k не работает.
Поэтому надо было явно указать все .src.rpm и noarch.rpm.

Чтобы список не устарел, его надо генерировать из имен в последний момент.
Вот я и написал altlinux-repolist-utils и выложил в сизиф,
так как в e2k придется копировать еще не раз.

-- 

I V


             reply	other threads:[~2018-04-24 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-24 13:03 Igor Vlasenko [this message]
2018-04-24 14:20 ` Michael Shigorin

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=20180424130300.GA27538@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

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

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


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