帮助与文档

当前位置: 主页 > 系统相关 > 正文

Ubuntu18.04系统如何安装和使用snap

时间:2024/4/25 8:49:14   来源:米安网络   作者:云主机配置专家   点击:18次

snap是一种全新的软件包管理方式。它与其它包管理器的区别在于snap安装的程序互相之间是高度隔离的,减少了互相引用. 避免了很多冲突问题。但是由此带来的问题就是它占用更多的磁盘空间。那么在ubuntu18.04系统中如何安装和使用snap呢?本文给出详细说明。

1.首先更新软件列表

sudo apt-get update

2.安装snap

sudo apt-get install snap

sudo apt-get install snapd

3.之后就可以用snap来代替apt管理软件了

4.搜索要安装的snap包

sudo snap find hello-world

5.安装snap包

sudo snap install hello-world

6.查看已安装snap包

sudo snap list

7.更新已安装snap包

sudo snap refresh hello-world

没有找到更新的版本了,无需更新

8.卸载已安装snap包

sudo snap remove hello-world

版权保护: 本文「Ubuntu18.04系统如何安装和使用snap」由 云主机配置专家 原创,转载请保留链接: https://www.miandns.com/docs/system/795.html

联系客服

0312-5535754

微信公众号