1.### #软件名称识别 # # # #
[abrt-addon-ccpp]-[2.1.11-19]. [El7]. [x86_64].rpm# #rpm结尾的适用与redhat操作系统
|| || || ||
Software name software version software applicable system 64-bit
eg:wps-office-10.1.0.5672-1.a21.x86_64.rpm
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201710/25/e5e912a253a992ea0fc1e3ee2ad360de.png-wh_500x0-wm_3 -wmp_4-s_1633597092.png "title=" screenshot from 2017-10-25 18-05-53.png "alt=" E5e912a253a992ea0fc1e3ee2ad360de.png-wh_ "/>
# # # #2. How to install software # # #
1.rpm
RPM-ivhname.rpm# #安装,-V display procedure,-h specifies the encryption method is hash
-ename # #卸载
-QLname# #查询软件生成文件
-QLPname.rpm# #查询软件安装后会生成什么文件
-qa# #查询系统中安装的所有软件名称
-QA |grep name# #查询软件是否安装
-Qname # # ....
-QP name.rpm# #查询软件安装包安装后的名字
-QF filename# #查看filename属于那个安装包
-IVH name.rpm--force# #强制安装, but cannot ignore dependencies
-IVH name.rpm--nodeps--force # #忽略依赖性并且强制安装
-qi name# #查看软件信息
-kv name.rpm# #检测软件包是否被篡改
-QP name.rpm--scripts# #检测软件在安装或卸载过程中执行的动作
2.yum
Yum
Top software management tools, the most important function is to solve the dependency relationship of software
Yum can be put into use only if there is a Yum source, and the configuration source points to the file
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201710/25/b754f241e4b562a6517a7434e1de9df0.png-wh_500x0-wm_3 -wmp_4-s_3826627681.png "title=" screenshot from 2017-10-25 18-23-44.png "style=" float:left; "alt=" B754f241e4b562a6517a7434e1de9df0.png-wh_ "/>
# # #server源端 # # #
1. iso image file matching from the network up-down native system version
Rhel-server-7.1-x86_64-dvd.iso
2. Hang the Rhel-server-7.1-x86_64-dvd.iso to/mnt to access the files in the image
Mount Rhel-server-7.1-x86_64-dvd.iso/mnt
3. Configure the native Yum source to point to
rm-fr/etc/yum.repos.d/*
Vim/etc/yum.repos.d/yum.repo
[Server]
Name=rhel7.1baseurl=file:///mnt
Gpgcheck=0
4. Installing Resource sharing services
Yum Install Httpd-y
Systemctl Stop Firewalld
Systemctl Disable FIREWALLD
Systemctl Start httpd
Systemctl Enable httpd
5. Create a shared directory and hang it on the image file to a shared directory
mkdir/var/www/html/rhel7.1
Umount/mnt
Mount rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.1
6. Testing
Enter in the browser:/HTTP//native ip/rhel7.1
You can see what's in the image
7. Modify the native Yum source to point to
[Server]
name=rhel7.1
baseurl=file:///var/www/html/rhel7.1
Gpgcheck=0
8. Boot automatically hangs in ISO
Vim/etc/rc.d/rc.local
Mount rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.1
: Wq
chmod +x/etc/rc.d/rc.local
9. Building of third-party software repositories
Put all RPM packages in a directory where only the RPM files exist
Createrepo-v/rpm Storage Directory
Vim/etc/yum.repos.d/xxx.repo
[Software]
Name=software
BASEURL=FILE:///RPM Storage Directory
Gpgcheck=0
# # # #client指向端 # #
Vim/etc/yum.repos.d/xxxx.repo# #仓库指向文件位置
[XXXX] # #自定义软件仓库名称
Name=xxxx# #自定义软件仓库描述
baseurl=ftp://|http://|file://# #仓库位置
Gpgcheck=0# #不检测gpgkey
# #gpgkey表示软件的出品logo
Example:
Vim/etc/yum.repos.d/yum.repo
[Server]
name=rhel7.1
baseurl=ftp://172.25.0.254/pub/rhel7.1
Gpgcheck=0
: Wq
Yum Clean all# #清空yum缓存识别新配置
# # # #yum命令 # #
YumInstallsoftwarename# #安装
Repolist# #列出设定yum源信息
Removesoftwarename# #卸载
Listsoftwarename# #查看软件源中是否有次软件
List all# #列出所有软件名称
List Installd# #列出已经安装的软件名称
List available# #列出可以用yum安装的软件名称
Clean all# #清空yum缓存
Searchsoftwareinfo# #根据软件信息搜索软件名字
Whatprovidesfilename# #在yum源中查找包含filename文件的软件包
Update# #更新软件
History# #查看系统软件改变历史
Reinstallsoftwarename# #重新安装
Infosoftwarename# #查看软件信息
Groups list# #查看软件组信息
Groups Infosoftwaregroup# #查看软件组内包含的软件
Groups installsoftwaregroup# #安装组件
Groups removesoftwaregroup# #卸载组件
Linux-Initial knowledge of software Installation