Story Details

  • Why Flatpak Apps Use So Much Disk Space on Linux

    Posted: 2025-05-04 14:57:59

    Flatpaks consume significant disk space because they bundle all their dependencies, including libraries and runtimes, within each application. This avoids dependency conflicts but leads to redundancy, especially when multiple Flatpaks share common libraries. While deduplication efforts exist at the file system level with OSTree, and some shared runtimes are used, many applications still ship with their own unique copies of common dependencies. This "bundling everything" approach, while beneficial for consistent performance and cross-distribution compatibility, contributes to the larger storage footprint compared to traditional package managers that leverage shared system libraries. Furthermore, Flatpak stores multiple versions of the same application for rollback functionality, further increasing disk usage.

    Summary of Comments ( 1 )
    https://news.ycombinator.com/item?id=43887073

    HN commenters generally agree that Flatpak's disk space usage is a valid concern, especially for users with limited storage. Several point out that the deduplication system, while theoretically efficient, doesn't always work as intended, leading to redundant libraries and inflated app sizes. Some suggest that the benefits of Flatpak, like sandboxing and consistent runtime environments, outweigh the storage costs, particularly for less experienced users. Others argue that alternative packaging formats like .deb or .rpm are more space-efficient and sufficient for most use cases. A few commenters mention potential solutions, such as improved deduplication or allowing users to share runtimes across different distributions, but acknowledge the complexity of implementing these changes. The lack of clear communication about Flatpak's disk usage and the absence of easy tools to manage it are also criticized.