From: "Vladimir D. Seleznev" <vseleznv@altlinux.org> To: devel@lists.altlinux.org, sisyphus@lists.altlinux.org Subject: [devel] Удаление определённой сборки NEVR Date: Mon, 3 Jun 2019 22:34:40 +0300 Message-ID: <20190603193440.GA3082@portlab.ipa.basealt.ru> (raw) 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 # -- С уважением, Владимир Селезнев
next reply other threads:[~2019-06-03 19:34 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-03 19:34 Vladimir D. Seleznev [this message] 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
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=20190603193440.GA3082@portlab.ipa.basealt.ru \ --to=vseleznv@altlinux.org \ --cc=devel@lists.altlinux.org \ --cc=sisyphus@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