Compares common sysadmin actions between Debian based and RedHat based systems.

Work in Progress

Installing Development Tools

Debian RedHat
 apt-get build-essential
yum groupinstall 'Development Tools'

Configuring a Static IP

Debian Redhat
/etc/network/interfaces
auto eth1
iface eth1 inet static
   address 10.1.1.1/25
/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
NAME=eth1
BOOTPROTO=none
ONBOOT=yes
PREFIX=25
IPADDR=10.1.1.1
USERCTL=no
NM_CONTROLLED=no

Configure a Trunk. Assign a trunk subinterface with a static IP

Ensure that the 802.1q kernel module is loaded.

Debian Redhat
/etc/network/interfaces
auto eth1
iface eth1 inet manual
   up ip link set $IFACE up
   down ip link set $IFACE down

auto eth1.10
iface eth1.10 inet static
  address 10.1.1.1/25
/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
NAME=eth1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
/etc/sysconfig/network-scripts/ifcfg-eth1.10
DEVICE=eth1.10
NAME=eth1.10
BOOTPROTO=none
ONBOOT=yes
PREFIX=25
IPADDR=10.1.1.1
USERCTL=no
NM_CONTROLLED=no
VLAN=yes

Find a Package associated with a particular file

Debian Redhat
$ dpkg -S /usr/bin/nice
coreutils: /usr/bin/nice
$ rpm -qf /usr/bin/nice
coreutils-8.22-12.el7_1.2.x86_64