Last active
December 9, 2025 09:02
-
-
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=$(curl -sS "https://github.com/rustdesk/rustdesk/releases" | grep -o 'https:[^"]*.deb' | grep '\/rustdesk-[0-9]*[0-9]\.[0-9].*_64.deb' | sort -r -n | head -1) | |
| curl -sSOL --output-dir '/tmp' "$P" | |
| sudo dpkg --install "/tmp/$(basename $P)" | |
| sudo apt --fix-broken install |
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
via deprecated
wgetvia deprecated
wgetbut in one line