ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: dm <dead-mustdie@nm.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Переименование файлов после apt
Date: Sat, 17 Apr 2004 19:34:27 +0400
Message-ID: <200404171934.27689.dead-mustdie@nm.ru> (raw)
In-Reply-To: <000f01c4248c$6bdbba00$7e4396d5@1>

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

Здравствуйте, Дворников Михаил!

Суббота 17 Апрель 2004 18:52, Вы писали:

> Apt скачивает rpm-файлы в /var/cache/apt/archives/.
> Но названия их отличаются:
>  оригинал -> perl-Net-Daemon-0.37-alt2.noarch.rpm
>  apt -> perl-Net-Daemon_0.37-alt2_noarch.rpm
> После копирования файлов в свой репозитарий и genbasedir,
> apt не замечает разницы в именах.
> Желательно иметь одинаковые имена файлов (для rsync например).
> Как переименовать первый знак "_"в "-", второй знак "_" в "." ?

В аттаче лежит простейший perl-скрипт, которому на вход нужно подать имя 
в том формате, который в кэше, а на выходе получится исходное имя. 
Работоспособность не гарантирую, писалось больше года назад на коленке, 
для того, чтобы один раз переименовать все rpmы в кэше. Тогда это 
получилось нормально. 

> Может пойти по другому пути ?

Может. Я вообще не понимаю, зачем нужны эти самые одинаковые имена? Если 
Вы тянете на обновления весь Сизиф, то проще сделать у себя собственный 
полный репозитарий и обновлять его через rsync или как-нибудь ещё. Если 
изредка ставите отдельные пакеты, то чем мешает различие имён в кэше? 

Лично я переименовывал пакеты тогда, когда решил перейти от второго 
варианта к первому (чтобы не вытягивать повторно то, что уже лежало в 
кэше). Но заниматься этим постоянно, ИМХО, бред.

-- 
-------------------------------------
dm <deadmustdie at pisem point net>

[-- Attachment #2: stdrpmname --]
[-- Type: application/x-perl, Size: 208 bytes --]

      parent reply	other threads:[~2004-04-17 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-17 14:52 Дворников Михаил
2004-04-17 15:33 ` Александр Новосёлов
2004-04-22  7:35   ` Alexey Morozov
2004-04-17 15:34 ` dm [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=200404171934.27689.dead-mustdie@nm.ru \
    --to=dead-mustdie@nm.ru \
    --cc=community@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 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