- برای کلون گرفتن از مخزن اوبونتو یا ساختن مخزن کامل اوبونتو ابتدا بستههای زیر را نصب کنید :
|
1 |
# apt-get install apache2 apt-mirror |
- آخرین نسخهی apt-mirror را دریافت و آپدیت کنید :
|
1 2 3 |
# git clone https://github.com/Stifler6996/apt-mirror # cd apt-mirror # make install |
- یک دایکتوری برای دریافت پروندهها ایجاد کنید :
|
1 |
# mkdir -p /mnt/apt-mirror |
- پروندهی زیر را باز کنید :
|
1 |
# vim /etc/apt/mirror.list |
- تغییرات زیر را اعمال نمایید :
|
1 2 3 4 5 6 7 8 9 |
set base_path /mnt/apt-mirror set nthreads 20 set _tilde 0 deb [arch=amd64] http://<span style="color: #ff0000;">ubuntu-main-repo-server</span>/repo/ubuntu focal main restricted universe multiverse deb [arch=amd64] http://<span style="color: #ff0000;">ubuntu-main-repo-server</span>/repo/ubuntu focal-updates main restricted universe multiverse deb [arch=amd64] http://<span style="color: #ff0000;">ubuntu-main-repo-server</span>/repo/ubuntu focal-backports main restricted universe multiverse deb [arch=amd64] http://<span style="color: #ff0000;">ubuntu-main-repo-server</span>/repo/ubuntu focal-security main restricted universe multiverse deb [arch=amd64] http://<span style="color: #ff0000;">ubuntu-main-repo-server</span>/repo/ubuntu focal-proposed main restricted universe multiverse clean http://<span style="color: #ff0000;">ubuntu-main-repo-server</span>/repo/ubuntu |
- یک تیماکس باز کنید و دستور زیر را اجرا کنید :
|
1 |
# apt-mirror |
- بعد از این که تمام دانلودها انجام شد ، یک لینک به صورت زیر ایجاد کنید :
|
1 |
# ln -s /mnt/apt-mirror/mirror/<ubuntu-main-repo-address>/repo /var/www/html/ |
- سرویس آپاچی را روشن یا restart کنید :
|
1 |
# apache2 restart apache2 |
- آدرس زیر را درون مرورگر بررسی کنید :
|
1 |
# http://localhost/ubuntu/ |
- نزدیک به ۱۰۰ گیگ باید دانلود شود.
- تست شده بر روی ubuntu 20.04
- تست شده برای مخزن ubuntu 20.04
- دانلود سورس