Differences between RedHat and Debian
From WBITT's Cooker!
(Difference between revisions)
m |
|||
| (7 intermediate revisions not shown) | |||
| Line 6: | Line 6: | ||
! RedHat | ! RedHat | ||
! Debian | ! Debian | ||
| + | |- | ||
| + | | Version | ||
| + | | /etc/redhat-release | ||
| + | | /etc/debian_release, lsb_release -a | ||
|- | |- | ||
| Package GUI | | Package GUI | ||
| Line 12: | Line 16: | ||
|- | |- | ||
| Package management | | Package management | ||
| - | | rpm | + | | rpm |
| - | | | + | | dpkg |
| + | |- | ||
| + | | Dependency Resolution | ||
| + | | yum, yumex(gui) | ||
| + | | apt-*, aptitude | ||
|- | |- | ||
| List packages | | List packages | ||
| - | | rpm -qa | + | | rpm -qa, yum list |
| - | | dpkg -l | + | | dpkg -l, dpkg --get-selections |
| + | |- | ||
| + | | List packages in repositories | ||
| + | | yum list installed package*, yum list available | ||
| + | | apt-cache search package | sort -k1 | grep ^package | ||
|- | |- | ||
| Which package a file belong to? | | Which package a file belong to? | ||
| Line 33: | Line 45: | ||
| Package Search | | Package Search | ||
| yum search ssh | | yum search ssh | ||
| - | | aptitude search ssh | + | | aptitude search ssh, apt-cache search qt | sort -k1 | grep ^qt |
|- | |- | ||
| Package installation | | Package installation | ||
| Line 41: | Line 53: | ||
| Package Removal | | Package Removal | ||
| yum remove openssh | | yum remove openssh | ||
| - | | aptitude remove openssh | + | | aptitude remove openssh , aptget remove openssh, apt-get purge openssh |
|- | |- | ||
| Interface configuration | | Interface configuration | ||
| Line 54: | Line 66: | ||
| service servicename start,stop,restart | | service servicename start,stop,restart | ||
| invoke-rc.d servicename start,stop,restart | | invoke-rc.d servicename start,stop,restart | ||
| + | |- | ||
| + | | Service add/remove | ||
| + | | chkconfig | ||
| + | | update-rc.d | ||
|- | |- | ||
| Apache Configuration | | Apache Configuration | ||
| Line 74: | Line 90: | ||
| service xinetd restart | | service xinetd restart | ||
| update-inetd (options) | | update-inetd (options) | ||
| + | |- | ||
| + | | DNS config file | ||
| + | | /etc/named.conf | ||
| + | | /etc/bind/named.conf | ||
| + | |- | ||
| + | | DNS service file | ||
| + | | /etc/init.d/named | ||
| + | | /etc/init.d/bind9 | ||
|} | |} | ||
| + | |||
| + | Also check: https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora | ||
Current revision as of 08:18, 17 April 2015
The following is the summary of different ways of doing similar tasks in RedHat and Debian.
| Task | RedHat | Debian |
|---|---|---|
| Version | /etc/redhat-release | /etc/debian_release, lsb_release -a |
| Package GUI | KPackageKit, yumex | Synaptic Package Manager |
| Package management | rpm | dpkg |
| Dependency Resolution | yum, yumex(gui) | apt-*, aptitude |
| List packages | rpm -qa, yum list | dpkg -l, dpkg --get-selections |
| List packages in repositories | yum list installed package*, yum list available | sort -k1 | grep ^package |
| Which package a file belong to? | rpm -qf filepath | dpkg -S filepath |
| Package installation from an available package file | rpm -ivh packagefile.rpm | dpkg -i packagefile.deb |
| Remove package | rpm -e packagename | dpkg -r packagename |
| Package Search | yum search ssh | sort -k1 | grep ^qt |
| Package installation | yum install openssh | aptitude install openssh |
| Package Removal | yum remove openssh | aptitude remove openssh , aptget remove openssh, apt-get purge openssh |
| Interface configuration | /etc/sysconfig/network-scripts/* | /etc/network/interfaces |
| Network service | /etc/init.d/network restart | /etc/init.d/networking restart |
| Service Start/stop | service servicename start,stop,restart | invoke-rc.d servicename start,stop,restart |
| Service add/remove | chkconfig | update-rc.d |
| Apache Configuration | /etc/httpd/* | /etc/apache2/* |
| Apache Log files | /var/log/httpd/* | /var/log/apache2/* |
| Apache Default Document Root | /var/www/html | /var/www/www-data |
| xinetd | /etc/xinetd.d/* | /etc/inetd.conf |
| xinetd | service xinetd restart | update-inetd (options) |
| DNS config file | /etc/named.conf | /etc/bind/named.conf |
| DNS service file | /etc/init.d/named | /etc/init.d/bind9 |
Also check: https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora

