ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] rpm -Uhv fw-0.4.4-4cint.noarch.rpm
@ 2001-08-28 15:13 Victor V. Rogozhin
  2001-08-28 19:21 ` Sergey Vlasov
  0 siblings, 1 reply; 3+ messages in thread
From: Victor V. Rogozhin @ 2001-08-28 15:13 UTC (permalink / raw)
  To: mandrake-russian

Плиз объясните причину следования операций installed и removed.

И самое главное можно-ли и как изминить их порядок следования 
какой-либо директивой в fw.spec

----/var/log/messages----
Авг 28 11:35:26 vic rpm: fw-0.4.4-4cint installed
Авг 28 11:35:31 vic rpm: fw-0.4.4-3cint removed
----END----



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

* Re: [mdk-re] rpm -Uhv fw-0.4.4-4cint.noarch.rpm
  2001-08-28 15:13 [mdk-re] rpm -Uhv fw-0.4.4-4cint.noarch.rpm Victor V. Rogozhin
@ 2001-08-28 19:21 ` Sergey Vlasov
  2001-08-29 12:34   ` Victor V. Rogozhin
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Vlasov @ 2001-08-28 19:21 UTC (permalink / raw)
  To: mandrake-russian

On Tue, 28 Aug 2001 12:06:20 +0400
"Victor V. Rogozhin" <viro@mail.ru> wrote:

> Плиз объясните причину следования операций installed и removed.
> 
> И самое главное можно-ли и как изминить их порядок следования 
> какой-либо директивой в fw.spec
> 
> ----/var/log/messages----
> Авг 28 11:35:26 vic rpm: fw-0.4.4-4cint installed
> Авг 28 11:35:31 vic rpm: fw-0.4.4-3cint removed
> ----END----

Все правильно, при обновлении пакета сначала ставится новая версия,
потом убираются остатки от старой (те файлы, которые исчезли в новой
версии).  Поэтому в скриптах %preun и %postun необходимо проверять
аргументы, чтобы отличить полное удаление пакета от удаления старой
версии, только что замененной на новую.  Пример можно найти
практически в любом src.rpm, где есть документация в формате info.  И,
разумеется, стоит почитать документацию к rpm (http://www.rpm.org).



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

* Re: [mdk-re] rpm -Uhv fw-0.4.4-4cint.noarch.rpm
  2001-08-28 19:21 ` Sergey Vlasov
@ 2001-08-29 12:34   ` Victor V. Rogozhin
  0 siblings, 0 replies; 3+ messages in thread
From: Victor V. Rogozhin @ 2001-08-29 12:34 UTC (permalink / raw)
  To: mandrake-russian

> "Victor V. Rogozhin" <viro@mail.ru> wrote:
> > Плиз объясните причину следования операций installed и
> > removed.
>
> Все правильно, при обновлении пакета сначала ставится новая
> версия, потом убираются остатки от старой (те файлы, которые
> исчезли в новой версии).  Поэтому в скриптах %preun и %postun
> необходимо проверять аргументы, чтобы отличить полное удаление
> пакета от удаления старой версии, только что замененной на
> новую.  Пример можно найти практически в любом src.rpm, где
> есть документация в формате info.  И, разумеется, стоит
> почитать документацию к rpm (http://www.rpm.org).

Спасобо! Уже нашел что-то типа "if [ $1 = 0 ]; then"

Еще раз спасибо!



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

end of thread, other threads:[~2001-08-29 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-28 15:13 [mdk-re] rpm -Uhv fw-0.4.4-4cint.noarch.rpm Victor V. Rogozhin
2001-08-28 19:21 ` Sergey Vlasov
2001-08-29 12:34   ` Victor V. Rogozhin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git