-
1. What Is Yum Server ?
The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Though yum has a command-line interface, several other tools provide graphical user interfaces to yum functionality. Yum allows automatic updates, package and dependency management, on RPM-based distributions. Like the Advanced Packaging Tool (APT) from Debian, yum works with software repositories (collections of packages), which can be accessed locally or over a network connection.
Advantages of Yum Server:
- Automatic resolution of software dependencies. If a package installation or upgrade request is made and requires the installation or upgrade of additional packages, YUM can list these dependencies and prompt the user to install or upgrade them.
- Command-line and graphical versions. The command-line version can be run on a system with a minimal number of software packages. The graphical versions offer ease-of-use and a user-friendly graphical interface to software management.
- Multiple software locations at one time. YUM can be configured to look for software packages in more than one location at a time.
-
2. How To Install Packages Using Yum ?
yum install package_name
-
3. How To Update The Package Using Yum ?
yum update package_ name
-
4. How To Search The Package In Yum ?
yum search package_name
-
5. How To Remove The Package Using Yum ?
yum remove package_name
-
6. How To Check The Updates For Yum Repository ?
yum check-update
-
7. How To Update The Yum Repo ?
yum update
-
8. How To Get The Package Information Using Yum ?
yum info package_name
-
9. How To List The Installed Packages On Redhat Linux Using Yum Command ?
yum list installed
-
10. How To Know The Particular Files Belongs To Which Package ?
yum provides file_path
Ex:
[root@mylinz ~]# yum provides /etc/yum.conf
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
yum-3.2.27-14.el6.noarch :
RPM installer/updaterRepo
: local-installationMatched from:
Filename :
/etc/yum.confyum-3.2.27-14.el6.noarch :
RPM installer/updaterRepo
: installedMatched from:
Other
: Provides-match: /etc/yum.conf -
11. How To List The Enabled Repositories ?
yum repolist
-
12. Which Option Is Required To Assume The Answer “yes” To Any Questions Asked During Installation Of Package Dependencies For Yum?
The “-y” option is used to assume the answer “yes”.
For Example:
yum -y install squid
Networking Interview Questions
Networking Tutorial
Linux Interview Questions
Linux Tutorial
Domain Name System(DNS) Interview Questions
CheckPoint Firewall Interview Questions
Secure Shell (SSH) Interview Questions
Networking Interview Questions