Error while trying to download httpd package

saichandu

New Member
Joined
Aug 15, 2017
Messages
3
Reaction score
0
Credits
22
[[email protected] ~]$ 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
1,780
Reaction score
1,381
Credits
11,948

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,921
Reaction score
4,411
Credits
43,516
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
5,921
Reaction score
4,411
Credits
43,516
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
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top