WEBVTT

00:01.640 --> 00:06.180
Packages can be uninstalled using either the high level or low level tools.

00:06.200 --> 00:12.560
So in debian we will use the package management apt aptitude here.

00:12.830 --> 00:13.520
APT.

00:14.510 --> 00:17.570
Get remove and package name.

00:17.570 --> 00:23.750
So you will enter the package name after that name.

00:24.600 --> 00:29.710
Uh, so we can also install the package by using the dpkg as we learned earlier.

00:29.730 --> 00:30.870
Dpkg here.

00:30.870 --> 00:33.990
And after that you will enter the instead of package name you need.

00:34.140 --> 00:38.160
If you are entering the dpkg you will enter the package file.

00:38.280 --> 00:43.960
So and in red hat it's going to be rpm and package file again.

00:43.980 --> 00:45.260
Package file.

00:45.270 --> 00:52.830
So for example, if we if you want to enter the Google Chrome, you will in RPM and the file had been

00:52.830 --> 01:00.750
downloaded from a run repository file, it will be installed like that way here E and Google Google

01:00.750 --> 01:06.100
dot RPM or Google Chrome dot rpm.

01:06.120 --> 01:07.830
And for the.

01:08.810 --> 01:12.120
Ubuntu or ubuntu like debian like systems.

01:12.140 --> 01:13.880
It's going to be dpkg.

01:15.230 --> 01:15.940
DPG.

01:17.490 --> 01:18.030
E here.

01:18.030 --> 01:23.430
And after that you will enter the file that you installed specifically for Debian based systems apt

01:23.460 --> 01:23.700
here.

01:23.700 --> 01:26.520
So in this case it's going to be the.

01:28.140 --> 01:30.480
Chrome or Google Chrome.

01:30.780 --> 01:34.110
Google Chrome dot deb here.

01:34.200 --> 01:40.350
So mostly it's a deb file, but there's also another file extensions for that and for removing packages

01:40.350 --> 01:45.680
and packages can be installed using either the high level or low level tools, as I said earlier.

01:45.690 --> 01:52.200
So for Debian you can also use the sudo if you have problems with permissions and etcetera.

01:52.200 --> 01:57.990
But here apt get remove and after that you will enter the package name.

01:59.620 --> 02:03.010
And instead of a ticket you can also use APT alone.

02:03.010 --> 02:05.380
But it's your choice.

02:05.560 --> 02:08.230
And here, as you can see here, the permission denied.

02:08.230 --> 02:13.430
So I will enter the sudo to use the superuser and signs it will.

02:13.720 --> 02:16.750
There will be no package like package name.

02:16.750 --> 02:17.890
It will do nothing here.

02:25.360 --> 02:26.080
Here, let me.

02:32.340 --> 02:34.170
As I enter the password.

02:40.250 --> 02:40.670
Okay.

02:41.410 --> 02:48.730
So, for example, if you want to remove the Google Chrome, you will enter the APT get remove the Google

02:48.730 --> 02:54.070
Chrome here and it will remove your Google Chrome application that you installed previously in your

02:54.070 --> 02:55.270
system here.

02:55.270 --> 02:58.300
And as you can see, unable to locate the Google Chrome.

02:58.390 --> 03:03.280
That's because the Google Chrome is not installed and this is not a proper Google Chrome package name.

03:03.280 --> 03:04.030
It's the Google Chrome.

03:04.030 --> 03:06.940
Is something like that A Chrome.

03:07.720 --> 03:09.700
And version name like this.

03:10.090 --> 03:12.940
So you can also update the packages from a repository.

03:13.030 --> 03:18.460
And the most common package management task is keeping the system up to date with the latest versions

03:18.460 --> 03:19.450
of packages.

03:19.450 --> 03:23.510
The high level tools can perform this vital task in a single step.

03:23.530 --> 03:34.300
This apt get update and actually we can also sudo apt get update and apt After that you can also write

03:34.330 --> 03:38.050
apt get upgrade which here.

03:38.050 --> 03:42.040
Now we're going to update the repositories right here after that.

04:05.610 --> 04:06.510
I think it's done.

04:13.840 --> 04:18.160
So after that you will enter the apt get upgrade.

04:18.250 --> 04:24.550
And here we also need to use the sudo command right here and here it will update.

