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

January 9, 2009

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

パッケージ管理

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

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

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

1
# apt-get install system-rc-conf

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

1
# sysv-rc-conf

サービスの操作

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

1
# apt-get install debian-helper-scripts

tilfin freelance software engineer