未加星标

How to install Snap applications on Ubuntu 14.04 LTS

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二05 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Ubuntu 16.04LTS was released by Canonical back in April last year. Among some of the key new features it brought, one was a new packaging format dubbed Snap. To refresh, here's an excerpt from our Ubuntu 16.04 overview tutorial that explains the what and why of Snap:

So, why Snap? Well, this new packaging system is aimed at making package installation and maintenance easier. For example, unlike the existing system, wherein it’s on you to resolve all version-related conflicts of dependencies for a software being installed, Snaps allow developers to put in everything on which their software depends in the package itself, effectively making them self-contained and independent of the system on which they are being installed.

The feature has since only been available on Ubuntu 16.04. But that changed earlier this month, when the team behindthe feature at Canonical announced that users of Ubuntu 14.04 can also use the new packaging format. Following was the announcement email :

The team are pleased to announce that, after extensive testing in proposed, snapd is officially available in the Trusty Tahr updates archive [1]. If you are running a 14.04 system we encourage you to give it a try and report any issues [2]. Thanks to all involved in making this happen.

Since Ubuntu's LTS releases are officially supported for 5 years, companies using Ubuntu prefer these releases. And given that the version 14.04 was the last LTS release before 16.04, it's reasonableto assume that it's still being used by a lot many people around the world for work purposes. So with that in mind, in this tutorial, we'll be explaining how you can access the Snap feature on Ubuntu 14.04.

Install Snapd on Ubuntu 14.04

Snapd is basically the system service that enables you(users) to interact with snaps. So, the first stepis to install snapd. But before you do that, make sure that all updates available for your system have been installed.

Note: While there aren't any known issues with installing snpad on Ubuntu 14.04, it's always advisable to backup all your important stuff (if you're doing this on a machine you use for your personal or professional work).

Assuming that you've updated your system, and have either backed up important stuff or are ok with an unexpected issue, run the following two commands:

sudo apt-get update

sudo apt-get install snapd

The second command mentioned above may take some time (in my case it showed over 200MB download). Once the commands are successful, try running the 'snap' command, and you'll see that it'll be installed:


How to install Snap applications on Ubuntu 14.04 LTS
Snap Usage

Before you start installing snap packages, you're advised to give your system a reboot. Once that is done, open a terminal, and start using the feature. For example, I installed the snap package of the 'htop' command line tool using the following command:

sudo snap install htop

As you'd have understood, the generic command for installing any snap package is:

snap install [package-name]

Needless to say, 'sudo' in the 'htop' example was used to provide root privileges. To learn more about 'sudo', read our dedicated tutorialhere.

To give you some more idea about snap, here's how you can list all the snap packages installed on your system:

snap list

Here's the output the above command produced on my system:


How to install Snap applications on Ubuntu 14.04 LTS

Moving on, you can also access a list of snap packages that you can download and install on your system. For this, use the 'find' sub-command:

snap find


How to install Snap applications on Ubuntu 14.04 LTS

There's also the option to search for a particular package - for that all you have to do is to pass the package name as argument to the 'find' sub-command:


How to install Snap applications on Ubuntu 14.04 LTS

And to conclude, there're 'refresh' and 'remove' sub-commands that let you update and remove installed snap packages, respectively.

snap refresh [package-name] snap remove [package-name]

For more information on the snap command, including the command line arguments it accepts as well as its subcommands, head to its man page.

Conclusion

As you'd agree, installing the snap command isn't difficult on Ubuntu 14.04. Basic usage is simple as well. Of course, to learn more and more features the command provides, you'll have to go through and understand what the man page says - hence there'd be a learning curve in that case.

Did you try installing Snap on your Ubuntu 14.04 LTS machine? How was your experience? Did you face any problems? Share your thoughts in comments below.

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: Ubuntu
分页:12
转载请注明
本文标题:How to install Snap applications on Ubuntu 14.04 LTS
本站链接:http://www.codesec.net/view/534981.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(18)