ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Удаление определённой сборки NEVR
@ 2019-06-03 19:34 Vladimir D. Seleznev
  2019-06-03 20:35 ` Alexey V. Vissarionov
  2019-06-04 10:57 ` [devel] [sisyphus] " Alexey Tourbin
  0 siblings, 2 replies; 11+ messages in thread
From: Vladimir D. Seleznev @ 2019-06-03 19:34 UTC (permalink / raw)
  To: devel, sisyphus

Hello!

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

При попытке удалить его 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
<13>Jun  3 19:07:44 rpm: rpm-4.13.0.1-alt7 sisyphus+231081.300.6.3 1559553299 removed
#

-- 
   С уважением,
   Владимир Селезнев


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-06-04 14:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-03 19:34 [devel] Удаление определённой сборки NEVR Vladimir D. Seleznev
2019-06-03 20:35 ` Alexey V. Vissarionov
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

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