Can I make OMV run 'apt update' just once a week, rather than daily?

  • I'm running OMV6 on Raspberry Pi on an SD card, so I want to minimize write as much as possible. I noticed there were these write spikes to the SD card, even though I'm using folder2ram and minimized write as much as possible:


    Each spike is over 100MB of write. I used find . -mmin command to find out which files are responsible for these spikes, and were able to trace them to /var/cache/apt/pkgcache.bin and srcpkgcache.bin.


    When I ran apt update, I saw it writes over 100MB of data to SD card. I ran it again, and it again wrote another 100MB+ -- apt seems to always download this one URL, even if I just ran apt update a few seconds ago, and then builds package cache binaries again:

    Get:8 https://openmediavault-plugin-developers.github.io/packages/debian shaitan InRelease [3934 B]


    So I end up with at least 100MB of write from apt update every day. Plus another 100MB after a reboot, as it looks like it runs again after a reboot.


    Is it possible to make OMV run apt update just once a week, instead of daily? Maybe I can just move /etc/cron.daily/openmediavault-cron-apt to the /etc/cron.weekly folder? Thank you.

    • Official Post

    When I ran apt update, I saw it writes over 100MB of data to SD card. I ran it again, and it again wrote another 100MB+ -- apt seems to always download this one URL, even if I just ran apt update a few seconds ago, and then builds package cache binaries again:

    Get:8 https://openmediavault-plugin-…github.io/packages/debian shaitan InRelease [3934 B]

    That URL is not causing this. And it only downloaded 4k for the omv-extras repo. apt-get update is causing the package cache to be rebuilt because of the update. Trying to remove 100MB per day is going to extend your SD card life very little. I run all of my RPis (current five) with the update running daily. Since you really never know how long an SD card will last, you should be backing up your SD card.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!