Package management is one of the important task in Linux Administration.Red Hat Package manager aka RPM provides robust package administration on Redhat Linux.It eliminates the manually building software and made the software installation & maintenance much easier than before. RPM has lot of front-end tools to resolve the dependencies to install any packages. In this article ,we will see about RPM package manager’s interview questions and Front end tool “yum” related interview questions. RPM&YUM are commonly used in Redhat Linux Environments.
RPM Package Management
1. How to check the installed software(rpm’s) on Redhat Linux ?
Answer: rpm -qa package_name (or) rpm -qa |grep package_name*
Answer: rpm -qa package_name (or) rpm -qa |grep package_name*
2. How to install specific software package using rpm command on Redhat Linux ?
Answer: rpm –ivh package_name
3. How to remove the software package from on Redhat Linux ?
Answer: rpm -ev package_name
4.How to upgrade the existing Redhat package using rpm command ?
Answer: rpm -Uvh package_name
5.How to display the list of installed software package’s files ?
Answer: rpm -ql package_name
Answer: rpm –ivh package_name
3. How to remove the software package from on Redhat Linux ?
Answer: rpm -ev package_name
4.How to upgrade the existing Redhat package using rpm command ?
Answer: rpm -Uvh package_name
5.How to display the list of installed software package’s files ?
Answer: rpm -ql package_name
6. How to get the installed software information like package version and short description of package ?
Answer: rpm -qi package_name
7.How to find files belongs to which rpm package ?
Answer:rpm -qf file_location
8.How to display list of configuration files for specific package ?
Answer:rpm -qc package_name
9.How to display a list of recently installed software ?
Answer:rpm -qa –last
10.How to get the list of dependencies for specific rpm file ?
Answer:rpm -qpR rpm_file
11.How to get the list of dependencies for specific package ?
Answer:rpm -qR package_name
12.How to remove the package without checking the dependencies on Redhat Linux ?
Answer:rpm -ev –nodeps package_name
Answer:rpm -ev –nodeps package_name
Yum – The RPM front-End tool – 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.
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
Answer:yum install package_name
3.How to configure yum repository in Redhat Linux ?
Answer:Here is the step by step guide
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
Answer:yum repolist
Find endorsed Motorola organization concentrates near you in . Find Location. You should enter your city to view Service Centers that are affirmed to fix your device.
ReplyDeleteBest mobile service centre.