# CentOS

CentOS specific commands which differs from debian

# Iptables

iptables-save > /etc/sysconfig/iptables
1

# OS Version

cat /etc/system-release
CentOS Linux release 7.6.1810 (Core)
1
2

# Yum

yum install httpd
yum remove  postgresql.x86_64
yum update postgresql.x86_64
yum search firefox
yum info samba-common.i686

yum groupinstall 'DNS Name Server'

yum repolist

yum check-update

yum list | less
yum list installed | less
yum provides /etc/sysconfig/nf
yum grouplist

yum list installed | grep unzip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

to be updated...