Red Hat to Debian: Difference between revisions

From Leo's Notes
This page was last edited on 21 April 2013, at 20:19.
Created page with "This page will list the major changes between RedHat and Debian, including commands, file pathes, and naming conventions. == Commands == === Package Management === {| class..."
 
Line 21: Line 21:
| rpm -ivh package.rpm
| rpm -ivh package.rpm
| dpkg -i package.deb
| dpkg -i package.deb
|-
| rpm -qf /path/to/file
| dpkg -S /path/to/file
|}
=== Service Management ===
{|class="wikitable"
|-
! RedHat
! Debian
|-
| /etc/'''rc.d'''/init.d
/etc/'''rc.d'''/rc1.d
...
| /etc/init.d
/etc/rc1.d
...
|-
| service http'''d''' restart
service mysql'''d''' restart
| service http restart
service mysql restart
|}
|}

Revision as of 20:19, 21 April 2013

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
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 ...

service httpd restart

service mysqld restart

service http restart

service mysql restart