All about yum command for Redhat/Centos/Fedora

Display List of updated software ( Security fix)

yum list updates
Or
yum check-update

Patch up system by applying all updates

yum update

List all installed packages

rpm -qa

How to find a perticular installed packages( httpd)

rpm -qa | grep httpd

How to look update for specific packages

yum update {package-name-1}

To check for and update httpd package, enter:

yum update httpd

How to install packages by yum

yum install package-name
example : yum install httpd

How to exclude package name from update

yum --exclude=packagename* update

How to check for yum updates automatically by bash script:
http://fosiul.co.uk/index.php/2009/08/bash-script-to-check-for-automatic-yum-updates/
Will be continue….

Leave a Reply