[Solved] new apt behavior: apt removes cache apt-get doesn't

Forum Forums Orphaned Posts antiX-17 “Heather Heyer, Helen Keller” [Solved] new apt behavior: apt removes cache apt-get doesn't

Tagged: , , ,

  • This topic has 13 replies, 4 voices, and was last updated Oct 17-6:53 pm by greyowl.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #12551
    Member
    fungalnet

      Has anything changed in the past few days with how the cache of pkgs is handled and pkgs are deleted after installation?
      I just noticed it trying to install linux image and headers in 2 different installations (testing/sid) of the 4.18 antix kernel and since I didn’t want to download the big files again I tried to install from cache.
      Even though I upgraded many pkgs the last ones I have in cache is from Oct 10 and 4.18, although installed and booted, it was nowhere to be found. Previous 4.17 4.16 .. are all there.

      Was the default of maintaining cache changed? I use # apt update and dist-upgrade not synaptics or aptittude.

      • This topic was modified 4 years, 6 months ago by fungalnet.
      • This topic was modified 4 years, 6 months ago by fungalnet. Reason: Solved puzzle
      • This topic was modified 4 years, 6 months ago by fungalnet.
      #12554
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        No change. Did you run apt-get clean? That would remove the debs.

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #12556
        Member
        fungalnet
          Helpful
          Up
          0
          ::

          No, I didn’t, so I installed the 4.18 kernel a second time and after it was installed there weren’t in the cache.
          I have run autoremove once in a while when dist-upgrade tells me there are pkgs not needed anymore, but I have always done that and the cache was not affected.

          #12558
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            Yeah, I also recommend running apt-get clean.

            As a long time antiX, MX, MEPIS, and Debian user, it is something I do regularly as part of package updates and system maintenance.

            As a result of such regular practices, I rarely encounter Debian packaging issues unless I am deliberately breaking something in testing! 😎😇

            --
            Brian Masinick

            #12574
            Member
            fungalnet
              Helpful
              Up
              0
              ::

              But I don’t want my cache gone, I am trying to figure out why are new pkgs removed after installation. Pkgs that were there before 10/10 are still there.

              #12582
              Forum Admin
              anticapitalista
                Helpful
                Up
                0
                ::

                I’m stumped as it doesn’t happen to me on antiX sid. I just did a apt-get dist-upgrade and all the debs are in the cache folder.

                Hang on, do you use apt dist-upgrade or apt-get dist-upgrade ? There is a difference.

                apt bugs

                apt v apt-get

                • This reply was modified 4 years, 6 months ago by anticapitalista.
                • This reply was modified 4 years, 6 months ago by anticapitalista.
                • This reply was modified 4 years, 6 months ago by anticapitalista.

                Philosophers have interpreted the world in many ways; the point is to change it.

                antiX with runit - leaner and meaner.

                #12586
                Member
                fungalnet
                  Helpful
                  Up
                  0
                  ::

                  For a few months at least, after someone had said here and intensely corrected me, have been using apt dist-upgrade. (I was saying they are different and someone was saying they are now exactly the same). In the past I used consciously apt upgrade or apt-get dist-upgrade knowing what the difference was. Now I only use apt dist-upgrade. But this change in behavior is recent.

                  How about testing, do you have an active distribution to test it?
                  I found this file altered Sept 13th
                  /etc/kernel/postinst.d/apt-auto-removal
                  I also looked here but couldn’t tell if there is something causing it /etc/apt/apt.conf.d

                  Also apt, apt-utils, and apt-antix were upgraded about the same time the problem appeared.

                  EDIT: I just did this on sid # apt install linux-image-4.18.7…. linux-headers-4.18.7…

                  Installed fine, cache has nothing.

                  • This reply was modified 4 years, 6 months ago by fungalnet.
                  • This reply was modified 4 years, 6 months ago by fungalnet.
                  #12591
                  Forum Admin
                  anticapitalista
                    Helpful
                    Up
                    0
                    ::

                    does apt-get install linux-image-4.18.7…. linux-headers-4.18.7… save the cached debs?

                    I just tested this. apt-get leaves the debs in cache apt deletes them after install.

                    This must be a new change. So, if you want to keep the debs, use apt-get.

                    • This reply was modified 4 years, 6 months ago by anticapitalista.

                    Philosophers have interpreted the world in many ways; the point is to change it.

                    antiX with runit - leaner and meaner.

                    #12594
                    Member
                    fungalnet
                      Helpful
                      Up
                      0
                      ::

                      Ok, thank you
                      I’ll try it tomorrow, with small pkgs, I have a slow connection, hence the problem.

                      #12609
                      Member
                      fungalnet
                        Helpful
                        Up
                        0
                        ::

                        Ok got it, apt-get keeps cache apt deletes it.
                        Weird, I wonder why they changed this, but I would refrain from asking and getting a 20year old answer, “you should have read the release notes”.

                        #12635
                        Member
                        fungalnet
                          Helpful
                          Up
                          0
                          ::

                          I found this in an askubuntu.com….where-are-packages-stored-installed-with-apt and it is old. This indicates that this file existed in my system since installation (about 4 different ones) and must have been removed by an update, otherwise I can’t explain the sudden change.

                          After packages are successfully installed by apt(8), the corresponding .deb package files will be removed from the /var/cache/apt/archives cache directory.
                          This can be changed by setting the apt configuration option Binary::apt::APT::Keep-Downloaded-Packages to true. E.g:

                          # echo 'Binary::apt::APT::Keep-Downloaded-Packages "true"; \
                          > /etc/apt/apt.conf.d/01keep-debs
                          • This reply was modified 4 years, 6 months ago by fungalnet.
                          • This reply was modified 4 years, 6 months ago by fungalnet.
                          • This reply was modified 4 years, 6 months ago by fungalnet.
                          #12658
                          Member
                          greyowl
                            Helpful
                            Up
                            0
                            ::

                            Also on this topic, I read something a while back that “apt update” and “apt full-upgrade” are faster and more efficient than “apt-get update” and “apt-get dist-upgrade”. I can’t remember where I got this information however.
                            I wonder if this really true?

                            Dell Latitude D620 laptop with antiX 22 (64 bit)

                            #12664
                            Member
                            fungalnet
                              Helpful
                              Up
                              0
                              ::

                              Maybe you are thinking of apt-fast?
                              Apt-fast does simultaneous downloads of files from multiple mirrors to speed up the install/upgrade process.

                              #12665
                              Member
                              greyowl
                                Helpful
                                Up
                                0
                                ::

                                I found the reference for the difference between apt and apt-get.
                                I will try to attach the reference.

                                Attachments:

                                Dell Latitude D620 laptop with antiX 22 (64 bit)

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • You must be logged in to reply to this topic.