Skip to content

EN_Linux

somaz edited this page Dec 27, 2023 · 13 revisions

1. RedHat vs Debian (System)

Feature Red Hat Debian
Package Manager yum / dnf apt
Package Format RPM DEB
Release Cycle Fixed with RHEL; rolling with Fedora Stable release cycle with Testing & Unstable branches
Default Init System systemd systemd (since Debian 8 Jessie)
Supported Architectures Wide range, including IBM Z and Power Wide range, with focus on i386 and amd64
Security Updates Provided by Red Hat with subscription Provided by the Debian Security Team
Commercial Support Available from Red Hat Available through third parties
Community Fedora for community-driven innovation Debian is entirely community-driven
Enterprise Focus Strong with Red Hat Enterprise Linux Available via Debian stable

2. RedHat vs Debian (Commands and Package Management)

Action Debian (using APT) Red Hat (using YUM/DNF)
Install a package sudo apt install package_name sudo yum install package_name or sudo dnf install package_name
Remove a package sudo apt remove package_name sudo yum remove package_name or sudo dnf remove package_name
Search for a package apt search package_name yum search package_name or dnf search package_name
Update package index sudo apt update sudo yum check-update or sudo dnf check-update
Upgrade packages sudo apt upgrade sudo yum update or sudo dnf upgrade
Add a repository sudo add-apt-repository 'deb [options] url distribution component' sudo yum-config-manager --add-repo repository_url or sudo dnf config-manager --add-repo repository_url
Remove a repository sudo add-apt-repository --remove 'deb [options] url distribution component' sudo yum-config-manager --remove-repo repository_url or sudo dnf config-manager --remove-repo repository_url
List installed packages apt list --installed yum list installed or dnf list installed
Find out what package provides a file apt-file search filename yum provides filename or dnf provides filename
Automatic removal of unused packages sudo apt autoremove sudo yum autoremove or sudo dnf autoremove
View package information apt show package_name yum info package_name or dnf info package_name
Clean up package cache sudo apt clean sudo yum clean all or sudo dnf clean all
Verify Corrupted Dependencies sudo apt check sudo yum check or sudo dnf check

Clone this wiki locally