Sudah lama blog ini mati suri, mudah-mudahan bisa rutin menulis lagi.
Oke, sekedar pemanasan, saya akan coba menulis langkah-langkah upgrade FreeBSD 12.1 ke 12.2.
Semoga bermanfaat.
Versi FreeBSD di server saya saat ini:
$ freebsd-version FreeBSD 12.1-RELEASE
Berhubung masa aktif FreeBSD 12.1 sudah berakhir (end-of-life) maka server saya tidak akan mendapat update/upgrade semua aplikasi yang telah diinstall didalamnya. Demi keamanan dan kenyamanan saya lakukan upgrade ke FreeBSD 12.2. Walau pun agak tanggung karena Freebsd 13.0 akan segera rilis pada bulan Maret 2021 nanti namun saya tetap lakukan upgrade ke FreeBSD 12.2 dahulu. Sekalian untuk bahan tulisan ini.
Dibawah ini adalah langkah-langkah untuk melakukan upgrade FreeBSD, lakukan sebagai root
.
1. Download file-file yang dibutuhkan (patches) untuk upgrade dengan perintah freebsd-update fetch
# freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.1-RELEASE from update4.freebsd.org... done. Fetching metadata index... done. Fetching 2 metadata patches.. done. Applying metadata patches... done. Fetching 2 metadata files... done. Inspecting system... done. Preparing to download files... done. Fetching 549 patches..... Fetching 549 patches..... 10....20....30....40....50....60....70....80....90....100....110....120....130.... 140....150....160....170....180....190....200....210....220....230....240....250.... 260....270....280....290....300....310....320....330....340....350....360....370.... 380....390....400....410....420....430....440....450....460....470....480....490.... 500....510....520....530....540.... done. Applying patches... WARNING: FreeBSD 12.1-RELEASE-p2 HAS PASSED ITS END-OF-LIFE DATE. Any security issues discovered after Sun Jan 31 07:00:00 WIB 2021 will not have been corrected.
2. Install file-file patches diatas dengan perintah freebsd-update install
# freebsd-update install src component not installed, skipped Installing updates... done.
3. Langkah berikutnya adalah melakukan upgrade dengan perintah freebsd-update upgrade -r 12.2-RELEASE
# freebsd-update upgrade -r 12.2-RELEASE src component not installed, skipped Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.1-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic kernel/generic-dbg world/base world/doc world/lib32 The following components of FreeBSD do not seem to be installed: world/base-dbg world/lib32-dbg Does this look reasonable (y/n)? y Fetching metadata signature for 12.2-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... Fetching files from 12.1-RELEASE for merging... done. Preparing to download files... Fetching 10448 patches.....10....20....30....40....50....60....70....80....90.... ................................................................................. ................................................................................. ....10370....10380....10390....10400....10410....10420....10430....10440.... done. Applying patches... Fetching 1928 files... ....10....20....30....40....50....60....70....80....90.... ................................................................................. ................................................................................. ...1800....1810....1830....1840....1850....1870....1890....1990....1910... done. Attempting to automatically merge changes in files... done. The following changes, which occurred between FreeBSD 12.1-RELEASE and FreeBSD 12.2-RELEASE have been merged into /etc/group: --- current version +++ new version @@ -1,6 +1,6 @@ -# $FreeBSD: releng/12.1/etc/group 336525 2018-07-19 23:55:29Z ian $ +# $FreeBSD: releng/12.2/etc/group 359447 2020-03-30 17:07:05Z brooks $
Catatan: akan ada beberapa pertanyaan seperti:
Does this look reasonable (y/n)?
Jawab saja dengan y
.
4. Setelah langkah diatas sukses, jalankan perintah freebsd-update install
untuk menginstall file update yang sudah didownload pada langkah sebelumnya.
# freebsd-update install src component not installed, skipped Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates.
5. Kemudian reboot server dengan perintah:
# shutdown -r now
6. Setelah server berhasil up, login kembali dan jalankan perintah freebsd-update install
lagi.
# freebsd-update install src component not installed, skipped Installing updates...
Selesai! Coba cek versinya.
# freebsd-version 12.2-RELEASE-p3
Sebaiknya aplikasi-aplikasi yang telah terinstall sebelumnya diupdate juga. Saya biasa melakukan dengan perintah satu baris saja, yaitu:
# portsnap fetch update ; pkg audit -F ; portmaster -ad
Sekian, semoga bermanfaat.
lama ga ada update lagi nih
semangat gan buat share ilmu yang bermanfaat kayak gini
sangat membantu
salam sukses selalu gan
sangat membantu dan bermanfaat buat saya yang lagi belajar gan
maju terus juragan
sukses selalu
Ilmu yang bermanfaat, Mantapsss gan
Thank You for sharing, visit our web https://www.ksj.co.id/product-tag/jual-hidrolik/
Thank You for sharing. https://www.ksj.co.id/product-tag/jual-hydraulic-cylinder-jakarta/
Makasih Brow Mantap Artikel nya,
Mungkin Kalau Tertarik comot disini aja artikel blog nya :
https://www.jasaaspalindo.com/jasapengaspalan/