0
Debian Software Repository
Index <ul><li>Introduction </li></ul><ul><li>Server </li></ul><ul><li>Index files </li></ul><ul><ul><li>Packages.gz </li><...
Introduction <ul><li>Package Management System. </li></ul><ul><li>Easy to install, to remove and to configure software and...
Server <ul><li>Export a directory structure with files that have information about Debian packages.  </li></ul><ul><li>Thi...
Server <ul><li>To split index files and Debian packages avoid to have replicated files in different directories, for examp...
Server <ul><li>Trivial  Repositories , more  complex ,  directories   with   meaning   about   distribution ,  architectur...
Repositorio triviales <ul><li>Debian way and other distributions derived of Debian like Ubuntu, quite complex. </li></ul><...
Index Files <ul><li>dpkg-scanpackages to scan packages. </li></ul><ul><li>dpkg-scansources to scan sources. </li></ul><ul>...
Packages.gz Package: acpid Version: 1.0.4-5ubuntu9 Priority: optional Section: admin Maintainer: Ubuntu Core developers <u...
Sources.gz Format: 1.0 Package: evince Binary: evince, evince-dbg, evince-gtk, evince-gtk-dbg Architecture: any Version: 2...
Política Repositorio Debian <ul><li>Estructura de directorios </li></ul>
Client <ul><li>/etc/apt/sources.list </li></ul><ul><ul><li>Trivial  repositories : </li></ul></ul><ul><ul><ul><li>deb  htt...
Cliente <ul><li>/etc/apt/sources.list </li></ul><ul><ul><li>Automatic repositories: </li></ul></ul><ul><ul><ul><li>deb htt...
Client <ul><li>/var/lib/apt/lists/ </li></ul><ul><ul><li>Directory with the index files of the scanned repositories. </li>...
Exercise <ul><li>To create a Debian repository with your own package. </li></ul><ul><li>Trivial  repository. </li></ul>
Upcoming SlideShare
Loading in...5
×

Repositorios Debian

2,509

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,509
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
22
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Repositorios Debian"

  1. 1. Debian Software Repository
  2. 2. Index <ul><li>Introduction </li></ul><ul><li>Server </li></ul><ul><li>Index files </li></ul><ul><ul><li>Packages.gz </li></ul></ul><ul><ul><li>Sources.gz </li></ul></ul><ul><li>Client </li></ul>
  3. 3. Introduction <ul><li>Package Management System. </li></ul><ul><li>Easy to install, to remove and to configure software and its dependences. </li></ul><ul><li>Like a data base with Debian packages. </li></ul>
  4. 4. Server <ul><li>Export a directory structure with files that have information about Debian packages. </li></ul><ul><li>This structure could have a meaning (architecture, version, license). </li></ul><ul><li>Very huge repositories have the Debian packages in other repository, pool. </li></ul>
  5. 5. Server <ul><li>To split index files and Debian packages avoid to have replicated files in different directories, for example, documentation packages. </li></ul><ul><li>Index files and Debian packages have to be accessed by web. </li></ul>
  6. 6. Server <ul><li>Trivial Repositories , more complex , directories with meaning about distribution , architecture , license. A “ dists ” directory over the root of the repository. </li></ul><ul><li>Automatic repositories , quite simple, export directories over a root. </li></ul>
  7. 7. Repositorio triviales <ul><li>Debian way and other distributions derived of Debian like Ubuntu, quite complex. </li></ul><ul><li>Root -> dists -> distribution -> module -> architecture </li></ul><ul><ul><li>http://es.archive.ubuntu.com/ubuntu/ </li></ul></ul><ul><ul><li>“ dists” directory over the root is mandatory. </li></ul></ul>
  8. 8. Index Files <ul><li>dpkg-scanpackages to scan packages. </li></ul><ul><li>dpkg-scansources to scan sources. </li></ul><ul><li>Override file: information to override from packages: </li></ul><ul><ul><li><package> <priority> <section> [<maintainerinfo>] </li></ul></ul><ul><ul><li>It is useful, for example, to add specific information of a distribution. </li></ul></ul>
  9. 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. 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. 11. Política Repositorio Debian <ul><li>Estructura de directorios </li></ul>
  12. 12. Client <ul><li>/etc/apt/sources.list </li></ul><ul><ul><li>Trivial repositories : </li></ul></ul><ul><ul><ul><li>deb http://raiz-repos dist module1 module2 </li></ul></ul></ul><ul><ul><ul><li>deb http://es.archive.ubuntu.com/ubuntu/ hardy main restricted </li></ul></ul></ul><ul><ul><ul><ul><li>http://es.archive.ubuntu.com/ubuntu/dists/hardy/main/binary-i386 </li></ul></ul></ul></ul><ul><ul><ul><ul><li>http://es.archive.ubuntu.com/ubuntu/dists/hardy/restricted/binary-i386 </li></ul></ul></ul></ul><ul><ul><ul><li>deb-src search into sources directory instead of an architecture directory </li></ul></ul></ul>
  13. 13. Cliente <ul><li>/etc/apt/sources.list </li></ul><ul><ul><li>Automatic repositories: </li></ul></ul><ul><ul><ul><li>deb http://repository/path/ directory/ </li></ul></ul></ul><ul><ul><ul><ul><li>Always finished by “/” </li></ul></ul></ul></ul><ul><ul><ul><ul><li>http://repository/path/directory/Packages.gz </li></ul></ul></ul></ul><ul><ul><ul><ul><li>An entry for each directory with index files </li></ul></ul></ul></ul>
  14. 14. Client <ul><li>/var/lib/apt/lists/ </li></ul><ul><ul><li>Directory with the index files of the scanned repositories. </li></ul></ul>
  15. 15. Exercise <ul><li>To create a Debian repository with your own package. </li></ul><ul><li>Trivial repository. </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×