Skip to content

emka.web.id

writing knowledge, recording civilization

Menu
  • Home
  • Tutorial
  • Search
Menu

Upgrade NixOS ke Versi Terbaru dengan Mudah!

Posted on June 6, 2024

NixOS 24.05, dengan codename Uakari, baru saja dirilis! Salah satu keunggulan utama NixOS adalah proses upgrade yang simpel dan mudah. Dengan upgrade ini, sistem Anda selalu terupdate tetap stabil dan handal.

Dalam panduan langkah-demi-langkah ini, kita akan membahas cara upgrade NixOS ke versi terbaru yang tersedia.

Upgrade NixOS 23.11 (Tapir) ke 24.05 (Uakari)

Panduan ini akan mendemonstrasikan upgrade NixOS dari versi 23.11 (Tapir) ke 24.05 (Uakari). Pertama, mari kita lihat detail versi NixOS 23.11 yang saat ini digunakan:

cat /etc/os-release

Periksa Versi NixOS Anda

Setelah menjalankan perintah di atas, Anda akan melihat informasi detail mengenai versi NixOS Anda, termasuk codename dan tanggal akhir dukungan.

Backup Data Penting!

Sebelum memulai proses upgrade, pastikan Anda sudah melakukan backup terhadap semua data penting. Ini adalah langkah krusial untuk semua sistem operasi, tak terkecuali NixOS.

Mengenal NixOS Channels

Upgrade NixOS menggunakan konsep Channels (Saluran). Channels NixOS adalah kumpulan repository yang terkurasi dengan baik. Repository ini berisi kode Nix beserta binary terkait yang telah melalui proses pengujian ketat untuk menjamin pengalaman pengguna yang lancar. Beberapa channel yang tersedia meliputi:

  • Stable Channels (misalnya: nixos-24.05): Channel ini menerima perbaikan bug konservatif dan upgrade paket, seperti update minor kernel dari versi 6.1 ke 6.2. Channel ini menjamin pengalaman yang stabil dan handal.
  • Unstable Channel (nixos-unstable): Bagi pengguna yang gemar hal baru, channel ini cocok untuk Anda. Channel ini berisi fitur dan update mutakhir dari pengembangan aktif NixOS, namun berpotensi kurang stabil.
  • Small Channels (misalnya: nixos-24.05-small): Mirip dengan Stable Channels, namun dengan lebih sedikit binary pre-built. Channel ini ideal untuk server, menawarkan update lebih cepat saat patch keamanan kritis dirilis.

Pelajari lebih lanjut tentang penggunaan Nix Channels: https://nix-tutorial.gitlabpages.inria.fr/nix-tutorial/getting-started.html

Upgrade NixOS 24.05 dari 23.11

Saat pertama kali menginstall NixOS (misalnya versi 23.11), Anda secara otomatis terdaftar di channel yang sesuai dengan sumber instalasi Anda. Untuk mengecek channel saat ini, jalankan perintah berikut dengan akses root atau sudo:

sudo nix-channel --list | grep nixos

Periksa Channel NixOS Saat Ini

Perintah di atas akan menampilkan channel yang sedang Anda gunakan. Misalnya, jika output menunjukkan “nixos-23.11”, artinya Anda saat ini menggunakan NixOS 23.11.

Beralih ke Channel Terbaru

Untuk beralih ke versi terbaru (24.05), gunakan perintah berikut:

sudo nix-channel --add https://channels.nixos.org/nixos-24.05 nixos

Upgrade Sistem

Setelah terdaftar di channel yang diinginkan, upgrade sistem semudah menjalankan perintah berikut:

sudo nixos-rebuild switch --upgrade

Perintah ini setara dengan nix-channel –update nixos; nixos-rebuild switch. Perintah ini akan memperbarui sistem Anda ke versi terbaru di channel yang dipilih.

Jika upgrade berhasil, Anda akan melihat output berikut:

[…]
updating GRUB 2 menu…
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
lsblk: /dev/mapper/no[0-9]: not a block device lsblk: /dev/mapper/raid[0-9]: not a block device
lsblk: /dev/mapper/disks*[0-9]: not a block device
installing the GRUB 2 boot loader on /dev/sda…
Installing for i386-pc platform.
Installation finished. No error reported.
[…]

Restart Sistem

Setelah update selesai, jalankan perintah reboot untuk memulai ulang sistem NixOS Anda:

sudo reboot

Verifikasi Upgrade

