1
00:00:06,879 --> 00:00:12,830
So recently a new version to work with software
has been installed on Ubuntu. The name is Snap.

2
00:00:14,009 --> 00:00:19,140
Snap is an advanced package manager that
applies container technology to run packages in isolation.

3
00:00:19,800 --> 00:00:26,789
You'll learn in lesson 19 what containers are all about. What you
need to remember for now is that Snap runs packages in isolation.

4
00:00:27,820 --> 00:00:32,359
The packages are installed from the
Ubuntu Snap Store, and that has

5
00:00:32,359 --> 00:00:36,899
an option for third party software
providers to offer software as well.

6
00:00:37,859 --> 00:00:44,429
Now this is something that not everybody agrees on because
these third party providers can even charge money for their software.

7
00:00:44,929 --> 00:00:51,700
But Ubuntu wanted to provide a way
to make these software solutions accessible as well.

8
00:00:52,759 --> 00:00:58,500
The nice thing about Snap is that Snap packages are
installed with all of the dependencies in an isolated environment.

9
00:00:59,679 --> 00:01:04,379
And because while running in Snap,
the package is isolated from other packages,

10
00:01:04,379 --> 00:01:09,079
you can have packages that run
different versions of libraries on the same

11
00:01:09,079 --> 00:01:13,780
system because one package doesn't see
what is required by the other package.

12
00:01:15,319 --> 00:01:19,280
And even if it is
very efficient, Snap applications require more

13
00:01:19,280 --> 00:01:23,240
disk space and installing them
is slower than using apt.

14
00:01:24,849 --> 00:01:27,420
Now, some packages are
only available in Snap.

15
00:01:28,079 --> 00:01:30,650
One example is
the Firefox browser.

16
00:01:31,689 --> 00:01:33,599
Here we have a
list of essential commands.

17
00:01:34,260 --> 00:01:35,750
Let me just show
you how it works.

18
00:01:36,689 --> 00:01:42,530
Probably the best way to get started with Snap is
in the Snap Store. Well, officially the name is AppCenter.

19
00:01:43,950 --> 00:01:46,989
Here you can see all
the Snaps that are available.

20
00:01:49,269 --> 00:01:51,769
Pick whatever you
want to use.

21
00:01:52,489 --> 00:01:58,090
What do we see? Well, we see
games and we can see so many things.

22
00:01:58,810 --> 00:02:01,790
And let me check if
there's a good game available.

23
00:02:02,530 --> 00:02:07,569
So here we have all of these
games. Do I see anything that looks interesting?

24
00:02:08,409 --> 00:02:13,370
Honestly, I don't. But let's go
for K Space Duel, which was

25
00:02:13,370 --> 00:02:18,330
developed for kde. Now I'm curious,
is that going to work in

26
00:02:18,329 --> 00:02:23,289
my GNOME environment? Because KDE
is a competing desktop environment.

27
00:02:23,620 --> 00:02:27,159
So I'm just going to
click the K space dual and

28
00:02:27,159 --> 00:02:30,699
then I need to enter
my password and it's installing.

29
00:02:31,479 --> 00:02:35,860
While it is installing, it's taking a
while. As you can see, it slowly progresses.

30
00:02:36,819 --> 00:02:40,419
I'm going to have a look at
what is going on in the background.

31
00:02:40,979 --> 00:02:46,563
So sudo Snap tab Tab is
showing all the different commands that are

32
00:02:46,563 --> 00:02:52,146
available. So Snap list has a
list of all the Snaps on the

33
00:02:52,146 --> 00:02:57,729
system, including gnome, including the
Snap Store, and so much more.

34
00:02:58,729 --> 00:03:02,944
If there is a Snap that you
no longer need, then you can use sudo

35
00:03:02,944 --> 00:03:07,159
snap remove. Well, for now I don't
have Snaps that I don't need anymore.

36
00:03:07,719 --> 00:03:09,539
So let's just
keep it that way.

37
00:03:10,240 --> 00:03:16,669
Sudo Snap Refresh is another command
that will try to update your applications.

38
00:03:18,169 --> 00:03:23,650
As you can see, that starts to download
all the most recent versions of your application. Oh

39
00:03:23,650 --> 00:03:29,130
no, I shouldn't have been doing that because
that will take some time as well. So now

40
00:03:29,129 --> 00:03:34,610
we're in for a good wait, and
once the wait is over we can continue.

41
00:03:35,889 --> 00:03:42,219
So what do we see? We see that K Space Dual has
been installed and I just have to click open to open it

42
00:03:42,219 --> 00:03:48,550
and oh my goodness, look at that. That is so cool. Well,
it's not cool at all because I don't know what to do.

43
00:03:49,469 --> 00:03:53,980
But it runs as a Snap
installed application back to the command line

44
00:03:53,980 --> 00:03:58,490
where we had the sudo snap
refresh and that has refreshed everything.

45
00:03:59,050 --> 00:04:05,405
Now there is one tiny little thing
we installed the snapd and the Snap Desktop

46
00:04:05,405 --> 00:04:11,759
integration. Probably it's a good idea to
restart the system before starting to use it.
