* [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
* Re: [devel] Удаление определённой сборки NEVR
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 10:57 ` [devel] [sisyphus] " Alexey Tourbin
1 sibling, 1 reply; 11+ messages in thread
From: Alexey V. Vissarionov @ 2019-06-03 20:35 UTC (permalink / raw)
To: ALT Linux Team development discussions
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
2019-06-03 20:35 ` Alexey V. Vissarionov
@ 2019-06-04 7:02 ` Anton Farygin
2019-06-04 7:23 ` Alexey V. Vissarionov
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Anton Farygin @ 2019-06-04 7:02 UTC (permalink / raw)
To: ALT Linux Team development discussions, Alexey V. Vissarionov
03.06.2019 23:35, Alexey V. Vissarionov пишет:
> 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 надо их в таком виде рисовать...
>
>
Да, согласен. Но этим самым мы можем кому-то что-то поломать.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
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 7:38 ` Igor Zubkov
2 siblings, 0 replies; 11+ messages in thread
From: Alexey V. Vissarionov @ 2019-06-04 7:23 UTC (permalink / raw)
To: ALT Linux Team development discussions
On 2019-06-04 10:02:34 +0300, Anton Farygin wrote:
>>> Пример: в системе параллельно с тем, что из репозитория, был
>>> установлен локально собранный 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 -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'ом или BuildTime'ом,
>>> будет удалён определённый пакет:
>>> # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
>> Ну вот и в выводе rpm -q надо их в таком виде рисовать...
> Да, согласен. Но этим самым мы можем кому-то что-то поломать.
Кому и что? Даже для совсем корявых скриптов эти хвосты будут
всего лишь частью %release
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
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
2 siblings, 1 reply; 11+ messages in thread
From: Ivan Zakharyaschev @ 2019-06-04 7:28 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 3082 bytes --]
On Tue, 4 Jun 2019, Anton Farygin wrote:
> 03.06.2019 23:35, Alexey V. Vissarionov пишет:
> > 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 надо их в таком виде рисовать...
> >
> >
> Да, согласен. Но этим самым мы можем кому-то что-то поломать.
Мне кажется, это маловероятно (или по крайней мере -- это должно быть уже
хорошо известно), потому что не так давно этот хвост уже наращивался:
при переходе с rpm-4.0.4 на rpm-4.13 появился хвост .ARCH в этом выводе по
умолчанию.
--
Best regards,
Ivan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
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 7:38 ` Igor Zubkov
2019-06-04 11:40 ` Vladimir D. Seleznev
2 siblings, 1 reply; 11+ messages in thread
From: Igor Zubkov @ 2019-06-04 7:38 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Tue, Jun 4, 2019 at 10:02 AM Anton Farygin wrote:
> 03.06.2019 23:35, Alexey V. Vissarionov пишет:
> > On 2019-06-03 22:34:40 +0300, Vladimir D. Seleznev wrote:
> > > При вводе полного запроса с DistTag'ом или BuildTime'ом, будет
> > > удалён определённый пакет:
> > > # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
> >
> > Ну вот и в выводе rpm -q надо их в таком виде рисовать...
> >
> Да, согласен. Но этим самым мы можем кому-то что-то поломать.
Аргумент о том что, что-то может сломаться хороший. Только я считаю
что уже поздно. Всю совместимость уже разломали этими disttag'ами.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
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
0 siblings, 2 replies; 11+ messages in thread
From: Vladimir D. Seleznev @ 2019-06-04 11:40 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Tue, Jun 04, 2019 at 10:38:28AM +0300, Igor Zubkov wrote:
> On Tue, Jun 4, 2019 at 10:02 AM Anton Farygin wrote:
> > 03.06.2019 23:35, Alexey V. Vissarionov пишет:
> > > On 2019-06-03 22:34:40 +0300, Vladimir D. Seleznev wrote:
> > > > При вводе полного запроса с DistTag'ом или BuildTime'ом, будет
> > > > удалён определённый пакет:
> > > > # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
> > >
> > > Ну вот и в выводе rpm -q надо их в таком виде рисовать...
> > >
> > Да, согласен. Но этим самым мы можем кому-то что-то поломать.
>
> Аргумент о том что, что-то может сломаться хороший. Только я считаю
> что уже поздно. Всю совместимость уже разломали этими disttag'ами.
О какой совместимости речь? Возможно, сломано старое привычное
поведение, при котором NEVR однозначно определял бинарный пакет. Теперь
это не так. Совместимость же как с нашими старыми rpm-пакетами, так и с
форматом rpm в целом, сохранена.
--
С уважением,
Владимир Селезнев
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
2019-06-04 11:40 ` Vladimir D. Seleznev
@ 2019-06-04 12:03 ` Andrey Savchenko
2019-06-04 14:15 ` Alexey V. Vissarionov
1 sibling, 0 replies; 11+ messages in thread
From: Andrey Savchenko @ 2019-06-04 12:03 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]
On Tue, 4 Jun 2019 14:40:11 +0300 Vladimir D. Seleznev wrote:
> On Tue, Jun 04, 2019 at 10:38:28AM +0300, Igor Zubkov wrote:
> > On Tue, Jun 4, 2019 at 10:02 AM Anton Farygin wrote:
> > > 03.06.2019 23:35, Alexey V. Vissarionov пишет:
> > > > On 2019-06-03 22:34:40 +0300, Vladimir D. Seleznev wrote:
> > > > > При вводе полного запроса с DistTag'ом или BuildTime'ом, будет
> > > > > удалён определённый пакет:
> > > > > # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
> > > >
> > > > Ну вот и в выводе rpm -q надо их в таком виде рисовать...
> > > >
> > > Да, согласен. Но этим самым мы можем кому-то что-то поломать.
> >
> > Аргумент о том что, что-то может сломаться хороший. Только я считаю
> > что уже поздно. Всю совместимость уже разломали этими disttag'ами.
>
> О какой совместимости речь? Возможно, сломано старое привычное
> поведение, при котором NEVR однозначно определял бинарный пакет. Теперь
> это не так. Совместимость же как с нашими старыми rpm-пакетами, так и с
> форматом rpm в целом, сохранена.
Речь про утилиты, парсящие выхлоп rpm.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] Удаление определённой сборки NEVR
2019-06-04 11:40 ` Vladimir D. Seleznev
2019-06-04 12:03 ` Andrey Savchenko
@ 2019-06-04 14:15 ` Alexey V. Vissarionov
1 sibling, 0 replies; 11+ messages in thread
From: Alexey V. Vissarionov @ 2019-06-04 14:15 UTC (permalink / raw)
To: ALT Linux Team development discussions
On 2019-06-04 14:40:11 +0300, Vladimir D. Seleznev wrote:
>>>>> При вводе полного запроса с DistTag'ом или BuildTime'ом,
>>>>> будет удалён определённый пакет:
>>>>> # rpm -e rpm-4.13.0.1-alt7:sisyphus+231081.300.6.3.x86_64
>>>> Ну вот и в выводе rpm -q надо их в таком виде рисовать...
>>> Да, согласен. Но этим самым мы можем кому-то что-то поломать.
>> Аргумент о том что, что-то может сломаться хороший. Только
>> я считаю что уже поздно. Всю совместимость уже разломали этими
>> disttag'ами.
> О какой совместимости речь? Возможно, сломано старое привычное
> поведение, при котором NEVR однозначно определял бинарный пакет.
В подавляющем большинстве случаев это именно так и должно быть.
То, что нам приходится пересобирать пакеты "патамушта надо" - не
норма, а суровая реальность.
> Теперь это не так. Совместимость же как с нашими старыми
> rpm-пакетами, так и с форматом rpm в целом, сохранена.
Кстати, кто из них главнее?
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] [sisyphus] Удаление определённой сборки NEVR
2019-06-03 19:34 [devel] Удаление определённой сборки NEVR Vladimir D. Seleznev
2019-06-03 20:35 ` Alexey V. Vissarionov
@ 2019-06-04 10:57 ` Alexey Tourbin
1 sibling, 0 replies; 11+ messages in thread
From: Alexey Tourbin @ 2019-06-04 10:57 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Mon, Jun 3, 2019 at 10:34 PM Vladimir D. Seleznev
<vseleznv@altlinux.org> wrote:
> rpm, начиная с версий 4.13.0.1-alt7 в Сизифе и 4.0.4-alt101.M80P.5.3 в
> p8, научился понимать DistTag и BuildTime в формате запроса (query)
> пакета. Что даёт возможность удалить определённую сборку NEVR пакета,
> что может быть полезно при неуспешном dist-upgrade. DistTag указывается
> через двоеточие после релиза, BuildTime — после собачки ("@").
В базе /var/lib/rpm, помнится, каждый установленный пакет имеет
целочисленный идентификатор-ключ (по которому вынимается header из
базы). К чему тогда нужна эта игра в угадайку. Удалить тот который
надо пакет шанс дается только один раз, и надо не ошибиться в
рецептах. :)
^ 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