Setelah masuk kembali ke sistem yang telah diupgrade, periksa versinya untuk memastikan upgrade berhasil. Jalankan perintah berikut:

cat /etc/os-release

Terbaru

  • How to Install Clean Windows 11 Without Any Bloatware (Step-by-Step Guide)
  • IP Address Rate Limiting is Flawed—Here is the Right Way to Do It
  • Are Fedora 45 Stuck in Its Comfort Zone? A Short Review
  • Hacktober Recap 2026, A Month Full of Dangerous CVE: eMudhra, Gitlab, Brotli, PHP, NodeJS etc
  • 7 Skill Keamanan Jaringan yang Membuat Network Engineer Makin Dibutuhkan
  • How to Spin Up Disposable macOS and Linux VMs on Apple Silicon with TartVM
  • Belajar Cyber Security dari Nol hingga Siap Kerja, Ini Roadmap Lengkapnya
  • Running Windows 11 on Apple Silicon: UTM vs. Parallels Desktop vs. VMware Fusion
  • Testing PikaOS, a Rolling Debian Distribution Special for Gaming and Content Creation
  • Engineering the On-Premises AI Data Center: An In-Depth Technical Review of the HP ZGX Fury AI Station
  • Trying my new Favourite Task Manager, TMOG on Omarchy Linux
  • ASRock Industrial AI Box A395: Is This the Best Compact Strix Halo System for Local AI?
  • Redox OS: A Rust-Based Microkernel Operating System (And How It Differs from Linux)
  • Canonical Is Bringing Back Ubuntu Core Desktop — This Time With a Clearer Plan
  • systemd Officially Adds Support for Rust Components
  • Rocky Linux Creator Builds a Brand-New “Not Linux” Kernel in 11 Days Using AI
  • Building a local AI agent in Workshop on Ubuntu 26.10
  • Omarchy 4.5 RC: 5 New Apps That Actually Look Useful
  • Worth It! Switching from Fedora KDE to Kubuntu
  • I’m Happy Using ‘Herdr’, The Fastest Growing Devtool written in Rust
  • Testing Goose on Omarchy Linux (App & CLI): The Open-Source Solution for Daily Task Automation
  • GNOME Founder Attacks Omarchy Founder as “Lazy, Racist, Ignorant”
  • Why I Stopped Using Plain Command Line Docker and Use Portainer 3.0 To Make My Home Projects Fun Again
  • Why I Switched to a Proper Firewall Box with OPNSense for My Homelab Stuff
  • Fixing Windows Error 0x80070005 Hyper-V Export Access Denied Error the Right Way
  • Fixing Hyper V Export Errors and Building a Better Virtual Machine Setup (error 0x80070002, 0x80070005)
  • Fixing the Dreaded Windows Audio Service Stuck on Stopping Error
  • Windows SIM Error, Unknown error 0xc1420127
  • How I’m Building a Cat Breeding Management App with Python Qt6 + Microsoft Litebox, in 1 Week
  • Why Windows Keeps Nuking Your GPU Drivers (And How to Take Back Control)
  • Canonical: Ubuntu coming soon to Snapdragon X2 Series platforms
  • Finally, wolfSSL adds post-quantum algorithms!
  • How to Run Gemma Embedding Models Using Docker
  • Deploy Nginx Rootful Container with Podman
  • How to Sandboxing Browser on Linux Desktop with Flatpak
  • OpenCode Browse Explained: Automate Any Website WITHOUT APIs
  • Leaked Qwen 4 and GLM 5.5 Post-Training, Beating the 27B Models
  • Do you Agree? Anthropic Secretly Watermarks All Claude’s Text!
  • Some of New Gemini Notebook Update is CRAZY GOOD: Native Mobile Recording
  • Clover 35B A3B Local Test | Diffusion Model Beats Qwen 35B MoE? | Local AI Setup with llama.cpp
  • Lagi rame soal ASN pake mobil dinas buat liburan keluarga, kok bisa dibilang korupsi?
  • Sering lewat di FYP atau X, ini arti istilah seme dan uke yang sering dibahas penggemar anime dan manga
  • Kisah pilu Gilang Dirga pas kehilangan Ace, sempat curhat di podcast Ivan Gunawan soal perjuangan jadi orang tua
  • Aktris muda Noa Nakada meninggal dunia di usia 23 tahun, padahal masih main di Ultraman Teo
  • SpongeBob Bakal Pindah ke RTV November 2026? Warga Lagi Rame Bahas Rumor Ini

©2026 emka.web.id | Design: Newspaperly WordPress Theme