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.
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
2,091
Reaction score
1,706
Credits
15,058

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
6,379
Reaction score
4,842
Credits
46,893
Can you share what /etc/dnf/dnf.conf looks like?
Code:
cat /etc/dnf/dnf.conf
 
OP
S

saichandu

New Member
Joined
Aug 15, 2017
Messages
3
Reaction score
0
Credits
22
OP
S

saichandu

New Member
Joined
Aug 15, 2017
Messages
3
Reaction score
0
Credits
22
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.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
6,379
Reaction score
4,842
Credits
46,893
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
 

Members online

No members online now.

Top