Saturday, March 5, 2016

YUM Interview Questions and Answers in linux ?

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 update the package using yum ?
Answer: yum update package_ name

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

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

6.How to check the updates for yum repository ?
Answer:  yum checkupdate

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

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

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

10.How to know the particular files belongs to which package ?
Answer:  yum provides file_path
[root@linuxforfreshers ~]# yum provides
Loaded plugins: refreshpackagekit,
This system is not registered with RHN.
RHN support will be disabled.
el6.noarch : RPM
Repo : localinstallation
Matched from:
Filename : /etc/yum.conf
el6.noarch : RPM
Repo : installed
Matched from:
Other : Providesmatch:

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

No comments:

Post a Comment