1 00:00:01,640 --> 00:00:06,180 Packages can be uninstalled using either the high level or low level tools. 2 00:00:06,200 --> 00:00:12,560 So in debian we will use the package management apt aptitude here. 3 00:00:12,830 --> 00:00:13,520 APT. 4 00:00:14,510 --> 00:00:17,570 Get remove and package name. 5 00:00:17,570 --> 00:00:23,750 So you will enter the package name after that name. 6 00:00:24,600 --> 00:00:29,710 Uh, so we can also install the package by using the dpkg as we learned earlier. 7 00:00:29,730 --> 00:00:30,870 Dpkg here. 8 00:00:30,870 --> 00:00:33,990 And after that you will enter the instead of package name you need. 9 00:00:34,140 --> 00:00:38,160 If you are entering the dpkg you will enter the package file. 10 00:00:38,280 --> 00:00:43,960 So and in red hat it's going to be rpm and package file again. 11 00:00:43,980 --> 00:00:45,260 Package file. 12 00:00:45,270 --> 00: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 13 00:00:52,830 --> 00:01:00,750 downloaded from a run repository file, it will be installed like that way here E and Google Google 14 00:01:00,750 --> 00:01:06,100 dot RPM or Google Chrome dot rpm. 15 00:01:06,120 --> 00:01:07,830 And for the. 16 00:01:08,810 --> 00:01:12,120 Ubuntu or ubuntu like debian like systems. 17 00:01:12,140 --> 00:01:13,880 It's going to be dpkg. 18 00:01:15,230 --> 00:01:15,940 DPG. 19 00:01:17,490 --> 00:01:18,030 E here. 20 00:01:18,030 --> 00:01:23,430 And after that you will enter the file that you installed specifically for Debian based systems apt 21 00:01:23,460 --> 00:01:23,700 here. 22 00:01:23,700 --> 00:01:26,520 So in this case it's going to be the. 23 00:01:28,140 --> 00:01:30,480 Chrome or Google Chrome. 24 00:01:30,780 --> 00:01:34,110 Google Chrome dot deb here. 25 00:01:34,200 --> 00:01:40,350 So mostly it's a deb file, but there's also another file extensions for that and for removing packages 26 00:01:40,350 --> 00:01:45,680 and packages can be installed using either the high level or low level tools, as I said earlier. 27 00:01:45,690 --> 00:01:52,200 So for Debian you can also use the sudo if you have problems with permissions and etcetera. 28 00:01:52,200 --> 00:01:57,990 But here apt get remove and after that you will enter the package name. 29 00:01:59,620 --> 00:02:03,010 And instead of a ticket you can also use APT alone. 30 00:02:03,010 --> 00:02:05,380 But it's your choice. 31 00:02:05,560 --> 00:02:08,230 And here, as you can see here, the permission denied. 32 00:02:08,230 --> 00:02:13,430 So I will enter the sudo to use the superuser and signs it will. 33 00:02:13,720 --> 00:02:16,750 There will be no package like package name. 34 00:02:16,750 --> 00:02:17,890 It will do nothing here. 35 00:02:25,360 --> 00:02:26,080 Here, let me. 36 00:02:32,340 --> 00:02:34,170 As I enter the password. 37 00:02:40,250 --> 00:02:40,670 Okay. 38 00:02:41,410 --> 00:02:48,730 So, for example, if you want to remove the Google Chrome, you will enter the APT get remove the Google 39 00:02:48,730 --> 00:02:54,070 Chrome here and it will remove your Google Chrome application that you installed previously in your 40 00:02:54,070 --> 00:02:55,270 system here. 41 00:02:55,270 --> 00:02:58,300 And as you can see, unable to locate the Google Chrome. 42 00:02:58,390 --> 00:03:03,280 That's because the Google Chrome is not installed and this is not a proper Google Chrome package name. 43 00:03:03,280 --> 00:03:04,030 It's the Google Chrome. 44 00:03:04,030 --> 00:03:06,940 Is something like that A Chrome. 45 00:03:07,720 --> 00:03:09,700 And version name like this. 46 00:03:10,090 --> 00:03:12,940 So you can also update the packages from a repository. 47 00:03:13,030 --> 00:03:18,460 And the most common package management task is keeping the system up to date with the latest versions 48 00:03:18,460 --> 00:03:19,450 of packages. 49 00:03:19,450 --> 00:03:23,510 The high level tools can perform this vital task in a single step. 50 00:03:23,530 --> 00:03:34,300 This apt get update and actually we can also sudo apt get update and apt After that you can also write 51 00:03:34,330 --> 00:03:38,050 apt get upgrade which here. 52 00:03:38,050 --> 00:03:42,040 Now we're going to update the repositories right here after that. 53 00:04:05,610 --> 00:04:06,510 I think it's done. 54 00:04:13,840 --> 00:04:18,160 So after that you will enter the apt get upgrade. 55 00:04:18,250 --> 00:04:24,550 And here we also need to use the sudo command right here and here it will update. 56 00:04:24,550 --> 00:04:29,440 So after this operation, 149MB disk space will be freed. 57 00:04:30,160 --> 00:04:30,940 Yes. 58 00:04:31,650 --> 00:04:38,160 And here, as you can see, we upgrading our packages that we updated previously, we updated our repositories 59 00:04:38,160 --> 00:04:41,400 and then we upgrading our packages and programs. 60 00:04:41,400 --> 00:04:48,000 So, for example, to apply all available updates, updates to be installed packages on the Debian style, 61 00:04:48,000 --> 00:04:52,680 we can use the upgrade in order to do this process here. 62 00:04:54,200 --> 00:04:54,980 As you can see here. 63 00:04:54,980 --> 00:05:00,410 Now I'm updating some modules, some libraries, Python three libraries. 64 00:05:01,560 --> 00:05:05,370 Here are some network managers and etcetera. 65 00:05:05,370 --> 00:05:06,780 So I will cut this here. 66 00:05:08,430 --> 00:05:09,960 I will update it later. 67 00:05:09,960 --> 00:05:11,400 And we can also. 68 00:05:12,710 --> 00:05:14,270 A list of installed packages here. 69 00:05:14,270 --> 00:05:16,020 So here. 70 00:05:16,040 --> 00:05:24,770 Dpkg l will list you the installed packages so you can use and navigate with a key arrow keys here. 71 00:05:24,770 --> 00:05:27,320 So here as you can see here. 72 00:05:28,500 --> 00:05:29,550 Uh, actually, let's. 73 00:05:29,550 --> 00:05:32,010 Let's write this command again. 74 00:05:32,490 --> 00:05:40,770 Dpkg l dpkg l for the debian base and rpm q a for redhat here. 75 00:05:40,770 --> 00: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, 76 00:05:48,900 --> 00:05:53,280 their descriptions, their architecture and their versions. 77 00:05:57,750 --> 00:05:58,830 Here, as you can see here. 78 00:05:58,830 --> 00:05:59,370 Faridi. 79 00:05:59,370 --> 00:06:01,020 Quli Faridi agent. 80 00:06:01,050 --> 00:06:05,490 These are some pentester tools that we will use later. 81 00:06:05,520 --> 00:06:07,890 GCC for compilation. 82 00:06:11,450 --> 00:06:12,680 And etcetera. 83 00:06:17,280 --> 00:06:21,780 And we can also determine whether a package installed or not. 84 00:06:21,780 --> 00:06:25,470 So in order to do that, we will use S here. 85 00:06:25,470 --> 00:06:34,050 So for RedHat based systems, it's going to be RPM and after that package name for Debian, it's going 86 00:06:34,050 --> 00:06:38,370 to be dpkg s and our package for ready here. 87 00:06:38,370 --> 00:06:42,660 And as you can see here, a package paradise is installed. 88 00:06:42,660 --> 00:06:43,020 Okay. 89 00:06:43,020 --> 00:06:50,520 Installed priority optional section for python and maintainer are kali developers architecture all and 90 00:06:50,520 --> 00:06:58,620 python for so for example to determine whether the for example to determine where the python. 91 00:07:00,530 --> 00:07:03,150 Where the python is exist or not. 92 00:07:03,170 --> 00:07:05,270 We can also do Python three. 93 00:07:06,020 --> 00:07:09,140 And here, as you can see here, package python install. 94 00:07:09,170 --> 00:07:13,280 Okay installed optional Python installed size 7 to 9. 95 00:07:13,310 --> 00:07:19,400 Matthias Close architecture, Multiarch source and etcetera. 96 00:07:19,400 --> 00:07:24,770 And there's also a little description for our program, interactive high level object oriented language 97 00:07:24,770 --> 00:07:26,360 default Python three versions Python. 98 00:07:26,360 --> 00:07:32,000 The high level interactive object oriented language includes extensive class library with a lot of goodies 99 00:07:32,000 --> 00:07:37,130 for network programming system administration sounds and graphics and. 100 00:07:38,220 --> 00:07:40,980 Now let's actually find which package. 101 00:07:40,980 --> 00:07:43,010 Um, installed a file. 102 00:07:43,020 --> 00:07:48,390 So in order to determine what packages are responsible for the installation of a particular file, we 103 00:07:48,390 --> 00: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 104 00:08:02,250 --> 00:08:05,550 f, and after that you will enter the file name. 105 00:08:07,170 --> 00:08:13,680 So in this section of our course, we will we explore the main different programs covered a wide range 106 00:08:13,680 --> 00:08:14,870 of applications areas. 107 00:08:14,900 --> 00:08:20,010 And while most of these programs are commonly installed by default and we may need to install additional 108 00:08:20,010 --> 00:08:24,570 packages if the necessary programs are not installed on our system. 109 00:08:24,660 --> 00:08:31,500 So without newfound knowledge and appreciation of package management, we should have no problem installing 110 00:08:31,500 --> 00:08:33,720 and managing the programs we need.