DEB repository for Ubuntu

Source: Internet
Author: User
Recently, we are working on a project to build a source update repository for our own Ubuntu. So I found some information about debian and Ubuntu. And build a DEB warehouse according to your understanding. The update source repository of Ubuntu is mainly analyzed based on the directory structure and some indexcontents and relase. The client automatically updates the version based on the information provided by the version platform warehouse. That is, we only need to set up the directory structure correctly, recently, we are working on a project to build a source update repository for our own Ubuntu. So I found some information about debian and Ubuntu. And build a DEB warehouse according to your understanding.

The update source repository of Ubuntu is mainly analyzed based on the directory structure and index contents and relase. The client automatically updates the repository based on the information provided by the version platform warehouse. That is, we only need to set up the directory structure correctly and generate the relevant files correctly to complete the warehouse building, the following describes the Ubuntu directory structure and related files.

| -- Repository

| -- Dists
| -- Stable
| -- Contents-i386.gz
| -- Apt. conf
| -- Release
| -- Release. gpg
| -- Main
| -- Binary-amd64
| -- Binary-i386
| -- Packages
| -- Packages.gz
| -- Source
| -- Multiverse
| -- Binary-amd64
| -- Binary-i386
| -- Source
| -- Restricted
| -- Binary-amd64
| -- Binary-i386
| -- Source
| -- Universe
| -- Binary-amd64
| -- Binary-i386
| -- Packages
| -- Packages.gz
| -- Source
| -- Pool
| -- Main
| -- P
| -- Pidgind_2.5.6_ie86.deb
| -- Multiverse
| -- Restricted
| -- Universe
| -- Project
| -- Keyring. gpg

The directory structure is basically like this.

Repository: it is the main directory of the repository. There is no requirement to define it at will.

Dists: note that this directory is located in the main directory. The name must be used to store information about some repositories, such as archieve, package, and platorm.

Pool: All deb files in the deb directory must be placed under this directory. Sub-directories will be described later.

Project: used to store information about project-related files, such as gpg key files.

The sub-directories under dists/{stable, unstable, notfree, contrib} can have multiple directories under each archieve name. You can customize the name.

Dists/stable/{main, restrict, universe} is the component name. This name can also be defined by yourself, but is generally defined as a compliant name according to the specification.

Dists/stable/main/{binary-i386, binary-arm, binary-amd64 ..} this directory is defined based on the platform. The directory name must be defined in the form of binary-platform. When the client updates the directory, it will find the corresponding directory based on its own platform.

Dists/stable/main/source is used to store the index file directory of the source code.

The pool/{main, restrict, universe} directory defines this name according to the component name, but I have not tried it,

The basic directory has been basically completed. The following describes the files in various directories.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.