From: Afanasov Dmitry <ender@altlinux.org> To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org> Subject: [sisyphus] пример использования current sisyphus + его зеркало (apt_preferences) Date: Wed, 24 Jun 2009 12:48:28 +0400 Message-ID: <20090624084828.GA21955@ender.fondinvestrk.ru> (raw) [-- 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 --]
next reply other threads:[~2009-06-24 8:48 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-06-24 8:48 Afanasov Dmitry [this message] 2009-06-24 11:03 ` Ivan Fedorov 2009-06-24 11:23 ` Dmitriy Kruglikov
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=20090624084828.GA21955@ender.fondinvestrk.ru \ --to=ender@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 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