Mavros - how to avoid reinstalls for rosject

Dear support,
How do I avoid running the reinstall script multiple times a day?
How do I persist the mavros install?
Does the component “have-to-be” in “catkin_ws” only…
Please advise

Using:

rosinstall_generator --upstream mavros | tee /tmp/mavros.rosinstall
rosinstall_generator mavlink | tee -a /tmp/mavros.rosinstall
wstool merge -t src /tmp/mavros.rosinstall
wstool update -t src
rosdep install --from-paths src --ignore-src --rosdistro `echo $ROS_DISTRO` -y
catkin build

Thanks
-R

Hi Raj,
yes at present we have this limitation in the system. Rosjects are not persistent with what you install system wide. This means, any system libraries or programs you install for the whole system will be lost the next time you start the rosject.

Only things inside the /home/user are persistent. You can install there things you need, provided that you do not create a very big rosject.

Recommended size for a rosject should be not larger than 1.5Gb. If you make them larger, they will take a long time to save and to restore every time you launch and close your session.