Difference between revisions of "Membuat Repository Ubuntu Lokal i386 amd64"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
==Install debmirror==
 +
 +
apt-get update
 +
apt-get install debmirror
 +
 
==Siapkan Folder==
 
==Siapkan Folder==
  
Line 20: Line 25:
  
 
Sarankan bagi semua pengguna untuk menggunakan Ubuntu Long Term Support (LTS) jika kita menginstalasi ubuntu baru.
 
Sarankan bagi semua pengguna untuk menggunakan Ubuntu Long Term Support (LTS) jika kita menginstalasi ubuntu baru.
 +
 +
Tulis script di bawah ini misalnya di file
 +
 +
/usr/local/bin/cerminrepo.14.04.sh
 +
/usr/local/bin/cerminrepo.16.04.sh
  
  
Line 27: Line 37:
 
  export GNUPGHOME=/var/data/mirrorkeyring
 
  export GNUPGHOME=/var/data/mirrorkeyring
 
  debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
 
  debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
           -h 152.118.24.30 \
+
           -h 91.189.88.17 \
 
           -d precise,precise-backports,precise-proposed,precise-security \
 
           -d precise,precise-backports,precise-proposed,precise-security \
 
           -r ubuntu --progress -e http /var/data/repository/repo-12.04/
 
           -r ubuntu --progress -e http /var/data/repository/repo-12.04/
Line 52: Line 62:
 
  export GNUPGHOME=/var/data/mirrorkeyring
 
  export GNUPGHOME=/var/data/mirrorkeyring
 
  debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
 
  debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
           -h 152.118.24.30 \
+
           -h 91.189.88.17 \
 
           -d saucy,saucy-backports,saucy-proposed,saucy-security,saucy-updates \
 
           -d saucy,saucy-backports,saucy-proposed,saucy-security,saucy-updates \
 
           -r ubuntu --progress -e http /var/data/repository/repo-13.10/
 
           -r ubuntu --progress -e http /var/data/repository/repo-13.10/
Line 61: Line 71:
 
  export GNUPGHOME=/var/data/mirrorkeyring
 
  export GNUPGHOME=/var/data/mirrorkeyring
 
  debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
 
  debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
           -h 152.118.24.30 \
+
           -h 91.189.88.17 \
 
           -d trusty,trusty-backports,trusty-proposed,trusty-security,trusty-updates \
 
           -d trusty,trusty-backports,trusty-proposed,trusty-security,trusty-updates \
 
           -r ubuntu --progress -e http /var/data/repository/repo-14.04/
 
           -r ubuntu --progress -e http /var/data/repository/repo-14.04/
Line 91: Line 101:
 
           -d xenial,xenial-backports,xenial-security,xenial-updates \
 
           -d xenial,xenial-backports,xenial-security,xenial-updates \
 
           -r ubuntu --progress -e http /var/data/repository/repo-16.04/
 
           -r ubuntu --progress -e http /var/data/repository/repo-16.04/
 +
 +
 +
==Cron==
 +
 +
Edit
 +
 +
crontab -e
 +
 +
Isi misalnya
 +
 +
0 21 * * *  /usr/local/bin/cerminrepo.16.04.sh
 +
  
 
==Beberapa Server==
 
==Beberapa Server==
Line 115: Line 137:
 
* 91.189.91.15
 
* 91.189.91.15
 
* 91.189.91.23
 
* 91.189.91.23
 +
* 36.86.63.182 - kambing.ui.ac.id
 +
* 91.189.88.161 - id.archive.ubuntu.com
 +
* 91.189.88.149 - id.archive.ubuntu.com
 +
* 91.189.88.152 - id.archive.ubuntu.com
 +
* 91.189.88.162 - id.archive.ubuntu.com

Revision as of 05:11, 3 June 2017

Install debmirror

apt-get update
apt-get install debmirror

Siapkan Folder

mkdir -p /var/data/repository/
mkdir -p /var/data/mirrorkeyring/


Setup Mirror Keyring

Update keyring

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
mkdir -p /var/data/mirrorkeyring
gpg --no-default-keyring --keyring /var/data/mirrorkeyring/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg
gpg --no-default-keyring --keyring /var/data/mirrorkeyring/trustedkeys.gpg --import /etc/apt/trusted.gpg


Ambil repo dari kambing.ui.ac.id

Sarankan bagi semua pengguna untuk menggunakan Ubuntu Long Term Support (LTS) jika kita menginstalasi ubuntu baru.

Tulis script di bawah ini misalnya di file

/usr/local/bin/cerminrepo.14.04.sh
/usr/local/bin/cerminrepo.16.04.sh


Contoh script 12.04 LTS

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 91.189.88.17 \
          -d precise,precise-backports,precise-proposed,precise-security \
          -r ubuntu --progress -e http /var/data/repository/repo-12.04/

Contoh script 12.10

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 91.189.88.17 -d quantal \
          -r ubuntu --progress -e http /var/data/repository/repo-12.10/

Contoh script 13.04

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 91.189.88.17 -d raring \
          -r ubuntu --progress -e http /var/data/repository/repo-13.04/

Contoh script 13.10

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 91.189.88.17 \
          -d saucy,saucy-backports,saucy-proposed,saucy-security,saucy-updates \
          -r ubuntu --progress -e http /var/data/repository/repo-13.10/

Contoh script 14.04 LTS

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 91.189.88.17 \
          -d trusty,trusty-backports,trusty-proposed,trusty-security,trusty-updates \
          -r ubuntu --progress -e http /var/data/repository/repo-14.04/

Contoh script 14.10

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 152.118.24.30 \
          -d utopic,utopic-backports,utopic-proposed,utopic-security,utopic-updates \
          -r ubuntu --progress -e http /var/data/repository/repo-14.10/

Contoh script 15.04

#!/bin/bash
export GNUPGHOME=/var/data/mirrorkeyring
debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 152.118.24.30 \
          -d vivid,vivid-backports,vivid-proposed,vivid-security,vivid-updates \
          -r ubuntu --progress -e http /var/data/repository/repo-15.04/

Contoh script 16.04

#!/bin/bash 
export GNUPGHOME=/var/data/mirrorkeyring 
/usr/bin/debmirror -a i386,amd64 --no-source -s main,restricted,universe,multiverse \
          -h 152.118.24.30 \
          -d xenial,xenial-backports,xenial-security,xenial-updates \
          -r ubuntu --progress -e http /var/data/repository/repo-16.04/


Cron

Edit

crontab -e

Isi misalnya

0 21 * * *  /usr/local/bin/cerminrepo.16.04.sh


Beberapa Server

Ada beberapa server yang dapat kita tulis di belakang parameter -h di debmirror, antara lain adalah

  • kambing.ui.edu RECOMMENDED
  • kambing.ui.ac.id RECOMMENDED
  • old-releases.ubuntu.com - untuk repo yang sudah tidak di support lagi.
  • id.archive.ubuntu.com

IP address

  • 152.118.24.30 - IP address kambing.ui.ac.id RECOMMENDED
  • 91.189.88.17 - IP address old-releases.ubuntu.com
  • 125.160.17.22
  • 91.189.91.24
  • 91.189.92.200
  • 91.189.92.201
  • 91.189.88.149
  • 91.189.88.153
  • 91.189.91.13
  • 91.189.91.14
  • 91.189.91.15
  • 91.189.91.23
  • 36.86.63.182 - kambing.ui.ac.id
  • 91.189.88.161 - id.archive.ubuntu.com
  • 91.189.88.149 - id.archive.ubuntu.com
  • 91.189.88.152 - id.archive.ubuntu.com
  • 91.189.88.162 - id.archive.ubuntu.com