# #软件的安装
# #1. Software name Recognition # #
[abrt-addon-ccpp]-[2.1.11-19]. [E17]. [X86_64].rpm # #rpm结尾的适用于redhat操作系统
|| || || ||
Software name software version software applicable system 64-bit
# #2. How to install software # #
1.rpm
Rpm-i name.rpm # #安装
-V name.rpm # #显示安装进度
-H name.rpm # #指定加密方式
-E name # #卸载
-QL Name # #查询软件生成文件
-QLP name.rpm # #查询软件安装后会生成什么文件
-QA # #查询系统中安装的所有软件名称
-QA |grep Name # #查询软件是否安装
-QF FileName # #查看filename属于哪个安装包
-QP name.rpm # #查询软件安装包安装后的名字
-IVH name.rpm--force # #强制安装
-qi Name # #查看软件信息
-KV name.rpm # #检测软件包是否被篡改
-QP name.rpm--scripts # #检测软件在安装或卸载过程中执行的动作
2.yum
# # #Server源端 # #
Download the ISO image file for the native system version from the Web
Rhel-server-7.1-x86_64-dvd.iso
2. Mount the Rhel-server-7.1-x86_64-dvd.iso to/mnt for easy access to 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=server
Baseurl=file:///mnt
Gpgcheck=0
4. Installing Resource sharing services
Yum Install Httpd-y
Systemctl Stop Firewalld
System Disable FIREWALLD
Systemctl Start httpd
Systemctl Enable httpd
5. About the Mount
If we want to install the software every time to mount a mirror that is very troublesome, so we need to modify the configuration file to enable automatic mount
Vim/etc/rc.d/rc.local
Add the following statement at the tail:
Mount/iso/rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.1/
. jpg
Then give it permission to execute: chmod +x/etc/rc.d/rc.local
6. 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/yum.repo
[Server]
Name=server
BASEURL=FILE:///RPM Storage Directory
Gpgcheck=0
# # #client指向端 # #
Vim/etc/yum.repos.d/yum.repo # #仓库指向文件位置
[XXXX] # #自定义软件仓库名称
NAME=XXXX # #自定义软件仓库描述
baseurl=ftp://......|http://.......|file://# #仓库位置
Gpgcheck=0 # #不检测gpgkey (Gpgkey represents the software's logo, here is 0 for allowing the installation of third-party software)
. jpg
Yum Clean All # #清空yum缓存识别新配置
# # #yum命令 # #
Yum Install Softwarename # #安装
Repolist # #列出设定yum源信息
Remove Softwarename # #卸载
List Software # #查看软件源中是否有此软件
List all # #列出所有软件名称
List Installd # #列出已经安装的软件名称
List Available # #列出可以用yum安装的软件名称
Clean All # #清空yum缓存
Search Softwareinfo # #根据软件信息搜索软件名字
Whatprovides FileName # #在yum源中查找包含filename文件的软件
Update # #更新软件
History # #查看系统软件改变历史
Reinstall Softwarename # #重新安装
Info Softwarename # #查看软件信息
Groups List # #查看软件组信息
Groups Info Softwaregroup # #查看软件组内包含的软件
Groups install Softwaregroup # #安装组件
Groups Remove Softwaregroup # #卸载组件
Basic Linux Learning (10)