Jak nainstalovat repozitář robotpkg na Ubuntu 26.04

Toto nainstaluje repozitář robotpkg na Ubuntu 26.04 pomocí nového formátu repozitáře.

install-robotpkg-repository.sh
sudo mkdir -p /usr/share/keyrings && \
sudo curl -sS https://robotpkg.openrobots.org/packages/debian/robotpkg.asc -o /usr/share/keyrings/robotpkg.asc && \
sudo tee /etc/apt/sources.list.d/robotpkg.sources <<EOF && \
Types: deb
URIs: http://robotpkg.openrobots.org/packages/debian/pub
Suites: $(lsb_release -cs)
Components: robotpkg
Architectures: amd64
Signed-By: /usr/share/keyrings/robotpkg.asc
EOF
sudo apt update && \
SHELL_RC="$HOME/.$(basename $SHELL)rc" && \
if [ -f "$SHELL_RC" ]; then
  printf "\n# RobotPKG Paths\nexport PATH=/opt/openrobots/bin:\$PATH\nexport LD_LIBRARY_PATH=/opt/openrobots/lib:\$LD_LIBRARY_PATH\n" >> "$SHELL_RC"
  echo "Added paths to $SHELL_RC"
  export PATH=/opt/openrobots/bin:$PATH
  export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY_PATH
else
  echo "Could not automatically detect RC file. Manually add paths to your shell config."
fi

Podívejte se na podobné články podle kategorie: Linux Robotics