0% found this document useful (0 votes)
35 views1 page

(Local-Installation) Name Yum-Local Baseurl File:///home/repo/yum Enabled 1 Gpgcheck 0

The document provides answers to questions about how to use RPM and YUM package management tools in Red Hat Linux. It describes commands for checking installed packages, installing, upgrading, removing packages, listing files and dependencies, and finding which package a file belongs to. It also defines YUM as a front-end tool that automates RPM commands and resolves dependencies, and explains how to configure a local YUM repository.

Uploaded by

rjadhav155
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

(Local-Installation) Name Yum-Local Baseurl File:///home/repo/yum Enabled 1 Gpgcheck 0

The document provides answers to questions about how to use RPM and YUM package management tools in Red Hat Linux. It describes commands for checking installed packages, installing, upgrading, removing packages, listing files and dependencies, and finding which package a file belongs to. It also defines YUM as a front-end tool that automates RPM commands and resolves dependencies, and explains how to configure a local YUM repository.

Uploaded by

rjadhav155
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. How to check the installed software(rpms) on Redhat Linux ?

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. 5.How to display the list of installed software packages files ?
Answer: rpm -ql package_name
6. How to get the installed software information like package version and short
description of package ?
7. Answer: rpm -qi package_name
8. How to find files belongs to which rpm package ?
9. Answer:rpm -qf file_location
10. How to display list of configuration files for specific package ?
11. Answer:rpm -qc package_name
12. How to display a list of recently installed software ?
13. Answer:rpm -qa last
14. How to get the list of dependencies for specific rpm file ?
15. Answer:rpm -qpR rpm_file
16. How to get the list of dependencies for specific package ?
17. Answer:rpm -qR package_name
18. How to remove the package without checking the dependencies on Redhat Linux ?
Answer:rpm -ev nodeps package_name
19. 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.
20. How to configure yum repository in Redhat Linux ?
Go to /etc/yum.repos.d and create file with any name with .repo extension
This file contains:[local-installation]
name=yum-local
baseurl=file:///home/repo/yum
enabled=1
gpgcheck=0

You might also like