Skip to content
Search Fedora

    Browse this documentation

    Migrating from Ubuntu or Arch to Fedora: commands and mental models

    The real migration cost is not different commands — it is a different mental model. This page is organised as: what you know → the Fedora equivalent → where assumptions break.

    What you knowFedora 45 equivalentNotes
    apt update && apt upgradednf upgrade --refreshdnf5 merges the two
    apt install pkgdnf install pkg
    apt remove pkgdnf remove pkg
    apt search pkgdnf search pkg
    apt list --installedrpm -qa or dnf list --installed
    apt show pkgdnf info pkg
    apt autoremovednf autoremove
    apt purge pkgdnf remove pkg + manual config cleanupdnf has no purge concept
    apt-file search pathdnf provides "*/path"
    apt historydnf historycan undo/rollback a single transaction
    pacman -S / -R / -Ssdnf install / remove / search
    pacman -Syudnf upgrade —refresh
    pacman -Qo filerpm -qf file
    pacman -Qdtdnf repoquery —unneeded
    Ubuntu wayFedora wayMental shift
    PPA (add-apt-repository)COPR (dnf copr enable user/project)COPR is hosted by Fedora infrastructure with automated builds — no “personal PPA disappeared” problem
    AURa large official repo + COPR + FlatpakFedora’s official coverage far exceeds Ubuntu main
    third-party repo + keysame pattern: rpm --import + /etc/yum.repos.d/*.reposame discipline: gpgcheck always on
    snap (preinstalled on Ubuntu)Flatpak (F45 ships it with flathub configured)Fedora does not push snap; snapd exists in the repos but is not default

    Arch users: Fedora has no AUR-style “everything packaged”. Rare software: dnf search first, then COPR, then Flatpak, and only as a last resort upstream rpm/deb conversion (not recommended).

    What you knowFedora’s way
    systemctl status appidentical
    /var/log/syslogjournalctl (no syslog file at all)
    /var/log/auth.logjournalctl -u sshd or journalctl _COMM=sshd
    ufwfirewalld (zones and services, not a plain port list)
    apparmorSELinux (enforcing by default, not comparable to disabling AppArmor)

    SELinux is the biggest mindset hurdle for migrants: it is Enforcing by default, files carry labels, ports have allowlists. When permissions look right but access is denied, run ls -lZ for labels and ausearch -m avc -ts recent for AVC denials — do not setenforce 0. Full story on the SELinux page.

    SymptomReality
    add-apt-repository not foundFedora uses dnf copr enable or a hand-written repo file
    /var/log/syslog missingjournald first; see journalctl
    driver installed but not activeFedora’s module signing/akmods machinery (NVIDIA on the gaming page)
    builds fail because versions are “too new”F45 carries the latest gcc/glibc; isolate old code in containers
    SymptomReality
    expecting rolling releaseFedora is a 6-month release cycle, but updates flow continuously within the 13-month window — not an “old version” like Ubuntu
    pacman -Syyu style forced refreshdnf distro-sync is the full alignment; forcing things corrupts the rpm database
    AUR helper habitsCOPR has no helper; script dnf copr enable + dnf install
    configs scattered under /etcsame, but SELinux labels must follow your configs (restorecon after changing service directories)
    Terminal window
    # 1. CN mirrors (optional, see /mirrors/)
    # 2. basics
    sudo dnf install -y git curl wget vim tmux htop
    # 3. RPM Fusion (prerequisite for multimedia/NVIDIA)
    sudo dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-45.noarch.rpm
    # 4. confirm SELinux (do not disable it)
    getenforce # Enforcing is expected
    # 5. Chinese input environment
    # see /chinese-input/
    SymptomCause
    dnf slowno mirror configured; but some sources (RPM Fusion) have no CN 45 mirror at all
    service fails with no log fileuse journalctl; there is no /var/log/*.log
    installed software’s command not foundstale PATH hash; hash -r or reopen the terminal
    disabling SELinux for convenienceloses mandatory access control; learning ausearch/restorecon pays off
    expecting apt’s recommends behaviourdnf installs weak dependencies by default; --setopt=install_weak_deps=False disables