如果你的Linux操作系统支持Flatpak命令安装软件,那么可以使用Flatpak命令来安装Scratch,以下是具体方法。
使用Flatpak命令来安装Scratch
1、如果你的系统还没有安装Flatpack包管理器,请运行以下命令(以Ubuntu 20.04系统为例):
sudo apt-get update
sudo apt install flatpak
2、从Flatpak的Flathub仓库安装,运行以下命令:
flatpak remote-add –if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub edu.mit.Scratch
注:当前安装的版本为3.6.0。
3、安装完成后可运行以下命令运行:
flatpak run edu.mit.Scratch
注:可运行flatpak info edu.mit.Scratch命令查看相关的信息,返回如下信息即表示安装成功了:
Scratch – Create stories, games, and animations, share with others around the
world
ID: edu.mit.Scratch
Ref: app/edu.mit.Scratch/x86_64/stable
Arch: x86_64
Branch: stable
Version: 3.6.0
License: BSD-3-Clause
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 513.0 MB
Runtime: org.freedesktop.Platform/x86_64/19.08
Sdk: org.freedesktop.Sdk/x86_64/19.08
Commit: be95cc888f17693303a1b56392c90b1915965c828b160023cb66c2bfffb75e53
Parent: 123e220a8e8392828b36807fec7ae55de9497d64054bf74e4847f464b4ce1123
Subject: Add –device=all for webcam access (64e7093d)
Date: 2020-06-15 05:11:25 +0000