In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you the ubuntu snap package installation, update deletion and use of the example analysis, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Overview
What is snap,snap is a new way of package management, which is similar to a container with all the files and libraries of an application, which is completely independent of each application. So the advantage of using the snap package is that it solves the problem of dependencies between applications and makes them easier to manage. But the problem is that it takes up more disk space.
The installation package extension for Snap is .snap, which is similar to a container that contains all the files and libraries needed by an application (the snap package contains a private root file system that contains dependent packages). They are installed in separate directories; applications are isolated from each other. Using snap has many benefits: first, it solves the problem of package dependencies; second, it also makes applications easier to manage.
At present, there are not many applications that support snap. Snap packages are generally installed in the / snap directory.
Some commonly used commands
In fact, using the snap package is very simple. Let me introduce some common commands.
Sudo snap list
List the installed snap packages
Sudo snap find
Search for snap packages to install
Sudo snap install
Install a snap package
Sudo snap refresh
Update a snap package, if you don't add the name of the package, that is to update all snap packages
Sudo snap revert
Restore a package to a previously installed version
Sudo snap remove
Delete a snap package
Simple to use
Now I will install an editor to demonstrate how to install and delete a software package.
First I want to install hello-world
Well, let's find out if there is a hello-world.
➜bin sudo snap search hello-worldName Version Developer Notes Summaryhello-world 6.3 canonical-The 'hello-world' of snapshello-world-om26er 0.2 om26er-A great snaphello-lhc 1.0 cprov-Hello world application for LHC
Yes, there is, so let's install it.
➜~ snap install hello-worldhello-world 6.3from 'canonical' installed
Downloading may be slow, so you'd better hang up the agent.
Then let's see if it has been installed.
➜bin snap listName Version Rev Developer Notescore 16-2.28.5 3247 canonical corehello-world 6.327 canonical-
Finally, we delete it.
➜~ snap remove hello-worldhello-world removed
Address of the snap packet
If you don't know what snap package you can download, you can download the snap package at the following address to install it.
Https://uappexplorer.com/snaps
A false report.
Because it took too long to install douban-fm, I terminated the operation and reported an error when I installed the package again
Error: cannot install "douban-fm": snap "core" has changes in progress
The solution is simple.
First, take a look at the ongoing change.
➜/ snap changesID Status Spawn Ready Summary2 Done 2017-11-15T02:33:51Z 2017-11-15T02:33:51Z Refresh all snaps: no updates3 Error 2017-11-15T03:20:07Z 2017-11-15T03:20:23Z Install "douban-fm" snap4 Done 2017-11-15T03:20:07Z 2017-11-15T03:20:10Z Initialize device5 Error 2017-11-15T03:20:38Z 2017-11-15T03:34:21Z Install "douban-fm" snap6 Doing 2017-11-15T03:34:27Z-Install "douban-fm" snap
Yes, install douban-fm is still in doing, so terminate the process.
➜/ sudo snap abort 6➜ / snap changesID Status Spawn Ready Summary2 Done 2017-11-15T02:33:51Z 2017-11-15T02:33:51Z Refresh all snaps: no updates3 Error 2017-11-15T03:20:07Z 2017-11-15T03:20:23Z Install "douban-fm" snap4 Done 2017-11-15T03:20:07Z 2017-11-15T03:20:10Z Initialize device5 Error 2017-11-15T03:20:38Z 2017-11-15T03:34:21Z Install "douban-fm" snap6 Error 2017 -11-15T03:34:27Z 2017-11-15T03:40:51Z Install "douban-fm" snap
Just perform the installation again after that.
Query recent actions
$snap changes
For more information about snap, see the man manual:
$man snap
Update: Snap is now available on most Linux distributions, greatly simplifying the installation of Linux software.
The above is all the contents of the article "sample Analysis of installation, Update, deletion and use of snap packages in ubuntu". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.