Article 5KV7C Different results between dnf and yum

Different results between dnf and yum

by
NotionCommotion
from LinuxQuestions.org on (#5KV7C)
I previously installed PHP using the following:
Code:sudo dnf install php74 php74-php-fpm php74-php-cli php74-php-gd php74-php-json php74-php-mbstring php74-php-pgsql php74-php-mysqlnd php74-php-xml php74-php-xmlrpc php74-php-mcrypt php74-php-zip php74-php-pecl-dsWhen I did it, I first tried to include php74-php-debuginfo but received an error thus removed it.

Just tried again and you will see the error. But then I tried the same using yum instead of dnf, and it works.

Why the difference? Is it okay to interchange the use of yum and dnf?

Thanks

Code:[michael@devserver ~]$ sudo dnf install php74-php-debuginfo
Last metadata expiration check: 0:00:08 ago on Sat 03 Jul 2021 03:48:25 PM UTC.
No match for argument: php74-php-debuginfo
Error: Unable to find a match: php74-php-debuginfoCode:[michael@devserver ~]$ sudo yum install php74-php-debuginfo
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirrors.hoobly.com
* epel: mirror.rnet.missouri.edu
* epel-debuginfo: mirror.rnet.missouri.edu
* extras: repo.ialab.dsu.edu
* remi-php80: mirror.team-cymru.com
* remi-safe: mirror.team-cymru.com
* updates: linux-mirrors.fnal.gov
Resolving Dependencies
--> Running transaction check
---> Package php74-php-debuginfo.x86_64 0:7.4.21-1.el7.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
php74-php-debuginfo x86_64 7.4.21-1.el7.remi remi-safe-debuginfo 39 M

Transaction Summary
=============================================================================================================================================================================================================================================
Install 1 Package

Total download size: 39 M
Installed size: 198 M
Is this ok [y/d/N]: y
Downloading packages:
php74-php-debuginfo-7.4.21-1.el7.remi.x86_64.rpm | 39 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : php74-php-debuginfo-7.4.21-1.el7.remi.x86_64 1/1
Verifying : php74-php-debuginfo-7.4.21-1.el7.remi.x86_64 1/1

Installed:
php74-php-debuginfo.x86_64 0:7.4.21-1.el7.remi

Complete!
[michael@devserver ~]$latest?d=yIl2AUoC8zA latest?i=x-CDFzlIdVU:ZQUQvEoyYiA:F7zBnMy latest?i=x-CDFzlIdVU:ZQUQvEoyYiA:V_sGLiP latest?d=qj6IDK7rITs latest?i=x-CDFzlIdVU:ZQUQvEoyYiA:gIN9vFwx-CDFzlIdVU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments