4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linuxのdiscordのアップデートを楽に

Posted at

はじめに

みなさんDiscord 使ってますか?
私は部活などで使うのでLinux PCやスマホにDiscordを入れています。
しかしLinuxの場合自動で更新ができないので以下のような画面をよく見ると思います。

image.png

毎回Downloadからブラウザを開き、ダウンロードをして sudo apt install ./discord....をやるのは面倒なのでスクリプトで一発でやってしまおうと思います!

スクリプト

wget -O /tmp/discord-installer.deb "https://discord.com/api/download/stable?platform=linux&format=deb"
sudo apt install /tmp/discord-installer.deb

これだけです!

これをホームとかのアクセスしやすいところに discord_update.sh 等の名前で保存し、

chmod +x discord_update.sh

で実行権限を付与したら準備完了!

実行

./update_discord.sh

で実行すると

$ ./update_discord.sh 
--2025-08-21 09:47:07--  https://discord.com/api/download/stable?platform=linux&format=deb
discord.com (discord.com) をDNSに問いあわせています... 64:ff9b::a29f:8ae8, 64:ff9b::a29f:88e8, 64:ff9b::a29f:87e8, ...
discord.com (discord.com)|64:ff9b::a29f:8ae8|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: https://stable.dl2.discordapp.net/apps/linux/0.0.106/discord-0.0.106.deb [続く]
--2025-08-21 09:47:08--  https://stable.dl2.discordapp.net/apps/linux/0.0.106/discord-0.0.106.deb
stable.dl2.discordapp.net (stable.dl2.discordapp.net) をDNSに問いあわせています... 64:ff9b::227e:e233, 34.126.226.51
stable.dl2.discordapp.net (stable.dl2.discordapp.net)|64:ff9b::227e:e233|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 104895204 (100M) [application/vnd.debian.binary-package]
‘/tmp/discord-installer.deb’ に保存中

/tmp/discord-installer.deb                           100%[=====================================================================================================================>] 100.04M  4.45MB/s    in 22s     

2025-08-21 09:47:30 (4.60 MB/s) - ‘/tmp/discord-installer.deb’ へ保存完了 [104895204/104895204]

パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了        
状態情報を読み取っています... 完了        
注意、'/tmp/discord-installer.deb' の代わりに 'discord' を選択します
以下のパッケージはアップグレードされます:
  discord
アップグレード: 1 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
105 MB 中 0 B のアーカイブを取得する必要があります。
この操作後に 4,096 B のディスク容量が解放されます。
取得:1 /tmp/discord-installer.deb discord amd64 0.0.106 [105 MB]
(データベースを読み込んでいます ... 現在 283896 個のファイルとディレクトリがインストールされています。)
/tmp/discord-installer.deb を展開する準備をしています ...
discord (0.0.106)(0.0.104 に) 上書き展開しています ...
discord (0.0.106) を設定しています ...
desktop-file-utils (0.26-1ubuntu3) のトリガを処理しています ...
gnome-menus (3.36.0-1ubuntu3) のトリガを処理しています ...
mailcap (3.70+nmu1ubuntu1) のトリガを処理しています ...

楽天のモバイル回線でも30秒程度で更新が終わりました!
これで快適なLinuxライフを過ごせますね!

4
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?