Upstream - Software developers. Those who create the software Downstream - Linux distros and end users. Those who download and use the software
Archives
tar xffor extracting files from a tarballgzip -cdfor explicity decompressing GZIP archivesbunzip2 -cdfor explicitly decompressing BZIP2 archives- ZIP files use GZIP compression but use their own internal indexing
- ZIP files do not preserve the original Unix ownerid or file permissions
- Use
unzipto extract ZIP archives
- Security - Unpack files as a normal user, not as root
- This measure is to prevent unintended file overwrites
- The file-owner settings are only preserved when extracting as root. If you want to preserve them for whatever reason and you know what you’re doing, extract as root
Patching
- Patches may be released in the following forms
- A
sed/awkcommand - A shell script containing
sed/awkcommands - A patch file
- A
- Apply patches only if you know it’s safe
sed/awkapplies regexes to text files to make internal changes to them.awkis capable of applying more complex transformations thansedin most cases- A patch file is made using the output of the
diffcommanddiffoutputs the differences between two files being compared- The patch files applies the output of
diffto the file that should be updated
Questions
- Which protocol is better for downloading files? HTTP or FTP? HTTP is the popular and modern protocol for file downloading but there’s a source that says FTP is better for downloading large files while HTTP is better for smaller files → use HTTPS
- Anonymous FTP is old and isn’t used a lot these days (it even predates TCP/IP)
Source: https://moi.vonos.net/linux/beginners-installing-from-source/