Using YUM

Yum is a package installer/remover for rpm systems. It can also update your system and is used mainly by Linux systems to simplify these tasks.

To list if you’ve a package installed: yum list installed

To list all packages in yum repository: yum list

To search for a package: yum search pkg; e.g. yum search kernel

To remove a package: yum remove pkg

To install a package(s): yum install pkg eg. yum install ksh

To setup a proxy for yum: vi /etc/yum.conf proxy=http://host:80

Any changes yum does to your system gets recorded in a file ,most likely at location /var/log/yum.log. We can occasionally clean up yum repository from stale files via running yum clean all 

References:

Advertisements