Compatibility of commands between Fedora/RedHat/CentosStream
Hallo Guys,
what is the compatibility level of commands in command prompt between these 3 systems:
- RedHat EL 9
- CentosStream 9
- Fedora 36/37
This question appeared during discussion. As I was able to provide examples for THE SAME syntax and structure for Fedora/RHEL, I was not able to confirm the same for CentosStream.
Example below for Cockpit (https://cockpit-project.org/running):
Fedora:
sudo dnf install cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
RHEL:
sudo yum install cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
Centos
sudo yum install cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
In RHEL I can replace yum/dnf but in which way goes CentosStream?
Can I expect 100% compatibility in case of commands or it is more wishful thinking?
This question is to prepare several scripts to install/set/config.
Why such question appeared?
Because of some testing is done on Fedora, some on Centos and some on RHEL. It is good to have the same scripts.
Is it possible across all possible versions: Fedora/CentosStream/RHEL/Centos-Alma-Rocky?
Vg
T.