04:24.550 --> 04:29.440
So after this operation, 149MB disk space will be freed.

04:30.160 --> 04:30.940
Yes.

04:31.650 --> 04:38.160
And here, as you can see, we upgrading our packages that we updated previously, we updated our repositories

04:38.160 --> 04:41.400
and then we upgrading our packages and programs.

04:41.400 --> 04:48.000
So, for example, to apply all available updates, updates to be installed packages on the Debian style,

04:48.000 --> 04:52.680
we can use the upgrade in order to do this process here.

04:54.200 --> 04:54.980
As you can see here.

04:54.980 --> 05:00.410
Now I'm updating some modules, some libraries, Python three libraries.

05:01.560 --> 05:05.370
Here are some network managers and etcetera.

05:05.370 --> 05:06.780
So I will cut this here.

05:08.430 --> 05:09.960
I will update it later.

05:09.960 --> 05:11.400
And we can also.

05:12.710 --> 05:14.270
A list of installed packages here.

05:14.270 --> 05:16.020
So here.

05:16.040 --> 05:24.770
Dpkg l will list you the installed packages so you can use and navigate with a key arrow keys here.

05:24.770 --> 05:27.320
So here as you can see here.

05:28.500 --> 05:29.550
Uh, actually, let's.

05:29.550 --> 05:32.010
Let's write this command again.

05:32.490 --> 05:40.770
Dpkg l dpkg l for the debian base and rpm q a for redhat here.

05:40.770 --> 05:48.900
So in this case my system is debian and here dpkg and as you can see here we have the package names,

05:48.900 --> 05:53.280
their descriptions, their architecture and their versions.

05:57.750 --> 05:58.830
Here, as you can see here.

05:58.830 --> 05:59.370
Faridi.

05:59.370 --> 06:01.020
Quli Faridi agent.

06:01.050 --> 06:05.490
These are some pentester tools that we will use later.

06:05.520 --> 06:07.890
GCC for compilation.

06:11.450 --> 06:12.680
And etcetera.

06:17.280 --> 06:21.780
And we can also determine whether a package installed or not.

06:21.780 --> 06:25.470
So in order to do that, we will use S here.

06:25.470 --> 06:34.050
So for RedHat based systems, it's going to be RPM and after that package name for Debian, it's going

06:34.050 --> 06:38.370
to be dpkg s and our package for ready here.

06:38.370 --> 06:42.660
And as you can see here, a package paradise is installed.

06:42.660 --> 06:43.020
Okay.

06:43.020 --> 06:50.520
Installed priority optional section for python and maintainer are kali developers architecture all and

06:50.520 --> 06:58.620
python for so for example to determine whether the for example to determine where the python.

07:00.530 --> 07:03.150
Where the python is exist or not.

07:03.170 --> 07:05.270
We can also do Python three.

07:06.020 --> 07:09.140
And here, as you can see here, package python install.

07:09.170 --> 07:13.280
Okay installed optional Python installed size 7 to 9.

07:13.310 --> 07:19.400
Matthias Close architecture, Multiarch source and etcetera.

07:19.400 --> 07:24.770
And there's also a little description for our program, interactive high level object oriented language

07:24.770 --> 07:26.360
default Python three versions Python.

07:26.360 --> 07:32.000
The high level interactive object oriented language includes extensive class library with a lot of goodies

07:32.000 --> 07:37.130
for network programming system administration sounds and graphics and.

07:38.220 --> 07:40.980
Now let's actually find which package.

07:40.980 --> 07:43.010
Um, installed a file.

07:43.020 --> 07:48.390
So in order to determine what packages are responsible for the installation of a particular file, we

07:48.390 --> 08:02.250
can use the command dpkg uppercase s and for the red hat we can use rpm, q, a lowercase q and lowercase

08:02.250 --> 08:05.550
f, and after that you will enter the file name.

08:07.170 --> 08:13.680
So in this section of our course, we will we explore the main different programs covered a wide range

08:13.680 --> 08:14.870
of applications areas.

08:14.900 --> 08:20.010
And while most of these programs are commonly installed by default and we may need to install additional

08:20.010 --> 08:24.570
packages if the necessary programs are not installed on our system.

08:24.660 --> 08:31.500
So without newfound knowledge and appreciation of package management, we should have no problem installing

08:31.500 --> 08:33.720
and managing the programs we need.
