• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,453
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
21
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Debian Software Repository
  • 2. Index
    • Introduction
    • Server
    • Index files
      • Packages.gz
      • Sources.gz
    • Client
  • 3. Introduction
    • Package Management System.
    • Easy to install, to remove and to configure software and its dependences.
    • Like a data base with Debian packages.
  • 4. Server
    • Export a directory structure with files that have information about Debian packages.
    • This structure could have a meaning (architecture, version, license).
    • Very huge repositories have the Debian packages in other repository, pool.
  • 5. Server
    • To split index files and Debian packages avoid to have replicated files in different directories, for example, documentation packages.
    • Index files and Debian packages have to be accessed by web.
  • 6. Server
    • Trivial Repositories , more complex , directories with meaning about distribution , architecture , license. A “ dists ” directory over the root of the repository.
    • Automatic repositories , quite simple, export directories over a root.
  • 7. Repositorio triviales
    • Debian way and other distributions derived of Debian like Ubuntu, quite complex.
    • Root -> dists -> distribution -> module -> architecture
      • http://es.archive.ubuntu.com/ubuntu/
      • “ dists” directory over the root is mandatory.
  • 8. Index Files
    • dpkg-scanpackages to scan packages.
    • dpkg-scansources to scan sources.
    • Override file: information to override from packages:
      • <package> <priority> <section> [<maintainerinfo>]
      • It is useful, for example, to add specific information of a distribution.
  • 9. Packages.gz Package: acpid Version: 1.0.4-5ubuntu9 Priority: optional Section: admin Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com> Depends: libc6 (>= 2.4), lsb-base (>= 1.3-9ubuntu3), module-init-tools (>= 3.1-rel-2ubuntu2), sysv-rc (>= 2.86.ds1-14.1ubuntu2) Architecture: amd64 Filename: binary/acpid_1.0.4-5ubuntu9_amd64.deb Size: 30662 MD5sum: 5bee8d5ca583cea969c1e7a933242154 Description: Utilities for using ...... installed-size: 188
  • 10. Sources.gz Format: 1.0 Package: evince Binary: evince, evince-dbg, evince-gtk, evince-gtk-dbg Architecture: any Version: 2.22.1.1-0ubuntu1 Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Sebastian Dröge <slomo@debian.org> Standards-Version: 3.7.2 Build-Depends: autotools-dev, cdbs, debhelper (>= 5), gnome-doc-utils (>= 0.3.2), gnome-icon-theme (>= 2.17.1), gnome-pkg-tools ...... Directory: sources Files: a392b3b775c0280e346b4a36f7bc5f70 1449 evince_2.22.1.1-0ubuntu1.dsc d263b1cb3968c65ccb3659bce9490dd5 2457208 evince_2.22.1.1.orig.tar.gz 5a20dedeb98a228ad8b4821f25dc17e8 57045 evince_2.22.1.1-0ubuntu1.diff.gz Original-Maintainer: Marc 'HE' Brockschmidt <he@debian.org>
  • 11. Política Repositorio Debian
    • Estructura de directorios
  • 12. Client
    • /etc/apt/sources.list
      • Trivial repositories :
        • deb http://raiz-repos dist module1 module2
        • deb http://es.archive.ubuntu.com/ubuntu/ hardy main restricted
          • http://es.archive.ubuntu.com/ubuntu/dists/hardy/main/binary-i386
          • http://es.archive.ubuntu.com/ubuntu/dists/hardy/restricted/binary-i386
        • deb-src search into sources directory instead of an architecture directory
  • 13. Cliente
    • /etc/apt/sources.list
      • Automatic repositories:
        • deb http://repository/path/ directory/
          • Always finished by “/”
          • http://repository/path/directory/Packages.gz
          • An entry for each directory with index files
  • 14. Client
    • /var/lib/apt/lists/
      • Directory with the index files of the scanned repositories.
  • 15. Exercise
    • To create a Debian repository with your own package.
    • Trivial repository.