Just try to install package and it will give you list of dependencies. However RPM has in build mechanism to tell you about dependencies. It will print list of dependencies on screen (output): mod_php it will tell you what you need to install package with following command:įind out what dependencies a uninstalled rpm file called : However, there might be scenarios when the RPM package for a certain software might not be officially available in the repository, in which case we can use YUM or DNF to install it as explained above.You can finding out what dependencies a rpm file has i.e. The usual way to install packages is to install them directly from the repository. In this article, we learned how to install an RPM package in CentOS, RHEL, and Fedora. ![]() This package manager works exactly the same as YUM, and you can simply replace YUM with DNF in the commands explained previously to install a package. Note that, in the newer CentOS version, an updated version of YUM is available, called DNF (short for Dandified YUM). However, then it would not install the dependencies (shown in the screenshots above) automatically, and the user would need to download and install them manually. Some packages could also be installed with the rpm file. $ sudo yum updateįollowing is the syntax for installing an RPM file using YUM: $ sudo yum install rpm_filename.rpmįor example, to install the RPM package for the tool called ‘ abc-devel‘ ( Digital logic design tool), we can run: $ sudo yum install 7.x86_64.rpm Installing an RPM Packageīefore calling the yum command to install the package, run the following command to update the index files for the package list of YUM, so that the latest versions can be installed. Let’s see how to install a downloaded RPM package file using the yum package manager in CentOS, RHEL, and Fedora.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |