aptly: система управления репозиториями пакетов, Андрей Смирнов
Upcoming SlideShare
Loading in...5
×
 

aptly: система управления репозиториями пакетов, Андрей Смирнов

on

  • 1,030 views

 

Statistics

Views

Total Views
1,030
Views on SlideShare
258
Embed Views
772

Actions

Likes
0
Downloads
2
Comments
0

4 Embeds 772

http://www.xakep.ru 727
http://xakep.ru 30
http://ritconf.ru 14
http://1337-soft.ru 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

aptly: система управления репозиториями пакетов, Андрей Смирнов aptly: система управления репозиториями пакетов, Андрей Смирнов Presentation Transcript

  • aptly: система управления репозиториями пакетов Андрей Смирнов
  • Содержание • Проблема повторяемости • aptly: основные идеи • Примеры использования • Немного о внутренностях • Планы
  • Содержание • Проблема повторяемости • aptly: основные идеи • Примеры использования • Немного о внутренностях • Планы
  • Повторяемость окружения
  • Повторяемость изменений окружения
  • Окружение - набор пакетов
  • Версии пакетов разные
  • Потребность Official repoOfficial repo BackportsBackports 3rd party repo 3rd party repo PPAPPA HomebrewHomebrew
  • Управление окружением BackportsBackports 3rd party repo 3rd party repo apt-getapt-get apt-sourcesapt-sources apt- preferences apt- preferences Official repoOfficial repo HomebrewHomebrew
  • Не та версия…
  • apt pinning поможет!
  • No…
  • Невоспроизводимость • Поставить пакет A • Добавить в apt-sources • Изменить pinning • Поставить пакет A - ?
  • Версии окружения testing development staging production
  • Цель Зафиксированный репозиторий пакетов (повторяемость) Контролируемые изменения версий (изменения)
  • aptlyaptly * не является заменой apt, dpkg!
  • Сущности – зеркало удаленного репозитория – неизменяемый срез набора пакетов – опубликованный репозиторий пакетов mirrormirror local repolocal repo snapshotsnapshot published repo published repo – локальный репозиторий пакетов
  • mirrormirror local repolocal repo snapshotsnapshot published repo published repo snapshotsnapshot published repo published repo snapshotsnapshot snapshotsnapshot published repo published repo update take snapshot take snapshot publish publish publish verify pull merge diff add
  • mirror $ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main … $ aptly mirror update wheezy-main … $ aptly snapshot create wheezy-7.4 from mirror wheezy-main … $ aptly publish snapshot wheezy-7.4 debian …
  • mirrormirror snapshotsnapshot published repo published repo update take snapshot publish
  • local repo $ aptly repo create –distribution=wheezy mysoftware … $ aptly repo add –remove-files mysoftware incoming/*.deb … $ aptly snapshot create my-20140414 from repo mysoftware … $ aptly publish snapshot my-20140414 local …
  • local repolocal repo published repo published repo snapshotsnapshot published repo published repo take snapshot publish publishadd
  • aptly snapshot pull $ aptly snapshot pull wheezy-7.4 percona-20140414 wheezy-w-percona 'percona-server-server (>=5.5)’ … [+] percona-server-server-5.5.35-rel33.0-611.wheezy_amd64 added [+] percona-server-server-5.5-5.5.35-rel33.0-611.wheezy_amd64 added [+] percona-server-client-5.5-5.5.35-rel33.0-611.wheezy_amd64 added [+] percona-server-common-5.5-5.5.35-rel33.0-611.wheezy_amd64 added [-] libmysqlclient18-5.5.31+dfsg-0+wheezy1_amd64 removed [+] libmysqlclient18-5.5.35-rel33.0-611.wheezy_amd64 added [+] percona-server-server-5.5.35-rel33.0-611.wheezy_i386 added [+] percona-server-server-5.5-5.5.35-rel33.0-611.wheezy_i386 added [+] percona-server-client-5.5-5.5.35-rel33.0-611.wheezy_i386 added [+] percona-server-common-5.5-5.5.35-rel33.0-611.wheezy_i386 added [-] libmysqlclient18-5.5.31+dfsg-0+wheezy1_i386 removed [+] libmysqlclient18-5.5.35-rel33.0-611.wheezy_i386 added
  • aptly snapshot pull $ aptly snapshot pull wheezy-7.4 backports-20140414 wheezy-w-rsyslog rsyslog … [-] rsyslog-5.8.11-3_amd64 removed [+] rsyslog-7.4.4-1~bpo70+1_amd64 added [-] libestr0-0.1.1-2_amd64 removed [+] libestr0-0.1.9-1~bpo70+1_amd64 added [+] init-system-helpers-1.11~bpo70.1_all added [-] rsyslog-5.8.11-3_i386 removed [+] rsyslog-7.4.4-1~bpo70+1_i386 added [-] libestr0-0.1.1-2_i386 removed [+] libestr0-0.1.9-1~bpo70+1_i386 added
  • mirrormirror snapshotsnapshot snapshotsnapshot published repo published repo snapshotsnapshot take snapshot publish pull mirrormirror take snapshot
  • aptly snapshot verify $ aptly snapshot verify wheezy-w-percona Missing dependencies (13): fenix [amd64] fenix-plugins-system [amd64] ia32-libs-i386 [amd64] ia32-libs-gtk-i386 [amd64] vidcontrol [amd64] kbdcontrol [amd64] libmysqlclient18 (= 5.5.31+dfsg-0+wheezy1) [amd64] scsh-0.6 (>= 0.6.6) [amd64] scsh-0.6 [amd64] mozart (>= 1.4.0) [amd64] libmysqlclient18 (= 5.5.31+dfsg-0+wheezy1) [i386] vidcontrol [i386] kbdcontrol [i386]
  • mirrormirror local repolocal repo snapshotsnapshot published repo published repo snapshotsnapshot published repo published repo snapshotsnapshot snapshotsnapshot published repo published repo update take snapshot take snapshot publish publish publish verify pull merge diff add
  • aptly graph
  • Повторяемость!
  • Повторяемость!
  • Повторяемость!
  • Повторяемость!
  • Внутренности • Пакеты «держат ссылки» на свои файлы • mirror, local repo, snapshot – список пакетов • Публикация – генерация мета- данных + создание симлинков
  • Ссылки http://www.aptly.info/ https://github.com/smira/aptly/ @smira me@smira.ru Skype: smirnov.andrey