WEBVTT

00:00.600 --> 00:06.500
Kelly requires constant updating to keep the tools you are using and function order.

00:06.540 --> 00:08.490
We have two main commands for this purpose.

00:08.490 --> 00:15.090
We have the ap t minus get updates and we have a beta minus get upgrade.

00:15.300 --> 00:18.930
So what's the difference between the update and the upgrade update.

00:18.990 --> 00:26.370
Actually it lists the available packages and the revisions but it doesn't actually install or upgrade

00:26.520 --> 00:27.420
any of the packages.

00:27.420 --> 00:32.100
It just tells the package manager what is actually up there available for us.

00:32.100 --> 00:39.350
But if you want an actual upgrading of your packages you will have to use the API to get upgrade comment

00:40.170 --> 00:43.310
so I will run them quickly here.

00:43.320 --> 00:43.980
UPDATE

00:46.590 --> 00:48.580
As you can see it's working.

00:48.730 --> 00:52.290
We should run it often the actually and the a biggie upgrade.

00:54.580 --> 00:59.850
I did run them actually before this video and if you want efficiency.

00:59.860 --> 01:03.340
You should run them on a daily basis or it will take some time.

01:03.340 --> 01:06.760
Actually it can take up to an hour for the upgrade.

01:06.760 --> 01:14.280
Come on now I'll teach you an efficient way to do the up date and the upgrade by using an alias.

01:14.290 --> 01:18.540
So with one command you can actually invoke the two commands at once.

01:18.550 --> 01:25.810
For that we need to do some kind of changes to the bash as you file for this purpose we use the command

01:25.810 --> 01:35.140
leaf pad and we direct this file to open and then we press Enter to actually open the Bashar see in

01:35.140 --> 01:40.710
a notepad file and expand it here for a while and go down.

01:41.230 --> 01:45.430
Just go down to the place where there is a hash.

01:45.430 --> 01:48.370
Alias press Enter here and try it.

01:48.400 --> 01:51.380
Alias dates.

01:51.430 --> 01:57.530
So we will now use updates CIS to reference the two commands which are ap t minus.

01:57.530 --> 02:01.720
Get update and upgrade so updates is equal.

02:01.890 --> 02:03.370
AP T minus.

02:03.370 --> 02:07.960
Get update and a B T minus or dash.

02:07.960 --> 02:13.090
Get up grade and we close the parentheses.

02:13.090 --> 02:18.160
Notice here there is a star whenever there is a star it means that the is being edited and it's not

02:18.160 --> 02:18.540
safe.

02:18.580 --> 02:21.690
So make sure to save the file wants to save the file.

02:21.700 --> 02:24.730
The star will be gone and then close it.

02:24.730 --> 02:28.140
Now we have the file updated so to be on the safe side.

02:28.150 --> 02:37.010
Let's close this terminal and open a new terminal and use the alias that we've just created.

02:37.090 --> 02:43.900
Update CIS press enter its will run both commands at once it will update your system and will upgrade

02:43.960 --> 02:45.490
all the packages available.
