I encountered a problem with yum repository problem on Oracle linux 8, you can produce a solution by doing the following operations.
It can also cause the following issues.
cd /etc/yum.repos.d
rm -rf .
yum upgrade
yum update
Check the date
timedatectl
For Updating correct proxy address in /etc/dnf/dnf.conf file, then its ability to install and list packages.
vi /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
proxy=http://<proxy-host>.<domain>.com:<port>
dnf repolist
Oracle Linux 8 Application Stream (x86_64) 403 kB/s | 9.6 MB 00:24
Oracle Linux 8 BaseOS Latest (x86_64) 394 kB/s | 5.4 MB 00:13
Last metadata expiration check: 0:00:02 ago on Mon 12 Aug 2019 04:42:02 PM IST.
repo id repo name status
ol8_appstream Oracle Linux 8 Application Stream (x86_64) 7,784
ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64) 2,595
dnf install ksh
Congrat, Have a nice day.
Tags: