Packages can be uninstalled using either the high level or low level tools.
So in debian we will use the package management apt aptitude here.
APT.
Get remove and package name.
So you will enter the package name after that name.
Uh, so we can also install the package by using the dpkg as we learned earlier.
Dpkg here.
And after that you will enter the instead of package name you need.
If you are entering the dpkg you will enter the package file.
So and in red hat it's going to be rpm and package file again.
Package file.
So for example, if we if you want to enter the Google Chrome, you will in RPM and the file had been
downloaded from a run repository file, it will be installed like that way here E and Google Google
dot RPM or Google Chrome dot rpm.
And for the.
Ubuntu or ubuntu like debian like systems.
It's going to be dpkg.
DPG.
E here.
And after that you will enter the file that you installed specifically for Debian based systems apt
here.
So in this case it's going to be the.
Chrome or Google Chrome.
Google Chrome dot deb here.
So mostly it's a deb file, but there's also another file extensions for that and for removing packages
and packages can be installed using either the high level or low level tools, as I said earlier.
So for Debian you can also use the sudo if you have problems with permissions and etcetera.
But here apt get remove and after that you will enter the package name.
And instead of a ticket you can also use APT alone.
But it's your choice.
And here, as you can see here, the permission denied.
So I will enter the sudo to use the superuser and signs it will.
There will be no package like package name.
It will do nothing here.
Here, let me.
As I enter the password.
Okay.
So, for example, if you want to remove the Google Chrome, you will enter the APT get remove the Google
Chrome here and it will remove your Google Chrome application that you installed previously in your
system here.
And as you can see, unable to locate the Google Chrome.
That's because the Google Chrome is not installed and this is not a proper Google Chrome package name.
It's the Google Chrome.
Is something like that A Chrome.
And version name like this.
So you can also update the packages from a repository.
And the most common package management task is keeping the system up to date with the latest versions
of packages.
The high level tools can perform this vital task in a single step.
This apt get update and actually we can also sudo apt get update and apt After that you can also write
apt get upgrade which here.
Now we're going to update the repositories right here after that.
I think it's done.
So after that you will enter the apt get upgrade.
And here we also need to use the sudo command right here and here it will update.
So after this operation, 149MB disk space will be freed.
Yes.
And here, as you can see, we upgrading our packages that we updated previously, we updated our repositories
and then we upgrading our packages and programs.
So, for example, to apply all available updates, updates to be installed packages on the Debian style,
we can use the upgrade in order to do this process here.
As you can see here.
Now I'm updating some modules, some libraries, Python three libraries.
Here are some network managers and etcetera.
So I will cut this here.
I will update it later.
And we can also.
A list of installed packages here.
So here.
Dpkg l will list you the installed packages so you can use and navigate with a key arrow keys here.
So here as you can see here.
Uh, actually, let's.
Let's write this command again.
Dpkg l dpkg l for the debian base and rpm q a for redhat here.
So in this case my system is debian and here dpkg and as you can see here we have the package names,
their descriptions, their architecture and their versions.
Here, as you can see here.
Faridi.
Quli Faridi agent.
These are some pentester tools that we will use later.
GCC for compilation.
And etcetera.
And we can also determine whether a package installed or not.
So in order to do that, we will use S here.
So for RedHat based systems, it's going to be RPM and after that package name for Debian, it's going
to be dpkg s and our package for ready here.
And as you can see here, a package paradise is installed.
Okay.
Installed priority optional section for python and maintainer are kali developers architecture all and
python for so for example to determine whether the for example to determine where the python.
Where the python is exist or not.
We can also do Python three.
And here, as you can see here, package python install.
Okay installed optional Python installed size 7 to 9.
Matthias Close architecture, Multiarch source and etcetera.
And there's also a little description for our program, interactive high level object oriented language
default Python three versions Python.
The high level interactive object oriented language includes extensive class library with a lot of goodies
for network programming system administration sounds and graphics and.
Now let's actually find which package.
Um, installed a file.
So in order to determine what packages are responsible for the installation of a particular file, we
can use the command dpkg uppercase s and for the red hat we can use rpm, q, a lowercase q and lowercase
f, and after that you will enter the file name.
So in this section of our course, we will we explore the main different programs covered a wide range
of applications areas.
And while most of these programs are commonly installed by default and we may need to install additional
packages if the necessary programs are not installed on our system.
So without newfound knowledge and appreciation of package management, we should have no problem installing
and managing the programs we need.