YouTube Icon

Interview Questions.

Top 100+ Rpm Package Manager (rpm) Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Rpm Package Manager (rpm) Interview Questions And Answers

Question 1. How To Install Rpm In Linux?

Answer :

#rpm –ivh package deal name

// to install a RPM we want to use -i alternative.

Question 2. How To Remove A Rpm?

Answer :

#rpm -e bundle call

// to remove a RPM file we need to use -e choice.

Networking Interview Questions
Question three. How To Upgrade A Rpm?

Answer :

#rpm -Uvh package deal call

// To improve a RPM we need to use -U option.

Question 4. How To Check Installed Rpm?

Answer :

#rpm -qa package deal name

// To listing or discover an hooked up RPM we want to apply -q alternative.

Networking Tutorial
Question 5. How To List All Files Of An Installed Rpm Package?

Answer :

#rpm -ql bundle name

// To list all documents of set up rpm we want to apply -ql (query listing) choice.

FTP Script Interview Questions
Question 6. How To Install A Rpm Package Without Dependencies?

Answer :

#rpm -ivh –nodeps packagename

// To set up a RPM with none dependencies we want to use –nodeps alternative.

Question 7. How To Check Dependencies Of Rpm Package Before Installing?

Answer :

#rpm -qpR package deal name

// To check the dependency for a RPM we need to use -qpR alternative.

-q: Query a package

-p: List skills this package deal provides.

-R: List skills on which this bundle depends.

Unix/Linux Tutorial Linux File Systems Interview Questions
Question 8. How To Check An Rpm Signature For A Package?

Answer :

#rpm –checksig packagename.Rpm

// We want to use the choice –checksig for signature verification.

Question nine. How To List Recently Installed Rpm Packages?

Answer :

#rpm -qa –last

// To list lately mounted RPM we need to use –last alternative.

Ansible (software) Interview Questions
Question 10. How To Query A File That Belongs Which Rpm Package?

Answer :

#rpm -qf /and so forth/passwd

// To discover a document owned with the aid of which package deal.

Unix makefile Tutorial
Question 11. Get The Information Of Rpm Package Before Installing?

Answer :

#rpm -qip packagename.

Advanced Linux Interview Questions
Question 12. How To Verify A Rpm Package?

Answer :

#rpm -Vp

// To verify the established RPM.

Networking Interview Questions
Question thirteen. How To List All Imported Rpm Gpg Keys?

Answer :

#rpm -qa gpg-pubkey.

Question 14. How To Remove An Rpm Package Without Dependencies?

Answer :

#rpm -ev –nodeps package deal call // same –nodeps alternative we want to use.

Question 15. How To Rebuild Corrupted Rpm Database?

Answer :

# cd /var/lib

# rm __db*

# rpm –rebuilddb

# rpmdb_verify Packages

Unix/Linux Interview Questions
Question sixteengrep package_name

Ex:

[root@mylinz ~]# rpm -qa yum

yum-3.2.27-14.El6.Noarch

[root@mylinz ~]# rpm -qa zero.9.1-five.El6.Noarch

yum-utils-1.1.26-11.El6.Noarch

yum-metadata-parser-1.1.2-14.1.El6.X86_64

yum-three.2.27-14.El6.Noarch

PackageKit-yum-zero.Five.Eight-thirteen.El6.X86_64

PackageKit-yum-plugin-0.5.8-thirteen.El6.X86_64

[root@mylinz ~]#

Question 17. How To Install Specific Software Package Using Rpm Command On Redhat Linux?

Answer :

rpm –ivh bundle name

Oracle Retail Merchandising System Interview Questions
Question 18. How To Remove The Software Package From On Red Hat Linux?

Answer :

rpm -eV package_name

FTP Script Interview Questions
Question 19. How To Upgrade The Existing Red Hat Package Using Rpm Command?

Answer :

rpm -Uvh package_name

Question 20. How To Display The List Of Installed Software Package’s Files?

Answer :

rpm -ql package_name 

Ex:

[root@mylinz ~]# rpm -ql yum-rhn-plugin-zero.Nine.1-5.El6.Noarch

/etc/yum/pluginconf.D/rhnplugin.Conf

/usr/proportion/doc/yum-rhn-plugin-0.Nine.1

/usr/proportion/doc/yum-rhn-plugin-0.9.1/LICENSE

/usr/percentage/locale/ar/LC_MESSAGES/yum-rhn-plugin.Mo

/usr/share/locale/as/LC_MESSAGES/yum-rhn-plugin.Mo

/usr/proportion/locale/bg/LC_MESSAGES/yum-rhn-plugin.Mo

/usr/percentage/locale/bn/LC_MESSAGES/yum-rhn-plugin.Mo

Unix Shell Scripting Interview Questions
Question 21. How To Find Files Belongs To Which Rpm Package?

Answer :

rpm -qf file_location  

Ex:

[root@mylinz ~]# rpm -qf /etc/yum.Conf

yum-three.2.27-14.El6.Noarch

[root@mylinz ~]#

Question 22. How To Display List Of Configuration Files For Specific Package?

Answer :

rpm -quality controls package_name

Ex:

[root@mylinz ~]# rpm -quality control yum

/etc/logrotate.D/yum

/and many others/yum.Conf

/and so forth/yum/version-organizations.Conf

[root@mylinz ~]#

Question 23. How To Get The List Of Dependencies For Specific Rpm File?

Answer :

rpm -qpR rpm_file

Ex:

[root@mylinz ~]# rpm -qpR nautilus-sendto-2.28.2-three.El6.X86_64.Rpm

/bin/sh

/bin/sh

/bin/sh

GConf2

GConf2

GConf2

libORBit-2.So.Zero()(64bit)

libatk-1.0.So.0()(64bit)

libbonobo-2.So.0()(64bit)

libbonobo-activation.So.Four ()(64bit)

yum Interview Questions
Question 24. How To Get The List Of Dependencies For Specific Package?

Answer :

rpm -qR package_name

Ex:

[root@mylinz ~]# rpm -qR yum

/usr/bin/python

config(yum) = 3.2.27-14.El6

pygpgme

python >= 2.Four

python(abi) = 2.6

python-iniparse

python-sqlite

python-urlgrabber >= three.9.0-eight

rpm >= 0:four.Four.2

rpm-python

rpmlib(Compressed Filenames) <= 3.0.Four-1

rpmlib(File Digests) <= four.6.Zero-1

rpmlib(PartialHardlinkSets) <= four.Zero.4-1

rpmlib(PayloadFilesHavePrefix) <= 4.0-1

yum-metadata-parser >= 1.1.0

rpmlib(PayloadIsXz) <= five.2-1

[root@mylinz ~]#

Linux File Systems Interview Questions
Question 25. How To Remove The Package Without Checking The Dependencies On Red Hat Linux?

Answer :

rpm -ev –nodeps package_name




CFG