* [sisyphus] Удаление определённой сборки NEVR
@ 2019-06-03 19:34 Vladimir D. Seleznev
2019-06-04 10:54 ` Alexey Tourbin
0 siblings, 1 reply; 2+ 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] 2+ messages in thread
* Re: [sisyphus] Удаление определённой сборки NEVR
2019-06-03 19:34 [sisyphus] Удаление определённой сборки NEVR Vladimir D. Seleznev
@ 2019-06-04 10:54 ` Alexey Tourbin
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Tourbin @ 2019-06-04 10:54 UTC (permalink / raw)
To: ALT Linux Sisyphus 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] 2+ messages in thread
end of thread, other threads:[~2019-06-04 10:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-03 19:34 [sisyphus] Удаление определённой сборки NEVR Vladimir D. Seleznev
2019-06-04 10:54 ` Alexey Tourbin
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git