Red Hat to Debian: Difference between revisions
From Leo's Notes
This page was last edited on 1 September 2019, at 06:20.
No edit summary |
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux" |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This page will list the major changes between RedHat and Debian, including commands, file pathes, and naming conventions. | This page will list the major changes between RedHat and Debian, including commands, file pathes, and naming conventions. | ||
== Commands == | == Commands == | ||
| Line 44: | Line 43: | ||
/etc/rc1.d | /etc/rc1.d | ||
... | ... | ||
|- | |||
| /etc/sysconfig/network | |||
| /etc/hostname , /etc/network/interfaces | |||
|- | |- | ||
| service http'''d''' restart | | service http'''d''' restart | ||
| Line 51: | Line 53: | ||
|} | |} | ||
=== OS Management === | |||
{|class="wikitable" | |||
|- | |||
! RedHat | |||
! Debian | |||
|- | |||
| cat /etc/redhat-release | |||
| lsb_release -a | |||
|} | |||
== Naming == | == Naming == | ||
| Line 62: | Line 74: | ||
| nogroup (group) | | nogroup (group) | ||
|} | |} | ||
{{Navbox Linux}}[[Category:Linux]] | |||
Latest revision as of 06:20, 1 September 2019
This page will list the major changes between RedHat and Debian, including commands, file pathes, and naming conventions.
Commands
Package Management
| RedHat | Debian |
|---|---|
| yum install | apt-get install |
| yum update | apt-get upgrade |
| yum clean all | apt-get update |
| yum search package | apt-cache search package |
| rpm -qa | dpkg -l |
| rpm -ivh package.rpm | dpkg -i package.deb |
| rpm -qf /path/to/file | dpkg -S /path/to/file |
Service Management
| RedHat | Debian |
|---|---|
| /etc/rc.d/init.d
/etc/rc.d/rc1.d ... |
/etc/init.d
/etc/rc1.d ... |
| /etc/sysconfig/network | /etc/hostname , /etc/network/interfaces |
| service httpd restart
service mysqld restart |
service http restart
service mysql restart |
OS Management
| RedHat | Debian |
|---|---|
| cat /etc/redhat-release | lsb_release -a |
Naming
User / Group Names
| RedHat | Debian |
|---|---|
| nobody (group) | nogroup (group) |