Mock untuk build paket: Perbedaan revisi
Dari IGNwiki
(←Membuat halaman berisi 'Mock dipakai untuk build paket untuk versi tertentu. == Pasang Mock == # yum -y install mock == Atur Konfigurasi == Misal fedora-11-i386.cfg sebagai default # cd /etc…') |
|||
Baris 11: | Baris 11: | ||
Agar mock memakai repositori lokal lakukan penyesuaian: | Agar mock memakai repositori lokal lakukan penyesuaian: | ||
SEMULA: | SEMULA: | ||
− | + | # repos | |
+ | [fedora] | ||
+ | name=fedora | ||
+ | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-11&arch=i386 | ||
+ | failovermethod=priority | ||
+ | |||
+ | [updates-released] | ||
+ | name=updates | ||
+ | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f11&arch=i386 | ||
+ | failovermethod=priority | ||
+ | |||
+ | [local] | ||
+ | name=local | ||
+ | baseurl=http://kojipkgs.fedoraproject.org/repos/dist-f11-build/latest/i386/ | ||
+ | cost=2000 | ||
+ | enabled=0 | ||
MENJADI (misal) | MENJADI (misal) | ||
− | + | # repos | |
+ | [f11-all] | ||
+ | name=f11-all | ||
+ | baseurl=http://192.168.1.100/public/fedora/f11/all | ||
+ | |||
+ | [f11-updates] | ||
+ | name=f11-updates | ||
+ | baseurl=http://192.168.1.100/public/fedora/f11/updates | ||
== Build Paket == | == Build Paket == |
Revisi per 30 Maret 2010 04.53
Mock dipakai untuk build paket untuk versi tertentu.
Pasang Mock
# yum -y install mock
Atur Konfigurasi
Misal fedora-11-i386.cfg sebagai default
# cd /etc/mock # ln -s --force fedora-11-i386.cfg default.cfg
Agar mock memakai repositori lokal lakukan penyesuaian: SEMULA:
# repos [fedora] name=fedora mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-11&arch=i386 failovermethod=priority [updates-released] name=updates mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f11&arch=i386 failovermethod=priority [local] name=local baseurl=http://kojipkgs.fedoraproject.org/repos/dist-f11-build/latest/i386/ cost=2000 enabled=0
MENJADI (misal)
# repos [f11-all] name=f11-all baseurl=http://192.168.1.100/public/fedora/f11/all [f11-updates] name=f11-updates baseurl=http://192.168.1.100/public/fedora/f11/updates
Build Paket
Misal paket yang akan di build adalah
Jalankan: