Package Types
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
>> Hello Cybrarians and welcome back
00:00
>> to the Linux plus course here at Cybrary.
00:00
>> I'm your instructor Rob Goelz.
00:00
In today's lesson, we're going to
00:00
be discussing package types.
00:00
Upon completion of today's lesson,
00:00
you're going to be able to explain
00:00
the different types of packages,
00:00
and differentiate between rpm, deb,
00:00
tar, tgz, and gz packages.
00:00
Right off the bat, our first type
00:00
of package is the rpm package,
00:00
and this was the Red Hat Package Manager
00:00
or rpm created by Red Hat naturally.
00:00
Now rpm packages are used
00:00
>> by a lot of different distributions,
00:00
>> a lot of different Red Hat
00:00
based distributions like CentOS,
00:00
Fedora and Scientific Linux.
00:00
Don't let the name fool you.
00:00
It's not just for Red Hat.
00:00
Now, rpm packages are installed
00:00
>> with the aptly-named rpm command,
00:00
>> and we'll use that in the next lesson.
00:00
The deb package is used
00:00
by distributions that are based on Debian.
00:00
For example, the Ubuntu system
00:00
>> that we've been using in our demo environment
00:00
>> as we've done through our lessons.
00:00
The dpkg command is what's used
00:00
to install these deb packages on ubuntu,
00:00
and other Debian based systems,
00:00
and we'll get to work with dpkg later in this module.
00:00
Now the tape archiver tar, gz and tgz files
00:00
>> aren't strictly speaking packages
00:00
>> in the same sense that rpm, and dpkg are,
00:00
>> because we can install rpm with the rpm command.
00:00
>> We can stall deb packages with dpkg.
00:00
These are really just archives
00:00
>> or compressed files that we have,
00:00
>> and we'll talk a bit more about
00:00
that in just a second here.
00:00
But the tape archiver or tar files
00:00
>> to tape archiver program is used
00:00
>> a bundle files together in a tar file.
00:00
As I said, tar is not necessarily
00:00
>> used to install software.
00:00
>> The gz program allows you to compress or zip
00:00
files and then they get the gz extension,
00:00
and then we can take tar, and gzip,
00:00
and work with them together to compress a file.
00:00
Tar files can be compressed with gzip,
00:00
and the output looks like file.tar.gz.
00:00
But you can actually combine the two of them together,
00:00
and that's how you get the tgz extension.
00:00
The tar command compresses the files.
00:00
It has an option to compress
00:00
the files as it does the archiving,
00:00
and it can create a file like file.tgz.
00:00
Now you might be asking why would you use tar,
00:00
tgz over rpm, and dpkg?
00:00
Why would you pick a tar file over package file
00:00
>> that has a built-in installer program.
00:00
>> The reason that you have this covered here is because
00:00
software maintainers distribute source code a lot.
00:00
That code is uncompiled,
00:00
which means not only is it not in a package format,
00:00
it's not even really built yet.
00:00
For these software maintainers,
00:00
it's just more efficient for them
00:00
>> to bundle their software up
00:00
>> into a tar or tgz archive file,
00:00
>> and then send it over.
00:00
>> In this lesson we covered the different package types,
00:00
rpm, deb tar, gz and tgz,
00:00
>> and we talked about why tar, and tgz
00:00
>> are used in place of an rpm or deb package.
00:00
>> Thanks so much for being here,
00:00
and I look forward to seeing you in our next lesson.
Up Next
Instructed By
Similar Content