Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › [Solved] new apt behavior: apt removes cache apt-get doesn't
- This topic has 13 replies, 4 voices, and was last updated Oct 17-6:53 pm by greyowl.
-
AuthorPosts
-
October 15, 2018 at 3:08 am #12551Member
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.
anti-X - Adélie - obarun - systemd Free Space
October 15, 2018 at 5:49 am #12554Forum Admin
anticapitalista
::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.
October 15, 2018 at 6:10 am #12556Member
fungalnet
::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.anti-X - Adélie - obarun - systemd Free Space
October 15, 2018 at 6:42 am #12558Moderator
Brian Masinick
::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 MasinickOctober 15, 2018 at 10:54 am #12574Member
fungalnet
::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.
anti-X - Adélie - obarun - systemd Free Space
October 15, 2018 at 12:08 pm #12582Forum Admin
anticapitalista
::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.
- 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.
October 15, 2018 at 12:37 pm #12586Member
fungalnet
::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.dAlso 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.
anti-X - Adélie - obarun - systemd Free Space
October 15, 2018 at 2:02 pm #12591Forum Admin
anticapitalista
::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.
October 15, 2018 at 3:36 pm #12594Member
fungalnet
::Ok, thank you
I’ll try it tomorrow, with small pkgs, I have a slow connection, hence the problem.anti-X - Adélie - obarun - systemd Free Space
October 16, 2018 at 5:04 am #12609Member
fungalnet
::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”.anti-X - Adélie - obarun - systemd Free Space
October 16, 2018 at 10:55 am #12635Member
fungalnet
::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 optionBinary::apt::APT::Keep-Downloaded-Packagesto 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.
anti-X - Adélie - obarun - systemd Free Space
October 17, 2018 at 12:34 pm #12658Membergreyowl
::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)
October 17, 2018 at 6:05 pm #12664Member
fungalnet
::Maybe you are thinking of apt-fast?
Apt-fast does simultaneous downloads of files from multiple mirrors to speed up the install/upgrade process.anti-X - Adélie - obarun - systemd Free Space
October 17, 2018 at 6:53 pm #12665Membergreyowl
::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)
-
AuthorPosts
- You must be logged in to reply to this topic.