Let's say that we are in rPi4 we have installed ROS noetic following this guide and we want to add a couple of new packages. In our case we have selected ros_comm package. Imagine that we want to add teleop_twist_keyboard.
cd ros_catkin_ws/
source devel_isolated/setup.bash
rosinstall_generator ros_comm teleop_twist_keyboard --rosdistro noetic --deps --wet-only --tar > noetic-custom_ros.rosinstall
wstool merge -t src noetic-custom_ros.rosinstall
wstool update -t src
rosdep install -y --from-paths src --ignore-src --rosdistro noetic -r --os=debian:buster
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/noetic
Happy?