1 00:00:06,540 --> 00:00:08,750 In this video you'll learn about software packages. 2 00:00:09,949 --> 00:00:14,724 A package is a tarball with some additions, and these additions are a script to copy 3 00:00:14,724 --> 00:00:19,500 files to the right location and also a database to keep track of what is installed. 4 00:00:20,280 --> 00:00:24,054 Packages typically focus on the software that they want to install, 5 00:00:24,054 --> 00:00:27,829 and they are written to use dependencies for related software packages. 6 00:00:29,079 --> 00:00:32,754 That means that for common features, dependencies need to be installed before 7 00:00:32,754 --> 00:00:36,429 you can install the package or while you are installing the package. 8 00:00:37,030 --> 00:00:43,219 Now, RPM is the standard package format in Red Hat, and DAP is the standard package format in Ubuntu. 9 00:00:43,859 --> 00:00:46,039 Let me show you how you can work with these packages. 10 00:00:47,259 --> 00:00:50,820 So the most important thing that you do with packages is query them. 11 00:00:51,520 --> 00:00:57,990 So when I'm using a command like RPM qa, I'm querying all packages that are currently 12 00:00:57,990 --> 00:01:04,460 in the RPM database and that might be convenient if you are looking for something. So 13 00:01:04,460 --> 00:01:10,930 rpm, qa, pipe grab, nmap, for instance, is showing that the NMAP package was installed. 14 00:01:11,489 --> 00:01:16,449 And if you want to know what's going on in these packages, use RPM QL on 15 00:01:16,449 --> 00:01:21,409 your package and that is giving a list of all the files within the package. 16 00:01:22,069 --> 00:01:27,469 But working with packages is not really the way how you want to do it nowadays. 17 00:01:28,450 --> 00:01:33,099 Nevertheless, let's also have a quick look at Ubuntu. So here we are on Ubuntu. 18 00:01:33,900 --> 00:01:38,635 D package is the name of the utility, and dpackage L is 19 00:01:38,635 --> 00:01:43,370 showing a list of all the packages that are installed on Ubuntu. 20 00:01:44,489 --> 00:01:48,094 Again, that is checking out the package database and that 21 00:01:48,094 --> 00:01:51,700 allows you to figure out which packages you've got. 22 00:01:52,200 --> 00:01:56,219 But don't worry about these packages too much. Worry about package managers.