0%

LFS预备

从源代码安装软件

Mine of Information - Beginner’s Guide to Installing from Source

发行版会提供编译好的二进制,或者 curl wget 下载

1
2
   md5sum file-to-check
md5sum -c md5sums-file

检查,之前那个 md5sum 会列入,自动比对

tar tape archive,some time call tarball. record owner id and permission. but doesn’t compress

修改文件,通过 sed 或者 awk

sed stream editor,通过正则修改input?awk 更加强大一些,patch 是用 diff tool来着

Lesson 6 文件格式化处理命令 sed、awk、diff、patch_Gaoithe的博客-CSDN博客_格式化文件夹命令

diff和patch更新补丁_icnvd的博客-CSDN博客_手动更新patch补丁

不会,用的时候再看看怎么打补丁好了

编译语言:compile 之后放在 path 里面

解释:python 可以找到的地方

编译的时候请新建一个文件夹,免得污染环境

1
2
3
4
5
6
7
8
9
10
11
12
13
# unpack into a directory {packagename}
tar xf filename

# create separate build directory
mkdir {packagename}-build

# compile everything in the separate build directory
cd {packagename}-build
../{packagename}/configure {some options}
make

# update global directories
sudo make install

def 环境变量

1
NAME=tom ENABLE_FOO=no ./configure

LSB? Linux Standard Base (LSB) Version 5.0 (2015)

专有软件可以在linux上运行