您好,登錄后才能下訂單哦!
本篇內(nèi)容介紹了“CentOS7怎么中安裝Snapd”的有關(guān)知識(shí),在實(shí)際案例的操作過(guò)程中,不少人都會(huì)遇到這樣的困境,接下來(lái)就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!
1、首先安裝COPR插件和EPEL,通過(guò)添加epel存儲(chǔ)庫(kù)并安裝copr yum插件來(lái)啟動(dòng)安裝,運(yùn)行如下命令:
sudo yum install epel-release sudo yum install yum-plugin-copr
2、然后添加repo:
sudo yum copr enable ngompa/snapcore-el7
3、添加存儲(chǔ)庫(kù)后,安裝snapd軟件包,運(yùn)行以下命令:
sudo yum -y install snapd
4、等待安裝完成后啟用snapd socket:
sudo systemctl enable --now snapd.socket
5、限制需要從/snap到/var/lib/snapd/snap下的/snap或符號(hào)鏈接下的snaps,為它創(chuàng)建一個(gè)符號(hào)鏈接,如下命令:
sudo ln -s /var/lib/snapd/snap /snap
做到這里,Snapd已經(jīng)安裝完成了。
附:snap用法及參數(shù)
snap --help應(yīng)用選項(xiàng): --version——打印版本并退出 幫助選項(xiàng): -h, --help——顯示此幫助消息 可用的命令: abort——中止待定更改 ack——Adds an assertion to the systemalias——Sets up a manual aliasaliases——Lists aliases in the system buy——Buys a snap changes——List system changes connect——Connects a plug to a slotdisable——Disables a snap in the system disconnect——Disconnects a plug from a slot download——Downloads the given snapenable——Enables a snap in the system find——Finds packages to install (aliases: search) get——Prints configuration optionshelp——幫助 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 typelist——List installed snaps login——Authenticates on snapd and the storelogout——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 commandservices——Query the status of servicesset——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.
“CentOS7怎么中安裝Snapd”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注億速云網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。