You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: How To Prevent the download of src rpms with reposync

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 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!