Bug 11912

Summary: Compress files under /var/lib/opkg/lists/
Product: [Yocto Project Subprojects] opkg Reporter: Haris Okanovic <haris.okanovic>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: rich.tollerton
Version: unspecified   
Target Milestone: 0.3.6   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Haris Okanovic 2017-08-08 21:16:47 UTC
After an `opkg update`, cached index files under /var/lib/opkg/lists/ can be very large, mostly because they're stored on-disk uncompressed. For example, the feed index at [1] is 6.5MB but can gzip compresses to 600K (more than 10x reduction in size). opkg should (by default or by option) gzip cached indexes, and decompress them on the fly when needed, to avoid wasting disk.

[1] http://download.ni.com/ni-linux-rt/feeds/2017/arm/ipk/cortexa9-vfpv3/Packages
Comment 1 Alejandro del Castillo 2018-01-21 09:27:06 UTC
fixed on ec7d482b2dc71a0a8d767500edf7454f72b95915