• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Feature Request: Central software package cache for WinGet

    Scheduled Pinned Locked Moved Feature Request
    3 Posts 2 Posters 8 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wbg
      last edited by

      Hi everyone,

      First of all, thank you for your great work on the FOG Project!

      I recently upgraded our school’s FOG server from 1.5.10 to 1.6.1 and am really impressed by the new features, especially the new FOG Agent and the integrated software management with WinGet. As a school IT administrator managing 138 Windows 11 computers, these improvements make my daily work much easier.

      Feature request: Central software package cache

      As far as I understand, each client currently downloads its installation packages directly from the internet when using WinGet. It would be very useful to have a central software package cache on the FOG server, similar to the existing agent update cache.

      Ideally:

      • The FOG server automatically checks for new software versions.
      • Each installer is downloaded only once and its integrity is verified.
      • Clients download the installers from the local FOG server.
      • Existing software management and reporting remain unchanged.
      • Outdated cached packages are automatically removed.
      • Caching can optionally be enabled per software package.

      This would significantly reduce internet bandwidth usage, especially in larger school environments.

      Is there already a way to achieve this with FOG 1.6.1? Is such a feature planned, or would you recommend using a separate local WinGet repository?

      Thanks again to the entire FOG team for developing and maintaining such a valuable open-source solution. The progress made with FOG 1.6 is really impressive!

      Best regards from Germany!

      Tom ElliottT 2 Replies Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @wbg
        last edited by Tom Elliott

        @wbg 1.6.1 has no WinGet cache yet. Each Software entry has a Source field. The agent passes it to winget as --source. So you can point an entry at a local source today, but the client must already have that source registered.

        Two options now:

        • Chocolatey with an internal feed. A folder or a share is a valid Chocolatey source. Set the backend to Chocolatey and put the share path in Source.
        • A self-hosted WinGet REST source (for example rewinged), with installer URLs that point at a local web server. Register it on the clients with winget source add (a snapin works). Then put the source name in Source.

        A built-in cache on the FOG server is a reasonable request. We are tracking it here: https://github.com/FOGProject/fogproject/issues/2236

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @wbg
          last edited by

          @wbg The WinGet cache is built. It is on dev-branch now, and it reaches stable on December 11.

          How it works: the FOG server downloads the installer once. It checks each file against the SHA-256 in the WinGet manifest. Hosts then install from the FOG server, not from the internet, and WinGet checks the SHA-256 again before it installs.

          To use it:

          • Update the server to dev-branch and run the installer. The installer creates the cache folder (/opt/fog/softwarecache) and adds the PHP modules the cache needs.
          • Hosts need FOG Agent 0.1.31 or later. It is released, so agents that update from your server get it. An older agent ignores the cache and installs from the internet, as before.
          • Edit a WinGet entry and turn on Cache on this server. The edit page shows the cache state.
          • Keep the FOG Agent Release Sync service on. It runs the cache, on its normal schedule.

          Limits:

          • Only packages from the public winget source. The server shares the cached files over plain HTTP with no sign-in, so do not use it for a package that holds a license key.
          • The server keeps every installer variant that a version lists (x64, ARM, MSI, EXE), because WinGet picks one on each host. The files go in /opt/fog/softwarecache, and the server stops new downloads when less than 5 GiB is free. To use a bigger disk, mount it at that path and run the installer again.
          • If a check fails, hosts get the last cached version, with a warning in the Software Status details.

          Docs: https://docs.fogproject.org/en/latest/management/web/software/#caching-the-installer-on-the-fog-server

          If you test it, please post what you see here, good or bad.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          47

          Online

          12.8k

          Users

          17.7k

          Topics

          157.6k

          Posts
          Copyright © 2012-2026 FOG Project