ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Удаление определённой сборки NEVR
Date: Mon, 3 Jun 2019 23:35:59 +0300
Message-ID: <20190603203559.GH27835@altlinux.org> (raw)
In-Reply-To: <20190603193440.GA3082@portlab.ipa.basealt.ru>

On 2019-06-03 22:34:40 +0300, Vladimir D. Seleznev wrote:

 > rpm, начиная с версий 4.13.0.1-alt7 в Сизифе и 4.0.4-alt101.M80P.5.3
 > в p8, научился понимать DistTag и BuildTime в формате запроса (query)
 > пакета. Что даёт возможность удалить определённую сборку NEVR пакета,
 > что может быть полезно при неуспешном dist-upgrade. DistTag
 > указывается через двоеточие после релиза, BuildTime — после собачки
 > ("@").
 > Пример: в системе параллельно с тем, что из репозитория, был
 > установлен локально собранный rpm:
 > # rpm -q rpm
 > rpm-4.13.0.1-alt7.x86_64
 > rpm-4.13.0.1-alt7.x86_64

Совершенно бесполезный вывод... Любой уважающий себя админ в подобном
случае пожелает (1) сразу увидеть отличия между этими пакетами, и (2)
иметь возможность скопипастить в командную строку rpm -e готовое имя
пакета (однозначно идентифицирующее оный).

 > При попытке удалить его rpm жалуется, что указанный запрос
 > соответствует нескольким пакетам:
 > # rpm -e rpm
 > error: "rpm" specifies multiple packages:
 > rpm-4.13.0.1-alt7@1559588819.x86_64
 > rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
 > И перечислены сами пакеты: тот, что из репозитория указан с
 > DistTag'ом; локально собранный без DistTag'а, поэтому отображается
 > с BuildTime'ом.

А сразу в таком виде выводить - православным буддистам аллах запрещает?

 > При вводе полного запроса с DistTag'ом или BuildTime'ом, будет
 > удалён определённый пакет:
 > # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64

Ну вот и в выводе rpm -q надо их в таком виде рисовать...


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net


  reply	other threads:[~2019-06-03 20:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03 19:34 Vladimir D. Seleznev
2019-06-03 20:35 ` Alexey V. Vissarionov [this message]
2019-06-04  7:02   ` Anton Farygin
2019-06-04  7:23     ` Alexey V. Vissarionov
2019-06-04  7:28     ` Ivan Zakharyaschev
2019-06-04 10:23       ` Sergey Afonin
2019-06-04  7:38     ` Igor Zubkov
2019-06-04 11:40       ` Vladimir D. Seleznev
2019-06-04 12:03         ` Andrey Savchenko
2019-06-04 14:15         ` Alexey V. Vissarionov
2019-06-04 10:57 ` [devel] [sisyphus] " Alexey Tourbin

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=20190603203559.GH27835@altlinux.org \
    --to=gremlin@altlinux.org \
    --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