Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #2889

Closed
Open
Opened May 15, 2014 by Natanael Copa@ncopa
  • Report abuse
  • New issue
Report abuse New issue

apk cache sync/clean does not remove uninstalled packages from cache

seems like the cache is not cleaned properly with apk clean:

apk-tools 2.4.3, compiled for x86_64

localhost:~# apk add cpufreqd
(1/1) Installing cpufreqd (2.4.2-r2)
Executing busybox-1.21.1-r0.trigger
Executing uclibc-utils-0.9.33.2-r27.trigger
1 errors; 79 MiB in 56 packages

 apk del --purge cpufreqd
(1/1) Purging cpufreqd (2.4.2-r2)
Executing busybox-1.21.1-r0.trigger
Executing uclibc-utils-0.9.33.2-r27.trigger
1 errors; 79 MiB in 55 packages


localhost:/media/usb/cache# apk cache clean
localhost:/media/usb/cache# apk cache sync -v
localhost:/media/usb/cache# ls
APKINDEX.cfc83ca2.tar.gz          cpufrequtils-008-r1.68973c95.apk  elinks-0.12_pre6-r0.7984c931.apk  hostapd-2.0-r0.6b6b7f88.apk       libnl-1.1.4-r0.a306b70d.apk
cpufreqd-2.4.2-r2.f6e5718f.apk    dropbear-2013.58-r0.9f3b512b.apk  hdparm-9.43-r0.a8bbe0f4.apk       installed

(from redmine: issue id 2889, created on 2014-05-15, closed on 2015-12-09)

  • Changesets:
    • Revision f2d9a144 by Timo Teräs on 2014-10-06T14:54:52Z:
cache: delete more aggressively unneeded cached files

Also if --purge is specified delete all uninstalled packages.
Fixes #2889
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
Bug Closed Normal
Assign labels
  • View project labels
Reference: alpine/apk-tools#2889