Editing Apt-mirror
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 32 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
* Download and install '''apt-mirror''' from http://apt-mirror.sourceforge.net/ | * Download and install '''apt-mirror''' from http://apt-mirror.sourceforge.net/ | ||
- | + | On Ubuntu can be installed via apt-get | |
apt-get install apt-mirror | apt-get install apt-mirror | ||
* Apply patch [https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/1015131/+attachment/3195994/+files/apt-mirror-https.patch apt-mirror-https.patch] from launchpad bug [https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/1015131 #1015131] - '''NB:''' no longer required | * Apply patch [https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/1015131/+attachment/3195994/+files/apt-mirror-https.patch apt-mirror-https.patch] from launchpad bug [https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/1015131 #1015131] - '''NB:''' no longer required | ||
- | + | On Ubuntu apt-mirror is installed in /usr/bin | |
cd /usr/bin && sudo patch -p0 -i ''/path/to/apt-mirror-https.patch'' | cd /usr/bin && sudo patch -p0 -i ''/path/to/apt-mirror-https.patch'' | ||
* Create apt-mirror config file '''mirror.list''' | * Create apt-mirror config file '''mirror.list''' | ||
- | + | Copy [[Apt-mirror#mirror.list_for_Maemo_5_Fremantle|Maemo 5 Fremantle mirror.list]] file. | |
- | + | base_path - path where will be all files downloaded | |
- | + | nthreads - number of maximal parallel downloads | |
- | + | On Ubuntu default '''mirror.list''' is /etc/apt/mirror.list | |
* Run apt-mirror manually: | * Run apt-mirror manually: | ||
apt-mirror ''/path/to/mirror.list'' | apt-mirror ''/path/to/mirror.list'' | ||
- | + | On Ubuntu if file argument is not specified default /etc/apt/mirror.list is used | |
* Run apt-mirror automatically: | * Run apt-mirror automatically: | ||
- | + | Install cron and configre file /etc/cron.d/apt-mirror | |
# | # |
Learn more about Contributing to the wiki.