Linux, the best open source operating system has different methods to install a program based on its distribution. Package managers and software repositories are involved in Linux with which can compile and install easily on Linux. Using these package managers will help us to manage to install, update, remove and manage their dependencies easily.
In this topic we will discussing one of Red Hat’s open source package manager tool called ”YUM”, which stands for Yellowdog Updater.
The archive of files related to single function or software or product in compressed format considered as linux package.
E.g.:The default Red Hat Linux package installation tool is RPM (Redhat Package Manager).
Each linux distribution will have their hosted software repositories which have the compiled linux packages. The software repository stores all the linux packages in a server and multiple mirrors are created by different organisations to host software repositories to make packages widely available. Tools like yum in redhat and apt-get in debian will show the list of packages that are available in a connected repository based on the configuration of linux system.
Package manager installs the appropriate package based on the command. It checks with the configured software repository and finds the latest suitable version and installs automatically with required dependencies. It also handles updates when the update is available for the application.
YUM repository management
YUM is a repository management tool which will fetch the appropriate package for your red hat based central repository. Based on the URL’s in configuration files, server or system will be connected to software repository to fetch suitable rpm linux package. So with YUM command simply, the server can connect to central repository to download rpm packages and its dependencies to install or update the linux packages.
We have .repo files located under /etc/yum.repos.d/ folder to connect to software repository. And it is recommended to create individual .repo files to connect to each software repository and download multiple applications.