diff --git a/cta.spec.in b/cta.spec.in
index 04e7c8588a5f61740b0eaf5c13d6f0114336e647..0ab7b145934a93b2cb59d37e86586c38dae06b79 100644
--- a/cta.spec.in
+++ b/cta.spec.in
@@ -245,6 +245,7 @@ Tools allowing initialization and inspection of the object store.
 %attr(0755,root,root) %{_bindir}/cta-objectstore-initialize
 %attr(0755,root,root) %{_bindir}/cta-objectstore-list
 %attr(0755,root,root) %{_bindir}/cta-objectstore-dump-object
+%attr(0755,root,root) %{_bindir}/cta-objectstore-unfollow-agent
 
 #cta-systemtests installs libraries so we need ldconfig.
 %post -n cta-systemtests -p /sbin/ldconfig
diff --git a/objectstore/CMakeLists.txt b/objectstore/CMakeLists.txt
index 10a02eed5dc8c6be5a9f01991315fef9755dc5d4..6e7d0c0b0f211df98850e32360de65061818abe6 100644
--- a/objectstore/CMakeLists.txt
+++ b/objectstore/CMakeLists.txt
@@ -102,8 +102,9 @@ target_link_libraries(cta-objectstore-dump-object
   ${PROTOBUF3_LIBRARIES} ctaobjectstore ctacommon)
 
 add_executable(cta-objectstore-unfollow-agent cta-objectstore-unfollow-agent.cpp)
+set_target_properties(cta-objectstore-unfollow-agent PROPERTIES INSTALL_RPATH ${PROTOBUF3_RPATH})
 target_link_libraries(cta-objectstore-unfollow-agent
   ${PROTOBUF3_LIBRARIES} ctaobjectstore ctacommon)
 
-install(TARGETS cta-objectstore-initialize cta-objectstore-list cta-objectstore-dump-object
+install(TARGETS cta-objectstore-initialize cta-objectstore-list cta-objectstore-dump-object cta-objectstore-unfollow-agent
   DESTINATION usr/bin)