Install and manage software packages

purpose

Insert picture description here

Basic knowledge

Insert picture description here

Insert picture description here
After downloading the source code package

Insert picture description here
Install the gcc software package (a compiler that can compile C language)

yum install -y gcc
gcc --version

Source code installation process
Insert picture description here

Unzip the source package nfts

Enter the source code package directory.
Insert picture description here
This file contains the installation and usage methods of the source code package
Insert picture description here

Configure

Execute script directly
Insert picture description here

Compile-make

Direct input

make

Created as shown below
Insert picture description here

Install-make-install

# make install

View the disk:

fdisk -l: You can see the file system of Windows,
fdisk
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
Insert picture description here
after mounting on sda2 , and you can use cp to copy
Insert picture description here

Insert picture description here
Insert picture description here

Use of rpm

Insert picture description here

统计当前计算机安装多少软件包rpm -qa |  wc -l

Insert picture description here
Install and upgrade
Insert picture description here

rpm package building steps

Insert picture description here
1. Unzip the source package, here is nfts as an example
Insert picture description here
2. Installation tool

yum install rpm-build 	-y

Generate rpmrebuild directory (abc.spac casually write)
Insert picture description here
Insert picture description here

3. Copy to working directory
Insert picture description here
Insert picture description here

4. Make the spec file in the SPECS directory. The
extension must be at the end of spec.
Insert picture description here
Insert picture description here
Declare the directory
Insert picture description here

5. Build the RPM package.
Insert picture description here
Build successfully.
Insert picture description here
Check whether the rpm is made.
Insert picture description here

6. Installation test
Insert picture description here

Use YUM source

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45849066/article/details/113060486