您好,登錄后才能下訂單哦!
本篇內容介紹了“CentOS7怎么中安裝Snapd”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
1、首先安裝COPR插件和EPEL,通過添加epel存儲庫并安裝copr yum插件來啟動安裝,運行如下命令:
sudo yum install epel-release sudo yum install yum-plugin-copr
2、然后添加repo:
sudo yum copr enable ngompa/snapcore-el7
3、添加存儲庫后,安裝snapd軟件包,運行以下命令:
sudo yum -y install snapd
4、等待安裝完成后啟用snapd socket:
sudo systemctl enable --now snapd.socket
5、限制需要從/snap到/var/lib/snapd/snap下的/snap或符號鏈接下的snaps,為它創建一個符號鏈接,如下命令:
sudo ln -s /var/lib/snapd/snap /snap
做到這里,Snapd已經安裝完成了。
附:snap用法及參數
snap --help應用選項: --version——打印版本并退出 幫助選項: -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”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。