centos7 安装_在centos7中安装Snapd

876f602bdcec6d3318ebdc863155561c.gif

大家好,我是paul,今天我来简单的分享一下在centos7上搭建snapd跟一些常用的命令

具体方法我来一一的来详解,首先我们需要两个插件,是COPR跟EPEL,通过存储库EPEL来安装COPR yum插件,来启动,现在我来演示一下

sudo yum install epel-release

8232f384cd33ef07f5897b8443caa12c.png

这里输入y

a7378e9a0275a132072a62757b4cb1ea.png

输入y

cb3c6240dc4a3bc6d71fdb6ee47ae479.png

b3e397f855f17b41a5769d1a91881cbe.png

sudo yum install yum-plugin-copr

af346cc5eeea32924a85fa8e865c3da8.png

输入y进行下一步

c4be5354351e5a5792e3198c7b8dfb6e.png

现在我们添加完存储库后,进行下一步安装snapd软件包

sudo yum -y install snapd

5231a7d8596adb1a53bfabd9f872cab6.png

等待完成安装后我们来启动服务

1116745a9afffffb83d8c7fa17998121.png

出现这个说明snapd socket我们启动成功

下一步我们需要从/snap到/var/lib/snapd/snap符号连接下面的snaps或者说是/snap,为这个重新建立一个符号链接,

bf4eb6172cff3809531c69d7541797dc.png

sudo ln -s /var/lib/snapd/snap /snap

没有提示往往是最好的提示,说明没有问题

到这一步,snapd算是安装完成了,下面我分享下用法跟一些常用参数

6071215d58919a8f3b1d5faf882fbbce.png

[...]

Install, configure, refresh and remove snap packages. Snaps are 'universal' packages that work across many different Linux systems,enabling secure distribution of the latest apps and utilities for cloud, servers, desktops and the internet of things.

This is the CLI for snapd, a background service that takes care of snaps on the system. Start with 'snap list' to see installed snaps.

应用选项:

--version——打印版本并退出

帮助选项:

-h, --help——显示此帮助消息

可用的命令:

abort——中止待定更改

ack——Adds an assertion to the system

alias——Sets up a manual alias

aliases——Lists aliases in the system

buy——Buys a snap

changes——List system changes

connect——Connects a plug to a slot

disable——Disables a snap in the system

disconnect——Disconnects a plug from a slot

download——Downloads the given snap

enable——Enables a snap in the system

find——Finds packages to install (aliases: search)

get——Prints configuration options

help——帮助

info——show detailed information about a snap

install——Installs a snap to the system

interface——Lists snap interfaces

interfaces——Lists interfaces in the system

known——Shows known assertions of the provided type

list——List installed snaps

login——Authenticates on snapd and the store

logout——Log out of the store

logs——Retrieve logs of services

pack——pack the given target dir as a snap

prefer——Prefer aliases from a snap and disable conflicts

refresh——Refreshes a snap in the system

remove——Removes a snap from the system

restart——Restart services

revert——Reverts the given snap to the previous state

run——Run the given snap command

services——Query the status of services

set——Changes configuration options

start——Start services

stop——Stop services

switch——Switches snap to a different channel

tasks——List a change's tasks (aliases: change)

try——Tests a snap in the system

unalias——Unalias a manual alias or an entire snap

version ——Shows version details

watch——Watch a change in progress

whoami——Prints the email the user is logged in with.

61c69dd430808c9637ba516b5b00cbe6.png

你可能喜欢

Centos7下增加swap分区大小

Centos7修改默认启动内核

centos7下安装MariaDB

5b050c668a868a2f3c54d8c6a0a0f577.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值