install GitHub Desktop on ubuntu

  1. Update Packages
    On your Ubuntu Linux, first, run the system update command that ensures all the available package updates are installed on it. Further, this command will also refresh the package index cache of the default package manager i.e APT
bash 复制代码
sudo apt update && sudo apt upgrade
  1. Add ShiftKey GPG Key
    As we know officially GitHub Desktop client app is not available for Linux systems including Ubuntu. Therefore, we are going for the project that is itself hosted on GiitHub -- known as GitHub Desktop -- The Linux Fork by ShiftKey.

So, on your Ubuntu terminal execute the given command that will add the GPG key of the project, so that we can use the repository offered by the developers of this fork on our system.

bash 复制代码
wget -qO - https://mirror.mwt.me/shiftkey-desktop/gpgkey | gpg --dearmor | sudo tee /etc/apt/keyrings/mwt-desktop.gpg > /dev/null
  1. Add GitHub Desktop repository on Ubuntu
    After adding the GPG key, let's add the repository that offers the GitHub Desktop fork packages to install it on Ubuntu 22.04 or 20.04. The benefit of using a repository method instead of its Debian packages bundled as executable binary is we can easily get the future updates of the application by just running the system update and upgrade command.
bash 复制代码
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/mwt-desktop.gpg] https://mirror.mwt.me/shiftkey-desktop/deb/ any main" > /etc/apt/sources.list.d/mwt-desktop.list'

Don't forget to run the system update command once again after adding the repository.

bash 复制代码
sudo apt update
  1. GitHub Desktop installation on Ubuntu 22.04 | 20.04
    Finally, we have integrated all the necessary things we required to download GitHub Desktop App and start its installation on Ubuntu Linux. Now, let's use Ubuntu's APT, a built-in package manager, to finally get it on our Linux system.
bash 复制代码
sudo apt install github-desktop
  1. Install Flatpak
    Those who don't want to use the repository method can go for Flatpak universal package manager. However, unlike Snap, it is not available to use on Ubuntu by default. Therefore, we have to install it manually. Here are the commands to follow.
bash 复制代码
sudo apt install flatpak

Once the installation is completed, also add the Flathub remote repository that allows us to install various packages available in it on our Linux system.

bash 复制代码
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Completing the above two commands will enable the Flatpak successfully on our Ubuntu OS, however, it is important to reboot our system once. This helps this package manager to integrate itself properly into Linux.

bash 复制代码
sudo reboot
  1. Use Flatpak to install the Linux GitHub Desktop app
    So, after restarting the system let's use Flatpak to fetch and install the GitHub desktop release on Ubuntu 22.04 or 20.04 Linux via Flathub.

Here is the GitHub Desktop Flatpak Installation Command.

bash 复制代码
flatpak install -y flathub io.github.shiftey.Desktop
  1. Run Linux GitHub Desktop
    It doesn't matter which method you have used, to run the application simply click on the Activities link of the Taskbar or press the Windows key on your keyboard to search GitHub. As its icon appears click to run the same.
相关推荐
ClickHouseDB3 分钟前
Postgres正则表达式性能优化:pg_re2扩展的引入与应用
数据库
艾莉丝努力练剑6 分钟前
【MYSQL】MYSQL学习的一大重点:视图
android·服务器·数据库·学习·mysql·面试·视图
一次旅行8 分钟前
OpenAI 新版提示词指南
人工智能·chatgpt·github
三江番长 陀舍古帝13 分钟前
细说SQL Server中的加密
运维·服务器·数据库
艾莉丝努力练剑17 分钟前
【MYSQL】MYSQL学习的一大重点:事务(下)- InnoDB 事务隔离性原理(MVCC 视角)
android·数据库·b树·sql·学习·mysql·面试
OSMeteor27 分钟前
在 Hyper-V 中搭建固定 IP、固定网关、可上网且与宿主机互通的 Ubuntu 环境
网络协议·tcp/ip·ubuntu
TunerT_TQ33 分钟前
Valhalla 静态工程审阅 #021|华为MindSpore 源码证据驱动评测【大厂开源基础设施特辑】
c++·开源·github·mfc·#大模型开源·#华为开源·#深度学习
小园子的小菜1 小时前
Redis 核心原理深度解析:从数据结构、IO 模型到持久化机制
数据库·redis·缓存
YUS云生1 小时前
大模型学习·第44天:Chroma向量数据库与RAG链式组装
数据库·学习
毛驴赶鹿8 小时前
【金仓数据库征文】KES V9性能调优实战记录:从慢SQL排查到全链路优化
数据库·sql