View Issue Details

IDProjectCategoryView StatusLast Update
0017735CentOS-8dnfpublic2020-09-17 20:48
Reportersysop Assigned To 
Status newResolutionopen 
Summary0017735: dnf and yum in CentOS 8.x do not honor the ISO mountpoint from /etc/yum.repos.d/CentOS-Media.repo
DescriptionUsing the stock options specified in /etc/yum.repos.d/CentOS-Media.repo for both AppStream and BaseOS, only the mountpoint /media/CentOS works.
When either of the other two options (/media/cdrom or /media/cdrecorder) are used, yum and dnf find the metadata, but packages are not found because the tool overrides the location path and follows /media/CentOS/...
Steps To ReproduceEnable the media repo (enabled=1)
Mount /dev/cdrom to /media/cdrom or /media/cdrecorder
Use yum/dnf to install a package: dnf install zlib-devel.i686
Additional InformationOutput from dnf is of the form:

Error opening file for checksum: /media/CentOS/BaseOS/Packages/zlib-devel-1.2.11-13.el8.i686.rpm
Package "zlib-devel-1.2.11-13.el8.i686" from local repository "c8-media-BaseOS" has incorrect checksum
Error: Some packages from local repository have incorrect checksum

Solution is to delete the other (legacy) mount points (/media/cdrom and /media/cdrecorder) from the CentOS-Media.repo file. This is the easiest solution that requires the least effort and (most likely) won't break anything.
The other solution is to actually fix dnf to not hard-code the local media path to /media/CentOS But this takes more effort.
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-09-17 20:48 sysop New Issue