purpose
Basic knowledge
After downloading the source code package
Install the gcc software package (a compiler that can compile C language)
yum install -y gcc
gcc --version
Source code installation process
Unzip the source package nfts
Enter the source code package directory.
This file contains the installation and usage methods of the source code package
Configure
Execute script directly
Compile-make
Direct input
make
Created as shown below
Install-make-install
# make install
View the disk:
fdisk -l: You can see the file system of Windows,
Linux accessing Windows
创建挂载点:mkdir /mnt/windows
挂载: nfts-3g /dev/sda1 /mnt/windows/
查看挂载信息:df -hT
You can try to enter the disk to view the file
after mounting on sda2 , and you can use cp to copy
Use of rpm
统计当前计算机安装多少软件包rpm -qa | wc -l
Install and upgrade
rpm package building steps
1. Unzip the source package, here is nfts as an example
2. Installation tool
yum install rpm-build -y
Generate rpmrebuild directory (abc.spac casually write)
3. Copy to working directory
4. Make the spec file in the SPECS directory. The
extension must be at the end of spec.
Declare the directory
5. Build the RPM package.
Build successfully.
Check whether the rpm is made.
6. Installation test
Use YUM source