CentOS に慣れた人が Ubuntu を使うときの管理コマンドの対応メモ

UbuntuVMWare 版を使う機会があったので、メモを書いておく。
要するに Fedora (Redhat) と Debian の対応の話です。

パッケージ管理

Redhatyum は、Debian では apt
なお、Redhat 系でも apt を使うことはできる。http://ayo.freshrpms.net/

サービスのランレベルに応じた起動管理

Redhatchkconfig は、Debian では sysv-rc-conf
Ubuntu (VMWare) には sysv-rc-conf が入っていなかったのでインストール。

# apt-get install system-rc-conf

sysv-rc-conf は chkconfig と異なり、コマンドベースではなく表を直接編集できる。

# sysv-rc-conf

サービスの操作

もちろん、/etc/init.d/service で扱える。
DebianRedhatservice を使うには、debian-helper-scripts をインストールすると使える。

# apt-get install debian-helper-scripts