How to build Debian apt-get source on redhat

  

First talk about my environment: redhat5.4 system, IP address is 192.168.0.10 Debian is 6.0 system, IP is 192.168.0.12
server side I first copied the image file of Debian's 8 DVDs to redhat. I uploaded it via FTP and put it in the /var/ftp/pub directory. Build an apache on redhat, then build a source of HTTP protocol, create a new 1-8 folder in /var/www/html directory, corresponding to eight DVD discs, and then hang eight DVD images Loaded into the corresponding eight directories mount -o loop /var/ftp/pub/debian-6.0.1a-amd64-DVD-1.iso /var/www/html/1…..mount -o loop /var/Ftp/pub/debian-6.0.1a-amd64-DVD-8.iso /var/www/html/8


Now open the HTTPD service, service httpd start Client: Now go back to my Debian: /etc/apt/sources.list add the following content: deb http://192.168.0.10/1/debian squeeze maindeb http://192.168.0.10/2/debian squeeze maindeb http://192.168.0.10/3/debian Squeeze maindeb http://192.168.0.10/4/debian squeeze maindeb http://192.168.0.10/6/debian squeeze maindeb http://192.168.0.10/5/debian squeeze maindeb http://192.168.0.10/7 /debian squeeze maindeb http://192.168.0.10/8/debian squeeze main Then you can use apt-get to install the software. Alternatively, you can use the graphical interface to add your own set of sources: --> System Management --> Software Source --- Select the third-party source in the tab above, then select New:


Enter deb http://192.168.0.10/1/debian squeeze main, then click Add the source and add the eight sources in turn. The effect of adding is as follows:


Note that the squeeze must not be changed, because the system will go to the installation source to find the directory of squeeze.

Copyright © Windows knowledge All Rights Reserved