--- a/agent/mibgroup/host/hr_swinst.c
+++ b/agent/mibgroup/host/hr_swinst.c
@@ -193,7 +193,7 @@
 #define	_PATH_HRSW_directory	"/var/db/pkg"
 #endif
 #if defined(linux) && !defined(HAVE_LIBRPM)
-#define	_PATH_HRSW_directory	"/var/cache/hrmib"
+#define	_PATH_HRSW_directory	"@TERMUX_PREFIX@/var/cache/hrmib"
 #endif
 
 void
