[CentOS] yum4 and dnf on CentOS 8

Mon Nov 25 16:33:16 UTC 2019
Paul Heinlein <heinlein at madboa.com>

On Sat, 23 Nov 2019, Stephen John Smoogen wrote:

> On Sat, 23 Nov 2019 at 15:39, Sergio Belkin <sebelk at gmail.com> wrote:
>>
>> Hi,
>>
>> I was using yum for years on CentOS servers, and since a few years ago dnf
>> on Fedora desktops. My question is:
>> Is the same yum4 on CentOS 8 that dnf? What should I use?
>> Thanks in advance
>>
>
> yum4 is a thin wrapper on dnf mainly because Enterprise Linux users
> and scripts are used to the yum commands. You can use either dnf or
> yum4 on the command line and get the same results.

You mentioned you're familiar with Fedora, so you're probably aware of 
Application Streams -- but for those reading this thread unfamiliar 
with AppStreams, I'll add the caveat that dnf behaves differently than 
yum in this regard.

Here's some background:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/installing_managing_and_removing_user_space_components/using-appstream_using-appstream

Right now, the only EL8 AppStream with multiple versions is 
postgresql, but it looks like several applications are setup for 
future multiple streams. To see the AppStream packages, run

dnf module list

If you squint carefully, you'll see that you can install either 
PostgreSQL 10 (the default) or 9.6.

-- 
Paul Heinlein
heinlein at madboa.com
45°38' N, 122°6' W