Linux Operating System (MOSC)

MOSC Banner

How to install dnf on Oracle Linux 7?

edited May 13, 2022 2:25AM in Linux Operating System (MOSC) 5 commentsAnswered ✓

I installed Oracle Linux 7.9 using the Minimal Install base environment.

When trying to execute # dnf config-manager, it says -bash: dnf: command not found

[root@DB ~]# dnf config-manager --enable ol8_baseos_latest
-bash: dnf: command not found

When trying to install DNF by executing #  yum install DNF, it says No package DNF available.

[root@DB ~]# yum install DNF
Loaded plugins: ulninfo
No package DNF available.
Error: Nothing to do

I just cannot find any documents about this issue with Oracle Linux. There are documents about Redhat or CentOS, but not Oracle Linux.

Could anyone advise how I can install and use dnf on my Oracle Linux with Minimal Install? Thanks.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center