Announcement

Collapse
No announcement yet.

Arch Linux's Pacman 6.1 Released With Cache Server Support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Arch Linux's Pacman 6.1 Released With Cache Server Support

    Phoronix: Arch Linux's Pacman 6.1 Released With Cache Server Support

    It was two years since the release of Pacman 6.0 as Arch Linux's package manager software while overnight Pacman 6.1 was released with a tag line "it's been a while..." With Pacman 6.1 comes a few new features...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Interesting. I've been using a NFS mount as a cache server for some time now (by just mounting it over /var/cache/pacman/pkg). How exactly does the new feature work? What protocol does it use to cache the packages to the server? And would it still cache packages locally if you use that?

    Comment


    • #3
      I wish they fixed the most common beginner problems.

      Like having to manually clear a package from cache because it's corrupted. If pacman knows it's corrupted, and that's the reason it cannot continue with an update, why not ask if user wants to delete it?

      Comment


      • #4
        Originally posted by varikonniemi View Post
        I wish they fixed the most common beginner problems.

        Like having to manually clear a package from cache because it's corrupted. If pacman knows it's corrupted, and that's the reason it cannot continue with an update, why not ask if user wants to delete it?
        That’s exactly what pacman does.

        Comment


        • #5
          Originally posted by varikonniemi View Post
          I wish they fixed the most common beginner problems.

          Like having to manually clear a package from cache because it's corrupted. If pacman knows it's corrupted, and that's the reason it cannot continue with an update, why not ask if user wants to delete it?
          Pacman asks you if whether you want to delete a "corrupt" packages with the default being yes, after verifying all signatures. Corrupt of course can also mean that you have missing signatures in you keyring.

          That said, your problem has either been either fixed for a long time or is a weird edge case and not beginner at all

          Comment


          • #6
            Originally posted by Chugworth View Post
            Interesting. I've been using a NFS mount as a cache server for some time now (by just mounting it over /var/cache/pacman/pkg). How exactly does the new feature work? What protocol does it use to cache the packages to the server? And would it still cache packages locally if you use that?
            I am curious as well. I was updating an external drive install recently and I created a symlink to the internal install and, yeah not a good idea. Pacman was one of the packages and it uninstalled pacman , deleting the symlink, then couldn't find the package and baled. So no pacman installed. I'll see if I can use a bind mount next time.

            Comment


            • #7
              its always a little bit weird to see arch make news since arch doesn't change much, but it sure is nice when it does

              Comment


              • #8
                Originally posted by fallingcats View Post

                Pacman asks you if whether you want to delete a "corrupt" packages with the default being yes, after verifying all signatures. Corrupt of course can also mean that you have missing signatures in you keyring.

                That said, your problem has either been either fixed for a long time or is a weird edge case and not beginner at all
                I'm only familiar with errors people find at manjaro forum after something like power loss/crash during update, and there it's a constant "tell us error message and we can tell you what pacman clean command will fix it" but at this point a bot cold be made that just replies: pacman -Scc fixes it.

                And there certainly is not any question ever if user wants pacman to fix it for them? Otherwise they never would have posted a question about it at the forum!

                edit: another common need in similar situation: a pacman option to "reinstall all packages" should exist. Piping list all packages into Sync is not something anyone could figure out on their own without google-fu skills. And even there nasty caveats exist like do you care if all packages become "explicitly installed"? It should not be so hard.
                Last edited by varikonniemi; 04 March 2024, 10:04 AM.

                Comment


                • #9
                  Originally posted by varikonniemi View Post

                  I'm only familiar with errors people find at manjaro forum after something like power loss/crash during update, and there it's a constant "tell us error message and we can tell you what pacman clean command will fix it" but at this point a bot cold be made that just replies: pacman -Scc fixes it.

                  And there certainly is not any question ever if user wants pacman to fix it for them? Otherwise they never would have posted a question about it at the forum!

                  edit: another common need in similar situation: a pacman option to "reinstall all packages" should exist. Piping list all packages into Sync is not something anyone could figure out on their own without google-fu skills. And even there nasty caveats exist like do you care if all packages become "explicitly installed"? It should not be so hard.
                  Well, I agree with you there, pacman should have a reinstall-everything option. Power loss during an upgrade otoh has a good chance of producing an unbootable system, it seems unlikely to me that just the cache would be corrupted (and in such a way that pacman wouldn't fix that itself)

                  The power loss problem could be mitigated by writing all files to disk and then just "mv"-ing then into place. That operation should be pretty much instant and minimize risk. I wonder why nobody's doing that.
                  Last edited by fallingcats; 04 March 2024, 10:20 AM.

                  Comment


                  • #10
                    Originally posted by varikonniemi View Post

                    edit: another common need in similar situation: a pacman option to "reinstall all packages" should exist. Piping list all packages into Sync is not something anyone could figure out on their own without google-fu skills. And even there nasty caveats exist like do you care if all packages become "explicitly installed"? It should not be so hard.
                    pacman won't change the install reason on reinstall.

                    Have you actually used pacman?

                    oh and pacman -S $(pacman -Qqn), no search engine needed the help is enough.

                    Originally posted by fallingcats View Post


                    The power loss problem could be mitigated by writing all files to disk and then just "mv"-ing then into place. That operation should be pretty much instant and minimize risk. I wonder why nobody's doing that.
                    Isn't that what COW is?

                    Last edited by geearf; 04 March 2024, 10:22 AM.

                    Comment

                    Working...
                    X