ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] пример использования current sisyphus + его зеркало  (apt_preferences)
@ 2009-06-24  8:48 Afanasov Dmitry
  2009-06-24 11:03 ` Ivan Fedorov
  0 siblings, 1 reply; 3+ messages in thread
From: Afanasov Dmitry @ 2009-06-24  8:48 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 2242 bytes --]

было мне интересно, как сделать так, чтобы:
1. по умолчанию ставить пакеты из локального зеркала
2. по желанию ставить из свежайшего сизифа.

вместо локального зеркала подойдут и бранчи.

решение: man 5 apt_preferences
решению бог знает сколько лет, да вот ни разу в рассылках не видел.

в итоге в sources.list имею:
rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus i586 classic
rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic

rpm ftp://localhost/ALTLinux/Sisyphus i586 classic 
rpm ftp://localhost/ALTLinux/Sisyphus noarch classic 

timestamp зеркала: 1245391201 (2009-06-19 число)
timestamp сизифа: сегодня (2009-06-23)

обвновился git.

в /etc/apt/preferences:
Package: *
Pin: release l=local
Pin-Priority: 900

результат:
* apt-get dist-upgrade без preferences выдает обвноление libpng, git и ещё
что-то.
* apt-get dist-upgrade с preferences ничего не выдает
* apt-get -t 'ALT Linux sisyphus' dist-upgrade выдает обновление из
  ftp.a.o

в итоге для обвноления до сизифа надо указать его вручную.

замечания:
1. release l=local
   l - это Label. по умолчанию в сизифном release файле,получаемом при
   зеркалировании, там sisyphus. пришлось делать genbasedir --label=local
2. -t 'ALT Linux sisyphus'
   -t по умолчанию бурет значение Archive из релиз файла. можно указать
   l=sisyphus. еслич естно, хотелось бы указывать -t sisyphus, но для
   этого надо изменить передаваемое значение для genbasedir на ftp.a.o.

3. Pin-Priority: 900
   подрбнее об этом в мане, но есть интересный момент. я уже обновился "до
   сизифа". теперь меняем 900 на 1001, и получаем:

# apt-get dist-upgrade 
...
The following packages will be DOWNGRADED
  GConf MySQL-client MySQL-server alt-gpgkeys alternatives ca-certificates cdrecord-classic dnsmasq emacs-git fglrx-tools fglrx_glx git
  ...
  udev-initramfs udev-rule-generator udev-rules xcftools xorg-util-macros zsh
0 upgraded, 0 newly installed, 70 downgraded, 0 removed and 0 not upgraded.

это в тему про Hold: вся репа, что имеет Pin > 1000 можно сказать стоит на
холде. а увеличение Pin'а позволяет откатиться в случае неудачного
обвноления :)
-- 
С уважением
Афанасов Дмитрий

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [sisyphus] пример использования current sisyphus + его зеркало (apt_preferences)
  2009-06-24  8:48 [sisyphus] пример использования current sisyphus + его зеркало (apt_preferences) Afanasov Dmitry
@ 2009-06-24 11:03 ` Ivan Fedorov
  2009-06-24 11:23   ` Dmitriy Kruglikov
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Fedorov @ 2009-06-24 11:03 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Afanasov Dmitry <ender-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> writes:

> было мне интересно, как сделать так, чтобы:
> 1. по умолчанию ставить пакеты из локального зеркала
> 2. по желанию ставить из свежайшего сизифа.
>
> вместо локального зеркала подойдут и бранчи.
>
> решение: man 5 apt_preferences
> решению бог знает сколько лет, да вот ни разу в рассылках не видел.

А теперь всё тоже самое, помедленнее и на wiki! :)

PS: Я серьёзно...

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

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

* Re: [sisyphus] пример использования current sisyphus + его зеркало (apt_preferences)
  2009-06-24 11:03 ` Ivan Fedorov
@ 2009-06-24 11:23   ` Dmitriy Kruglikov
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitriy Kruglikov @ 2009-06-24 11:23 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

24 июня 2009 г. 14:03 пользователь Ivan Fedorov  написал:
>
> А теперь всё тоже самое, помедленнее и на wiki! :)
>
А вот это - в фортунки...
И я то же не шучу...

--
Как правильно задавать вопросы:
http://maddog.sitengine.ru/smart-question-ru.html

Помогает:
http://search.altlinux.org

Best regards,
Dmitriy Kruglikov
Dmitriy.Kruglikov_at_gmail_dot_com
XMPP: Dmitriy.Kruglikov_at_gmail_dot_com

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

end of thread, other threads:[~2009-06-24 11:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24  8:48 [sisyphus] пример использования current sisyphus + его зеркало (apt_preferences) Afanasov Dmitry
2009-06-24 11:03 ` Ivan Fedorov
2009-06-24 11:23   ` Dmitriy Kruglikov

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