Skip to content

Instantly share code, notes, and snippets.

@AndreiCherniaev
Last active November 24, 2025 16:04
Show Gist options
  • Select an option

  • Save AndreiCherniaev/9bef25311726b3955f7c11ae35784307 to your computer and use it in GitHub Desktop.

Select an option

Save AndreiCherniaev/9bef25311726b3955f7c11ae35784307 to your computer and use it in GitHub Desktop.
Update rustdesk in Debian/Ubuntu
# Replace _64 to aarch64 or armv7 depends of your arch (use `dpkg --print-architecture` to detect)
P=$(wget -qk -l 0 "https://github.com/rustdesk/rustdesk/releases" -O /tmp/index.html ; cat /tmp/index.html | grep -o 'https:[^"]*.deb' | grep '\/rustdesk-[0-9]*[0-9]\.[0-9].*_64.deb' | sort -r -n | head -1)
wget "$P"
sudo dpkg --install $(basename "$P")
@AndreiCherniaev
Copy link
Author

AndreiCherniaev commented Nov 24, 2025

The same in one line

sudo dpkg --install $(basename $(wget $(wget -qk -l 0 "https://github.com/rustdesk/rustdesk/releases" -O /tmp/index.html ; cat /tmp/index.html | grep -o 'https:[^"]*.deb' | grep '\/rustdesk-[0-9]*[0-9]\.[0-9].*_64.deb' | sort -r -n | head -1)))

@AndreiCherniaev
Copy link
Author

To paste automatically to the end of .bashrc, you can use this code:

cat<<'EOF' >> $HOME/.bashrc

upd_rustdesk() {
    sudo dpkg --install $(basename $(wget $(wget -qk -l 0 "https://github.com/rustdesk/rustdesk/releases" -O /tmp/index.html ; cat /tmp/index.html | grep -o 'https:[^"]*.deb' | grep '\/rustdesk-[0-9]*[0-9]\.[0-9].*_64.deb' | sort -r -n | head -1)))
}
EOF

Then run source ~/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment