Fedora: upgrade and setup CJK fonts



  1. Update the current Fedora release.

    sudo dnf upgrade --refresh
    
  2. Update the system plugins.

    sudo dnf install dnf-plugin-system-upgrade
    
  3. Download the new Fedora release (e.g. Fedora 37).

    sudo dnf system-upgrade download --releasever=37
    

    Tip: If dnf upgrade returns the error "The operation would result in removing the following protected packages: kernel-surface", skip the kernel update using:

    sudo dnf upgrade --refresh --exclude="kernel-surface*"
    sudo dnf install dnf-plugin-system-upgrade
    sudo dnf system-upgrade download --releasever=37 --exclude="kernel-surface*"
    
  4. Reboot to upgrade the system.

    sudo dnf system-upgrade reboot
    
  5. Install uming and ukai fonts to display CJK characters.

    sudo dnf install cjkuni-ukai-fonts cjkuni-uming-fonts
    
  6. Modify or create the config file at /et/fonts/local.conf. Use the content from local.conf.

    Tip: To better rendering Japanese characters, install Google Noto fonts.