Tired of Install Nightmares? 10‑Minute Linux Distribution Setup Guide
This article walks through Linux package‑manager families, shows apt, yum/dnf and pacman command basics, explains how to configure fast domestic mirrors, details source‑code compilation steps, common errors and fixes, and lists essential tools for new systems.
1. Identify Your Distribution Family
Linux distributions fall into three package‑manager families: Debian‑based (.deb, apt / apt-get), Red Hat‑based (.rpm, yum or dnf) and Arch‑based ( pacman). The article shows how to check the family with cat /etc/os-release.
2. Debian/Ubuntu apt Commands
Provides a quick‑reference table of common apt commands (update, upgrade, install, remove, purge, autoremove, search, show). Explains that apt is the newer, more user‑friendly front‑end while apt-get remains stable for scripts.
Example: installing and starting Nginx with sudo apt update, sudo apt install nginx -y, then using systemctl to check status, start and enable at boot.
3. Red Hat/Yum/Dnf Commands
Describes yum for CentOS 7 and earlier, and dnf for CentOS 8/Fedora, noting that on CentOS 8 the yum command forwards to dnf for compatibility. Shows equivalent command list for install, remove, search, info, update.
Highlights the EPEL repository as a common source of extra packages, with commands to install it on CentOS 7 ( sudo yum install epel-release -y) and CentOS 8/Stream ( sudo dnf install epel-release -y).
4. Arch pacman Commands
Lists concise pacman commands for system sync, install, remove, recursive remove, search and query. Introduces the AUR and the helper yay for installing community packages such as Google Chrome.
5. Configuring Domestic Mirrors
Shows how to replace default overseas mirrors with Chinese mirrors (Tsinghua, Aliyun, etc.) for Ubuntu, CentOS and Arch, including backup steps and sample sources.list entries. Reports a measured speed increase from ~50 KB/s to ~15 MB/s (≈300×).
6. Source Compilation
Outlines the three‑step GNU Autotools workflow ( ./configure, make, sudo make install) and gives a complete example compiling Redis 7.0 from source, including downloading, extracting, building, installing, and creating symlinks.
Lists typical compilation errors (missing gcc, missing OpenSSL library) and the corresponding package‑install fixes for Debian/Ubuntu ( sudo apt install build-essential, sudo apt install libssl-dev) and CentOS/RHEL ( sudo yum groupinstall "Development Tools", sudo yum install openssl-devel). Summarizes pros and cons of compiling versus using a package manager.
7. Recommended Essential Tools
Provides command snippets to install a baseline set of utilities (vim, git, curl, wget, htop, tree, net‑tools) and development tools (Python 3, Node.js via nvm, Docker, zsh + oh‑my‑zsh, tmux, fzf, sysstat, iotop, traceroute, etc.) across the three families.
8. Summary and Advice
Reiterates four practical recommendations: prefer the native package manager, switch to a domestic mirror immediately, read error messages carefully, and keep a personal command notebook.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
AI Agent Super App
AI agent applications, installation, large-model testing, computer fundamentals, IT operations and maintenance exchange, network technology exchange, Linux learning
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
