ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] genbasedir & unique package list
Date: Fri, 4 Dec 2009 19:56:28 +0200
Message-ID: <200912041956.28727.ledest@gmail.com> (raw)
In-Reply-To: <f725ea640912040951w7f63ae3ah431a56baa0b0ecdc@mail.gmail.com>

On Friday, 04 December 2009 19:51:34 Rinat Bikov wrote:
> 4 декабря 2009 г. 9:32 пользователь Alexey Tourbin написал:
> > $ packages RPMS/ |sort -u -k1,1 |cut -f3
> >
> > Получится уникальный список пакетов с наибольшей версией.
> > Дальше можно использовать comm(1) и из полного списка rpm пакетов
> > вычесть список пакетов с наибольшей версией, получится список пакетов
> > на удаление.
>
> Мм... Можно проще сделать, без сравнения пакетов.
> Я вчера как раз написал было скрипт, который просматривает список
> пакетов (считая его уже отсортированным) и просто удаляет файл
> предыдущего пакета, если его имя совпадает с текущим.

Очень разумно: сортируем и *-alt10 удаляем, *-alt2 оставляем:)

-- 
Led

  reply	other threads:[~2009-12-04 17:56 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04  5:28 REAL
2009-12-04  5:32 ` Alexey Tourbin
2009-12-04  5:55   ` REAL
2009-12-04  5:54     ` Alexey Tourbin
2009-12-04  6:16       ` REAL
2009-12-04  6:06         ` Alexey Tourbin
2009-12-04  6:30     ` REAL
2009-12-04 17:51   ` Rinat Bikov
2009-12-04 17:56     ` Led [this message]
2009-12-04 18:07       ` Rinat Bikov
2009-12-04 18:13         ` Dmitry V. Levin
2009-12-05  0:44           ` Rinat Bikov
2009-12-05  6:54             ` Alexey Tourbin
2009-12-07  5:24               ` REAL
2009-12-07  6:37                 ` Alexey Tourbin
2009-12-07  7:34                   ` REAL
2009-12-08 11:55                     ` [devel] [JT] HOBbI (was: genbasedir & unique package list) Michael Shigorin
2009-12-07  6:50               ` [devel] genbasedir & unique package list REAL
2009-12-07  6:39                 ` Alexey Tourbin
2009-12-04 18:14         ` Led
2009-12-04 21:17           ` Kharitonov A. Dmitry
2009-12-04 16:24 ` Led
2009-12-07  4:32   ` REAL

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=200912041956.28727.ledest@gmail.com \
    --to=ledest@gmail.com \
    --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