How to install local source In Debian Linux

Source: Internet
Author: User

 

1. Create local source

1,Apt-Get install dpkg-Dev (install the dpkg-scanpackages command First)

2,

CD/usr/local/Debian (this corresponds 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

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

...

 

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.