Last active
November 24, 2025 16:04
-
-
Save AndreiCherniaev/9bef25311726b3955f7c11ae35784307 to your computer and use it in GitHub Desktop.
Update rustdesk in Debian/Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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") |
Author
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
The same in one line