Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Snapd in CentOS7

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to install Snapd in CentOS7". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. First install the COPR plug-in and EPEL, and start the installation by adding the epel repository and installing the copr yum plug-in, and run the following command:

Sudo yum install epel-releasesudo yum install yum-plugin-copr

2. Then add repo:

Sudo yum copr enable ngompa/snapcore-el7

3. After adding the repository, install the snapd package and run the following command:

Sudo yum-y install snapd

4. Enable snapd socket after the installation is complete:

Sudo systemctl enable-now snapd.socket

5. Limit the need from / snap to / snap under / var/lib/snapd/snap or snaps under symbolic link, and create a symbolic link for it, as shown in the following command:

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

To do this, Snapd has been installed.

Attached: usage and parameters of snap

Snap-- help application option:-- version-- print version and exit help option:-h -- help-- displays the commands available for this help message: abort-- aborts pending changes to ack--Adds an assertion to the systemalias--Sets up a manual aliasaliases--Lists aliases in the systembuy--Buys a snapchanges--List system changesconnect--Connects a plug to a slotdisable--Disables a snap in the systemdisconnect--Disconnects a plug from a slotdownload--Downloads the given snapenable--Enables a snap in the systemfind--Finds packages to install (aliases: search) get--Prints configuration optionshelp-- help Info--show detailed information about a snapinstall--Installs a snap to the systeminterface--Lists snap interfacesinterfaces--Lists interfacesin the systemknown--Shows known assertions of the provided typelist--List installed snapslogin--Authenticates on snapd and the storelogout--Log out of the storelogs--Retrieve logs of servicespack--pack the given target dir as a snapprefer--Prefer aliases from a snap and disable conflictsrefresh--Refreshes a snapin the systemremove--Removes a snap from the systemrestart--Restart servicesrevert--Reverts the given snap to the previous staterun--Run the given snap Commandservices--Query the status of servicesset--Changes configuration optionsstart--Start servicesstop--Stop servicesswitch--Switches snap to a different channeltasks--List a change's tasks (aliases: change) try--Tests a snap in the systemunalias--Unalias a manual alias or an entire snapversion-- Shows version detailswatch--Watch a change in progresswhoami--Prints the email the user is logged in with. So much for "how to install Snapd in CentOS7". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report