diff --git a/com.oracle.truffle.r.test.packages/r/install.cache.R b/com.oracle.truffle.r.test.packages/r/install.cache.R
index 44acb6c78892cef96158f0699daf6323e3a9c19d..cab215a510a3ca5a05007bad5c47e5470d063ed4 100644
--- a/com.oracle.truffle.r.test.packages/r/install.cache.R
+++ b/com.oracle.truffle.r.test.packages/r/install.cache.R
@@ -88,7 +88,7 @@ pkg.cache.insert <- function(pkg.cache.env, pkgname, lib) {
         # to produce a TAR with relative paths, we need to change the working dir
         prev.wd <- getwd()
         setwd(lib)
-        if(zip(toPath, pkgname) != 0L) {
+        if(zip(toPath, pkgname, flags="-r9Xq") != 0L) {
             log.message("could not compress package dir ", fromPath , " and store it to ", toPath, level=1)
             return (FALSE)
         }