> Why do Arch Linux pacman packages have 3 file extensions?

Why do Arch Linux pacman packages have 3 file extensions?

Posted at: 2014-12-18 
*NIX's don't actually have file extensions the for whatever.this the "," and "this" are part of the filename. "This" is just for the human being the computer most of the time. You know who some people have a hypenated last name? Ya, it's kind of like that. Run a file through tar - the default behavior is to stick a .tar on the end so a person looking at the file knows what it is right now, but what it could be if you untar'd it.

xz is a program that uses an LZ compression algorithm well suited to executable formats, tar is a program that wraps files up for linear writes onto Tape ARchives. pkg of course is the package manager for arch. Anyways it also saves time, if the file doesn't have a .pkg in the name the file manager doesn't offer up an option to open the file with pkg. You usually only do this though if you are sure the base can call the next program up in the line and rely on it to do the sensible thing (in this case pkg knows how to call tar, and tar knows how to use xz.)

The second two are archival. Tar is an archive file -- what it stores is files in a directory tree. xz is a zipped compressed format. The first one, pkg, is Arch's specific forma like rpms for Red Hat or deb for Debian.