You have noticed that the GFI LanGuard Repository folder is taking up a lot of space on the hard drive and are looking for a way to clean it up to reduce the space occupied.
This article describes how to manage the repository files and decrease the size of the repository folder.
The issue above can be due to the configuration settings for patch auto-downloading and the retention period. 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, most customers download only required patches.
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.
- Please 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.