OCI: How To Prevent the download of src rpms with reposync
in Linux
Applies to:
Oracle Cloud Infrastructure
Linux x86-64
Symptoms
Reposync is taking up a large amount of space:
$ sudo df -h /u01 Filesystem Size Used Avail Use% Mounted on /dev/mapper/VG-lv1 2.0T 1.6T 296G 85% /u01
Cause
The command used to download the packages is:
$ sudo dnf reposync --delete --download-metadata -p /u01/yum --repoid ol8_baseos_latest $ sudo dnf reposync --delete --download-metadata -p /u01/yum --repoid ol8_appstream $ sudo dnf reposync --delete --download-metadata -p /u01/yum --repoid ol8_ksplice $ sudo dnf reposync --delete --download-metadata -p /u01/yum --repoid ol8_oci_included
If the --source option is absent both binary and source RPMs get downloaded
Tagged:
0