您好,登錄后才能下訂單哦!
這篇文章主要介紹“怎么在CentOS7上安裝Snapd和snap應用程序”的相關知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“怎么在CentOS7上安裝Snapd和snap應用程序”文章能幫助大家解決問題。
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 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.
目前,Ubuntu的相關產品已以snap包的形式發布,例如Ubuntu ,,,,
關于“怎么在CentOS7上安裝Snapd和snap應用程序”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識,可以關注億速云行業資訊頻道,小編每天都會為大家更新不同的知識點。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。