Hello everyone and welcome to this lesson.
So here we are going to use and install one
more package manager, which is known as
Brew.
One of the very very famous package managers, which has been used
in apple based systems, or you
can say mac based operating systems.
Alright, so the actual name of this particular package
manager is Homebrew, but sometimes
in short, it is generally known as
true.
So what it does as it is
a package manager, so it is going to install stuff that
you need to run into your Apple or your
Linux operating system. That is basically not
installed into your computer.
Alright, so it installed packages. It's own
directory. And then it makes Sim links
or symbolic links files into
the user local bin directories. What is
the syntax? It's very simple.
It is true and install and whatever the
package name that you require. Alright, it looks
like fairly simple now, let's jump onto
the Practical time and let's see how you can use
this.
All right.
So here the website is Brew dot
sh. So once we are over here, you can
see Homebrew the missing package manager
for Mac OS or Linux. You
can simply search any particular package
that you want over here, or you can do that
using your command prompt or your terminal
as well. Now how to install Homebrew you
simply have to copy this command and paste it
into your terminal and it will start installing Brew
or home brew into your computer.
Now the script explains what it will
do and it will pause before asking anything. You have
to give your
permission. That is basically yes in case
you want to install and you want to script to
go ahead now.
What does Homebrew actually do so it
installed packages as it is a package manager you
can update as well as remove packages using it
as well.
The command as you can see onto your right over here, which
is Brew install and the package name
that you want to install which is duplicate. For example.
So let us copy this and let's go to our
terminal.
So this is how a terminal looks like and over here.
I'm going to type or paste the command
which is grew install duplicate as Brew is already
installed into my computer. Let's verify that just
simply type the command which is true and enter and
if you are able to see example usage help
menu, which confirms that Brew is
installed.
You can also read the man page if you're
interested to see what are the possible options that
you can explore.
to use Brew
Now, let me just paste the command again and
here we are going to install wget in
my computer.
Most probably it is already installed in my computer. So
either it is going to update the package or it
is going to say that it is already installed to the
latest version.
Okay, so it was not to the latest version as I expected and you
can see it got us it gave us a sweet message saying upgrading
duplicate from version 1.20.3.2 to
1.21.1. So it is
updating the latest version for me and that's
awesome.
You can also see it is installing dependencies automatically, which
if I would have
done manually would have took a lot of time
for me as you can see the dependencies for
duplicate were these and which are automatically installed and
finally we can see installing duplicate
and done which is pouring duplicate
which basically means in Brew
language that it is successfully done.
Perfect. That's verify FW get is installed.
Let's hit enter and we should see
that yeah W get is there and it is now
to the latest version?
It was very simple and very easy to use. I
hope you guys understood how you can install duplicate and
how you can use it. Thank you.