install snap on openSUSE

| 0 Comments| | 02:36
Categories:

Konsole command:

$ sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.4 snappy

ps: 依照系統版本把 openSUSE_Leap_15.4 改成 openSUSE_Leap_15.2, openSUSE_Leap_15.0 或是 openSUSE_Tumbleweed
 

$ sudo zypper --gpg-auto-import-keys refresh
$ sudo zypper dup --from snappy
$ sudo zypper install snapd

 
這時可以 “重開機”,或是 “登出登入”,或是 “source /etc/profile” 來讓 /snap/bin 加到 PATH 中
 
然後要啟動 snapd 和 snapd.apparmor 服務
 
啟動 snapd

$ sudo systemctl enable snapd
$ sudo systemctl start snapd

 
啟動 snapd.apparmor

$ sudo systemctl enable snapd.apparmor
$ sudo systemctl start snapd.apparmor

 
安裝 Visual Studio Code

$ sudo snap install code --classic

 
 
Source: Enable snaps on openSUSE and install code
 
#opensuse15

Leave a Reply

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *