Bootstrap FreeKB - RPM - Install a package
RPM - Install a package

Updated:   |  RPM articles

The rpm command with the -i or --install option can be used to install a package from a .rpm file. 

It can also be helpful to use the -v or --verbose and --hash or -h (show hash marks during install) options.

~]# rpm --install --hash --verbose php-mbstring-version.rpm
Updating /installing...
  1:php-mbstring-version  ####################### [100%]

 

Don't be surprised if the install fails due to missing dependencies. This is all too common when trying to install an RPM.

~]$ rpm --install --hash --verbose apache-mod_php-8.2.8-1.mga9.x86_64.rpm
error: Failed dependencies:
        apache >= 2.2 is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        libc.so.6(GLIBC_2.27)(64bit) is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        libc.so.6(GLIBC_2.32)(64bit) is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        libc.so.6(GLIBC_2.33)(64bit) is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        libc.so.6(GLIBC_2.34)(64bit) is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        libm.so.6(GLIBC_2.29)(64bit) is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        libm.so.6(GLIBC_2.35)(64bit) is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        php-common = 3:8.2 is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        php-ini >= 3:8.2.8 is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        rpm-helper is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64
        rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by apache-mod_php-3:8.2.8-1.mga9.x86_64

 

Sometimes, this oneliner is all you need to include the dependencies.

sudo yum install --nogpgcheck apache-mod_php-8.2.8-1.mga9.x86_64.rpm

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 04d6f8 in the box below so that we can be sure you are a human.