FrontPage > UNIX > Linux > CentOS
RedHat Enterprise Linuxの互換(クローンOS)
RedHatのロゴ部分、ライセンスに関わる部分はRHELと異なるが、
RHELのソースを元に作成されているため。
機能 | CentOS6 | CentOS7 | CentOS8 | 備考 |
サポート期限 | 2020/11/30 | 2024/6/30 | 2021/12/31 | |
ファイルシステム | ext4 | xfs | ||
アプリアップデート | yum | yum | dnf | yumも「dnf(dnf-3)」にリンクあり |
IP設定 | ifconfig | ip address show | ip address show | 略称:ip a s |
IP追加 | ifconfig add | ip address add | ip address add | 略称:ip a a |
IP削除 | ifconfig del | ip address del | ip address del | 略称:ip a d |
route | ip route | ip route | 略称:ip r | |
Bridge設定 | brctl | brctl+ip link | ip link | brctl[bridge-utils]、ip[iproute2]、略称:ip l |
Bridge表示 | brctl show | brctl show | bridge link show | |
Bridge追加 | brctl addbr | brctl addbr | ip link add | |
Bridge削除 | brctl delbr | brctl delbr | ip link del | |
ARPテーブル表示 | arp | ip neighbor show | ip neighbor show | 略称:ip n s |
インターフェイス等の表示 | netstat | ss | ss | |
パケットフィルタ | iptables | firewalld + iptables | ebtables | iptables[iptables-services] |
NTP設定 | ntp | ntp+chrony | chrony | |
NTP設定確認 | ntpq -p | chronyc sources | chronyc sources | |
サービス設定 | service | systemctl | systemctl | |
サービス自動起動設定 | chkconfig | systemctl | systemctl | |
GUIでネットワーク設定 | nmtui | nmtui | ||
CUIでネットワーク設定 | nmcli | nmcli |
最新版
バージョン | バージョン | 確認日 | サポート期限 |
CentOS Stream | CentOS Stream 8 | 2021/10 | 2024/05/31 |
CentOS 8 | CentOS 8.4.2105 (8.4) | 2021/06 | 2021/12/31 |
CentOS 7 | CentOS 7.9-2009 (7.9) | 2020/11 | 2024/06/30 |
CentOS 6 | CentOS 6.10 | 2018/06 | 2020/11/30 |
CentOS 5 | CentOS 5.11 | 2014/09 | 2017/03/31 |
※バーションでコマンドが多々変わったりする。Linuxコマンド比較
CentOS 8(2105) → 2021/05 (CentOS 8.4) | RHEL 8.4 |
CentOS 8(2011) → 2020/11 (CentOS 8.3) | RHEL 8.3 |
CentOS 8(2004) → 2020/04 (CentOS 8.2) | RHEL 8.2 |
CentOS 8(1911) → 2019/11 (CentOS 8.1) | RHEL 8.1 |
CentOS 8(1905) → 2019/05 (CentOS 8.0) | RHEL 8.0 |
CentOS 7(2009) → 2020/09 (CentOS 7.9) | RHEL 7.9 |
CentOS 7(2003) → 2020/03 (CentOS 7.8) | RHEL 7.8 |
CentOS 7(1908) → 2019/08 (CentOS 7.7) | RHEL 7.7 |
CentOS 7(1810) → 2018/10 (CentOS 7.6) | RHEL 7.6 |
CentOS 7(1804) → 2018/04 (CentOS 7.5) | RHEL 7.5 |
CentOS 7(1708) → 2017/08 (CentOS 7.4) | RHEL 7.4 |
CentOS 7(1611) → 2016/11 (CentOS 7.3) | RHEL 7.3 |
CentOS 7(1511) → 2015/11 (CentOS 7.2) | RHEL 7.2 |
CentOS 7(1503) → 2015/03 (CentOS 7.1) | RHEL 7.1 |
CentOS 7(1406) → 2014/06 (CentOS 7.0) | RHEL 7 |
CDからブート起動可能な「Live CD」が提供されている。
ちょっと試したい場合、システムが壊れて復旧させたい時などに使用できます。
redhat-releaseを元にインストールチェックしているアプリは、 下記でインストール可能となる。(Oracle等!?)
「/etc/redhat-release」 CentOS 4.0 (final) ↓ Red Hat Enterprise Linux AS release 4 (Nahant)
※現状の「RHEL 5.2」と「CentOS 5.2」では大部分変更されているので、 「/etc/redhat-release」のみの変更だけで無く、パッケージ変更も必要だと思われる。
引用「http://japan.internet.com/linuxtutorial/20050513/5.html」
[CentOS 8.4] # cat /etc/redhat-release CentOS Linux release 8.4.2105
[CentOS 8.2] # cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core)
[CentOS 7.8] # cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)
[CentOS 7.3] # cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
[CentOS 7.2] # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core)
[CentOS 6.9] # cat /etc/redhat-release CentOS release 6.9 (Final)
[CentOS 6.8] # cat /etc/redhat-release CentOS release 6.8 (Final)
# vi /etc/udev/rules.d/70-persistent-net.rules # reboot
# ntpdate [NTPサーバ] # hwclock -w
# timedatectl # chronyc sourcesハードウェアクロックとシステムクロックが存在する。
# yum clean all # yum upgradeキャッシュをクリアすると旨く行く場合がある。