Hello and welcome, everyone.
So in this lesson we are going to learn about DPG, which is one of the package manager for Debian based
systems.
So I am currently logged in into my Kali Linux operating system, which is basically developed over
Debian.
Now as you can see over here, this is the Debian dot org packages subdomain wherein you can identify
all the packages that are available and can be installed using the dpkg package manager.
Over here you can see you can search for any specific package that you need to install.
So I have searched for curl because I need to install curl for demonstration.
And you can see here it is the version which is in the format which is DB, which is dot db which basically
stands for Debian.
Now here we can confirm that.
Yeah, this is what we need to install into our Debian based operating system.
Similarly, in case you want to install the end right package, you would use dot apk.
In case you need to install a US package, you would be installing dot IPA.
Now we need to download this into our computer.
Now we can see this belongs to Debian and now we have to download this and install it using dpkg.
So here it mentions and strongly suggest that we use package managers to install code, but we will
download the requested file which is cool and this is how it looks like.
Now we have successfully downloaded the latest version of Curl.
7.50 2.1, which is for Debian AMD 64 architecture and this is dot deb.
As I've already expressed, this is for Debian based systems.
Now you need to open up your terminal and you simply have to type dpkg hyphen ie wherein IE stands for
install and the part of the package that you need to install which is curl in our case, which of which
we have just downloaded.
Now you can see it did not install and there are some messages that we can see onto the screen, which
is dependency problems prevented configuration of curl.
We can clearly see that curl depends on lip curl three version which is not installed into our computer.
So we can confirm over here that whatever packages we would like to install using dpkg manually will
give us broken dependencies.
And the conclusion is that we need to install manually all the required dependencies to successfully
install a specific tool that we want.
Like curl, for example.
So what is the alternative to it?
We are going to instead use apt and the command is super simple which is apt hyphen get install and
the package name which is curl.
This will automatically install all the dependencies required for curl and successfully install and
finish it as you can see over here.
So we have now curl installed without manually installing the dependencies and we can confirm that curl
is installed by running the command curl.
Let us also see the help menu and we can see.
Yeah, it is successfully installed.
Let us see the version and here we can see.
Yeah, this is actually the latest version which is 7.70 4.0.
This is it for this lesson.
I hope you guys understood there is an easier way to install your packages than dpkg.
If you want to do it manually, definitely you can, but you have to install all the dependencies one
by one manually, which can be a tiring task for you.
So this is it for this lesson.
I hope you guys understood.
Thank you.