RPM(Red Hat Manager)
 
- RPM is a low-level package manager of RHEL-based Linux system ,that is used to install, install ,update, remove and verify software packages. It mange .rpm(example: package.rpm) packages files, do not resolve the dependencies automatically and used manual installation and troubleshooting.
 
RPM options:-
rpm  -ivh   pacakge.rpm => install the package
-i = install
-v = verbose output(detailed information)
-h = show download progress.
rpm -qa =>  list all installed package
-q= querry
-a= all
 => verify the system modifed or not(auditing purpose)
rpm -Vf /path/to/package-file

output meanings:-
S- file size changed
M- permission changed
D - device major/minor number changed
L - sym link changed
U- user ownership changed
G - group ownership changed
c - configuration  changed
T- Timestamp changed ( file modified date/time)
5 - MD5 checksum changed(file content changed)
.  - Nothing changed 
rpm -ev package-name  =>  remove the pacakges
rpm -qf package-name => find out which package a file belong to

rpm -Fvh mypackage.rpm => -F is used for freshening installed package ( if already installed , it will be upgrade it)
-l   =>  list file installed package
-qi   =>  get info about package.
YUM(yellowdog updater, modified)
- YUM is a package manager for RPM based linux system ,that automatically resolve dependencies when installing , updating, or removing software.
 - YUM configuration file location => 
/etc/yum.conf or/etc/yum.repo.d(later we will discuss local repo creation for offline package installation) YUM options:- 
yum clean all => clean the  yum cache directory 
yum list all=>  To show all available installed and  available packages 
yum list installed => To show all available installed  packages .
yum install telnet =>  To install  particular package
yum remove telnet =>  To remove  particular package
yum search httpd =>  To search    httpd related package give format like package name and description , summaries. 
yum list httpd  => check  httpd installed or not and what are the version package is available
yum info  httpd =>  Details  about  httpd 
 =>  list the enabled repositories
yum  repolist
$ sudo yum update => update  
dnf (Dandified YUM)
-  It's faster, more reliable and handle dependencies better than yum . Syntax is almost same as yum .dnf faster and handling dependencies improved.
sudo dnf install httpd -y=> Auto confirmation 
dnf list intalled  | grep httpd =>  check if package already installed or not.