Recently I noticed when updating that pacman doesn’t resume where I stopped it (a few minutes before) which is not nice since my internet is slow. After a lot of searching I found out every time I run pacman -Syu it makes a new folder in /var/cache/pacman/pkg named download-xxxxxx where the x’s are randomized characters then it puts the downloaded .tar.zst files into that new folder ignoring the previous folder it created last time. My workaround was to move the contents of the previous download folder to it’s parent directory but what would be a permanent solution? I remember when this wasn’t the case so it must be a new “feature” I can hopefully disable.

  • Gyroplast@pawb.social
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 month ago

    I didn’t see any provisions in the code to change this behavior, and I could easily reproduce the issue by interrupting downloads half-way. And it truly sucks.

    It looks like a possible regression while fixing a related issue, but I only had a very cursory look. Not passing blame, yet. :)

    No issue or PR exists concerning this problem, yet. If you cannot be bothered to create one, I might do so myself this weekend.

    • jroid8@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      Thank you for your time. I can open an issue myself if I didn’t find my answer here, I won’t pass the effort onto you.

  • taaz@biglemmowski.win
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 month ago

    I don’t have an answer either but there is also checkupdates from pacman-contrib pkg, it optionally allows you to pre-DL the updated packages into the (global package) cache

  • SSUPII@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    /etc/pacman.conf should have a voice where to put the cache files. Set it to a directory in your home

    • jroid8@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      I don’t think changing CacheDir variable prevents this behavior, it would just create the download-xxxxxx folders in my newly selected cache directory