How can I make a local apt mirror in my Debian or Ubuntu DRBL server and use that as an apt repository ? |
1. Use the mirror tools to mirror the files in the server, such as:
a. mkdir -p /opt/apt/drbl-core
b. cd /opt/apt/drbl-core; lftp -e "o ftp://linux.nchc.org.tw/dists/drbl-core/ && mirror -e dists && mirror -e pool && quit"
2. edit /etc/apt/sources.list, add a line like this:
----------------------------------------
deb file:/opt/apt/drbl-core/drbl-core drbl stable
----------------------------------------
3. Follow the standard installation procedure to finish it.
|
|