Yum – Interview Questions

1. What is yum  ?
Answer: yum is yellow update manager which is a front end tool for package management.
All the rpm commands activity can be carried out using yum command in automated way.
Yum mechanism will automatically resolve the dependencies unlike rpm commands.

2. How to install packages using yum ?
Answer:yum install package_name


3.How to configure yum repository in Linux ?
Answer: createrepo -o <Package folder Path > .

4.How to update the package using yum ?
Answer:yum update package_ name

5.How to search the package in yum ?
Answer:yum search package_name

6.How to remove the package using yum ?
Answer:yum remove package_name

7.How to check the updates for yum repository ?
Answer:yum check-update


8.How to update the yum repo ?
Answer:yum update

9.How to get the package information using yum ?
Answer:yum info package_name

10.How to list the installed packages on Redhat linux using yum  command ?
Answer:yum list installed

11.How to know the particular files belongs to which package ?
Answer:yum provides file_path

12.How to list the enabled repositories ?
Answer: yum repolist