0:00 Hello all, I'm Pradeep. Let me explain you Homebrew or Brew. Brew is a package manager which is used mostly in Mac, but also it has support for Linux.
0:13 So what it can do is, it can update your packages, upgrade your packages, and install new packages, uninstall packages. These kind of tasks can be done by Brew.
0:27 So let me tell you what Brew does now here. Brew Update. What Brew Update does is, it updates the repository details of the packages.
0:38 So each package will have its own repository. So Brew Update will fetch the latest details about the package from the The repository And it updates the information in the system.
0:58 Yeah, mine is already up to date. Otherwise it will show that, uh, updated this package, updated that package, etc. Then, there is this brew upgrade command.
1:10 So what brew upgrade does is, you already have a tool or a application or a package which is already installed, but that version is, for example, 1.1, then an upgrade is possible when you did a brew update and it got a new package, uh, version, and then that will be, uh, upgraded here.
1:34 Let's see what are the packages that are available for an upgrade.
1:47 Yeah, see here, there are many of my packages which can be upgraded.
1:58 So these are getting upgraded. First it downloads, then put the files into the place, and then, uh, it's all done.
2:11 And there is one more thing called Brew Cleanup. What this does is, uh, Uh, old residual files, and, uh, old package details, like that.
2:27 And it saves you some, some kind of a memory, or a disk space. So I'll show you that as well, and let's see what it does.
2:43 Yeah, most of them are done. BlueprintApp. So, let me see what it does.
2:59 Yeah, see, it is removing some of the the space.
3:11 For example, here, 5.9 MB, 5.9 MB. Uh, there are so many files that are getting removed, and it saved me, like, 118 MB of disk space.
3:29 That's somewhat better, and usually Mac has a, less space. So, this is good for me. And how do you do an install of a package?
3:44 So,
3:44 I'll show you now how to install and uninstall a package. I'll choose a simple package that will be wget and I'll install it.
3:50 It's a brew install package name. Package name here is wget. So now it fetches the repositories and then it searches the, wget, what is the latest, and then it will install the wget package for me now.
4:12 Uh, it is installing. And once it is installed, we will verify it's installed or not. Uh, that, we can also check it using brew list.
4:30 It will show you the list of all the packages that is installed. B-R-E-W-L-I-S-T. So now, here it is. Brew list.
4:42 And the wget is installed. And how do we uninstall the packages? Simple. Brew, uninstall, package name.edit.
5:01 Now the package will be uninstalled or removed. Yeah, it is getting uninstalled.
5:15 Now we will try to see what are the packages that are available, what are the versions, like that. Uh, if you don't know the full name, I think you can search it by using brewsearch maybe like wget only, let's see.
5:33 It searches through the repositories like how we do the normal search in our, uh, uh, files and folders. The same way we can search through the homebrews repositories.
5:44 Here we have different formulas. They are like wget, wget2, wgetpaste. These could be some custom or, uh, different versions of the app.
5:59 Uh, we want that would be wget. So this we can search. Search from here and, uh, copy-paste and, uh, install it.
6:08 The same what we did earlier. Uh, let me install it so that I don't have to install it again. Yeah, this is, uh, all about, uh, brew and, uh, installing, uh, wget.
6:27 Installing, upgrading, updating, etc. Also, like, seeing what are the packages, uh, which are installed. This is, uh, what we covered today.
6:36 Let's meet in a different session on a different topic. Have a nice day. Bye-bye. Like, share, and subscribe for more.
#devops #technology #macbook #apple #ios #macos #linux #packagemanagement #apt #yum #blog #computerscience #computers