Error while trying to download httpd package

saichandu

New Member
Joined
Aug 15, 2017
Messages
3
Reaction score
0
Credits
22
[chandu@centos-8 ~]$ sudo yum install --downloadonly --downloaddir=/home/chandu/dir1 httpd
Config error: Parsing file "/etc/dnf/dnf.conf" failed: Parsing file '/etc/dnf/dnf.conf' failed: IniParser: Missing '=' at line 7


I am getting this error while trying to download only apache web server packages into specified folder. Can't find a proper solution in internet. I am a beginner and going through a linked course and stuck with this. Also tried replacing yum with dnf still the same. previously I downloaded successfully, but in course progress I think I messed with dnf.conf file.
Please suggest.
 


Can you share what /etc/dnf/dnf.conf looks like?
Code:
cat /etc/dnf/dnf.conf
 
Can you share what /etc/dnf/dnf.conf looks like?
Code:
cat /etc/dnf/dnf.conf
Thanks for concern. As per above comment retrieved dnf.conf file from installation media.
It would be great help if you let me know the other ways around possible for the same in brief. Thanks again.
 
I'm not sure I understand what you are saying? I'm running Springdale Linux 8 on a system which is also a Rhel clone, make a backup of /etc/dnf/dnf.conf and replace it with this.
Code:
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
 

Staff online


Top