How to install Snapd in CentOS 7

specific method

1, first install plug-ins and COPR EPEL, to start the installation by adding epel repository and install copr yum plug-in, run the following command:

sudo yum install epel-release

sudo yum install yum-plugin-copr

How to install Snapd in CentOS 7

2, and then add the repo:

$ Sudo yum copr enable pumping / snapcore-el7

How to install Snapd in CentOS 7

Loaded plugins: copr, fastestmirror

The Fedora Project does not exercise any power over the contents of this repository beyond the rules outlined in the Copr FAQ at

<https://fedorahosted.org/copr/wiki/UserDocs#WhatIcanbuildinCopr>, and packages are not held to any quality or securty level.

Please do not file bug reports about these packages in Fedora Bugzilla. In case of problems, contact the owner of this repository.

Do you want to continue? [y/N]: y

copr done

3, after adding the repository, install snapd package, run the following command:

sudo yum -y install snapd

How to install Snapd in CentOS 7

4. Wait for the installation is complete Enabled snapd socket:

$ sudo systemctl enable --now snapd.socket

Created symlink from /etc/systemd/system/sockets.target.wants/snapd.socket to /usr/lib/systemd/system/snapd.socket.

5, from the need to limit / snap snaps under the / / lib / snapd / under var snap / snap or symbolic link, to create a symbolic link to it, the following command:

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

How to install Snapd in CentOS 7

Do here, Snapd has completed the installation.

Attached: snap usage and parameters (English)

# snap --help

How to install Snapd in CentOS 7

Usage: snap [OPTIONS] <command>

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.

Application options:

--version-- print version and exit

Help options:

-h, --help-- display this help message

Available commands:

abort-- suspended pending changes

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-- 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.

Guess you like

Origin www.linuxidc.com/Linux/2019-08/160424.htm