- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: InstallAnywhere not cleaning tmp folder after installation in Linux
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
InstallAnywhere not cleaning tmp folder after installation in Linux
Hello,
I'm trying to understand if there is a way to set up an InstallAnywhere project so once it's completed with the installation, it cleans up the files placed in the tmp folder in Linux.
After doing some research I was able to figure out that the default tmp folder can be changed to a custom one by doing: export IATEMPDIR=$HOME before executing the installer.
I was able to test that workaround and works fine but I'm wondering if the temporary files can be deleted once the process is complete.
Most Linux distributions have jobs that either clean the temporary folder on startup or at a given time but we have encountered issues with machines that never get restarted.
One scenario that we have seen as well is when multiple installations happen in the same Linux machine the tmp folder gets full and affects users who don't have the knowledge of how to clean up this folder.
Is there an option for this?
PD: We have a previous issue here: https://community.flexera.com/t5/InstallAnywhere-Forum/InstallAnywhere-tool-taking-too-much-temp-folder-space-in-Ubuntu/m-p/130257
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I see things left behind as well. You didn't mention what version you are on, I'm using IA 2018 and there is a hotfix that resolves at least some of the clean up.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Somewhere in your Main class, you can add this:
cliInstallerProxy.setVariable("$CHECK_DISK_SPACE$", "FORCE");
In our case, adding this worked to revert faulty installations by having no enough space.
There is another workaround which is using an alternate temp directory:
export IATEMPDIR=$HOME
I hope this helps for you.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)