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)
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:
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:
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.