Differences between RedHat and Debian

From WBITT's Cooker!

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
! RedHat
! RedHat
! Debian
! Debian
 +
|-
 +
| Package GUI
 +
| KPackageKit, yumex
 +
| Synaptic Package Manager
 +
|-
 +
| Package management
 +
| rpm, yum, yumex(GUI)
 +
| dpkg, apt-*, aptitute
|-
|-
| List packages
| List packages
Line 11: Line 19:
| dpkg -l
| dpkg -l
|-
|-
-
| Package sources
+
| Which package a file belong to?
-
| /etc/yum.respos.d/
+
| rpm -qf filepath
-
| /etc/apt/sources.list
+
| 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
 +
| aptitude search ssh
 +
|-
 +
| Package installation
 +
| yum install openssh
 +
| aptitude install openssh
 +
|-
 +
| Package Removal
 +
| yum remove openssh
 +
| aptitude remove openssh
|-
|-
| Interface configuration
| Interface configuration

Revision as of 10:04, 21 March 2011

The following is the summary of different ways of doing similar tasks in RedHat and Debian.

Task RedHat Debian
Package GUI KPackageKit, yumex Synaptic Package Manager
Package management rpm, yum, yumex(GUI) dpkg, apt-*, aptitute
List packages rpm -qa dpkg -l
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 aptitude search ssh
Package installation yum install openssh aptitude install openssh
Package Removal yum remove openssh aptitude remove 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
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
Personal tools