

Yes, we can use YUM to install RPM packages, the benefit of this command as told above, it has the capability to download & install the dependencies a software needs while installing it on CentOS 8/7/6 or RHEL 8/7/6 based Linux systems…Įxample: How to use it yum install php-5.4.86_64.rpm

Use RPM to list all installed packagesįor information to see what are the packages currently installed on your system you can use this command: rpm -qaįurthermore, to see the total number of packages installed on your system in figures we can use a command: rpm -qa | wc -l Yum command to install rpm with dependencies

The difference is the flag used with the RPM command i.e -e for uninstalling whilst if you use -i, the same command will use to install. If you want to use the same RPM command to uninstall or remove some installed package or software then it will be like this:Įxample to use it: rpm -e php-5.4.86_64.rpm Httpd is needed by php-5.4.86_64 RPM uninstall command The output for the above command: ~]# rpm -i php-5.4.86_64.rpm If you have some packages that need some extra packages while installing it, use the YUM command shown in this article. So, in this way, we can simply use RPM command to install any rpm packages, however, it not resolve the dependencies of any packages require and gives error most of the time.
