The Repository directory where all the patches downloaded by the GFI LanGuard are saved may fill up the hard drive, depending on an environment and configuration settings. This article describes how to manage the repository files and decrease the size of the repository folder.
LanGuard has two options for auto-downloading patches:
- To download only the needed patches based on data collected from scans.
- To download all patches, regardless of whether they are required or not.
Sometimes a customer may need an archive of all patches, but since it takes a lot of space and time for downloading, the majority of customers download only required patches.
Depending on the environment size, auto-download option chosen and retention settings, the Repository folder may fill up the hard drive. There are a few steps that can be performed to resolve this issue. and the Solution section provides step-by-step instructions.
It is possible to delete the content of the Patch Repository without any issue. However, if the items are still in the download queue, they will be re-downloaded once the services are running. This is why it is also necessary to manually purge the data from the patch auto-download database. It is generally expected that someone from the Support team performs these steps.
- Open the GFI LanGuard console and check the configured Repository path: Configuration -> Software Updates -> Patch Auto-Download -> click on Here link -> click Patch Repository tab.
- Close the GFI LanGuard console.
- Stop all the LanGuard services.
- Press Windows + R keys together to open the Run dialog box.
services.mscand press the Enter key.
- Locate and stop the GFI LanGuard ... services.
- Navigate to the Repository path from step 1, by default:
C:\Program Files (x86)\GFI\LanGuard 12\Repository\English.
- Delete any unnecessary files in this directory.
- You can delete all the files in this directory path without issues, and these will be re-downloaded at another time if required.
- Navigate to
- Find the
toolcfg_patchautodownload.mdbfile and make a copy of it somewhere else.
- Open the
toolcfg_patchautodownload.mdbfile created from the above step with Microsoft Access.
- Open the
- Press Ctrl+A to select everything in this table and delete it.
- Go to File > Info > Compact and Repair.
- Rename the existing
- Copy the edited
toolcfg_patchautodownload.mdbfrom Steps 7-11 to the
C:\ProgramData\GFI\LanGuard 12\directory path.
- Reopen the GFI LanGuard LanGuard console.
- Navigate to Configuration > Software Updates > Patch Auto-Download. Click the Here link.
- Either select the radio button to download Detected patches only or turn off Enable patch auto-download.
- Navigate to the Patch Repository tab and enable the option to Delete patches that have not been used for... and set it to either 6 months or 1 year.
- Restart all the LanGuard services stopped on step 3.
NOTE: A sample edited
toolcfg_patchautodownload.mdb file is attached.