Debian local Installation Method

Source: Internet
Author: User
For details about how to install Debian local data source, see Debian, the Linux release technology. 1. Create local source
1. apt-get install dpkg-dev (install the dpkg-scanpackages command First)

2. cd/usr/local/debian (corresponding to the address in the sources. list file)

Mkdir pools (physical address of the software package, which must be included first)

Mkdir-p dists/sid/main/binary-i386

3. ls-1 pools | sed's/_. * $/extra BOGUS/'| uniq> override (write all the deb package names in the pools directory to the file override)

4. dpkg-scanpackages pools override> dists/sid/main/binary-i386/Packages file]

5. vi dists/sid/main/Release (varies by person)

Input:
Archive: sid
Version: lenny
Component: main
Origin: Local
Label: Local
Architecture: i386

6. echo "deb file:/usr/local/debian sid main">/etc/apt/sources. list

Ii. How to install the system using the source created by myself

1. Local Installation
If the preceding debian directory is in the root directory of the second partition, And the debian Basic System on the installation is in the third partition, then:

Mount/dev/hda2/mnt/usb2
Echo "deb file:/mnt/usb2/debian sid main">/etc/apt/sources. list
Apt-get update
...

2. Use mobile devices
If the above debian directory is in the root directory of the first partition of the mobile device and the device Number of the mobile device is/dev/sda1, then:

Mount-o iocharset = utf8/dev/sda1/mnt/usb1
Echo "deb file:/mnt/usb1/debian sid main">/etc/apt/sources. list
Apt-get update
...

3. apache
If the debian directory is on a PC (IP: 192.168.0.172) in the LAN, place the debian directory in the default home directory of apache (for example: /var/www/html/debian), enable the apache service, and finally:

Echo "deb http: // 192.168.0.172/debian sid main">/etc/apt/sources. list
Apt-get update
...
Related Article

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.