Llinux Software Installation

Source: Internet
Author: User

#软件安装
# # # #1. Software name Recognition # # #

[abrt-addon-ccpp]-[2.1.11-19].[el7].[x86_64].rpm    ##rpm结尾的适用与redhat操作系统       ||           ||         ||       ||    软件名称      软件版本 软件适用系统 64位

# # # #2. How to install software # # #
1.rpm

rpm -ivh    name.rpm    ##安装 ,-v显示过程,-h指定加密方式为hash    -e  name        ##卸载    -ql name        ##查询软件生成文件    -qlp    name.rpm    ##查询软件安装后会生成什么文件    -qa         ##查询系统中安装的所有软件名称    -qa |grep name      ##查询软件是否安装    -qp name.rpm        ##查询软件安装包安装后的名字    -qf filename        ##查看filename属于那个安装包    -ivh name.rpm --force   ##强制安装,但不能忽略依赖性    -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

# # #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:///mntgpgcheck=0

4. Installing Resource sharing services

yum install httpd -ysystemctl stop firewalld  

5. Create a shared directory and hang it on the image file to a shared directory

mkdir /var/www/html/rhel7.1umount /mntmount rhel-server-7.1-x86_64-dvd.iso /var/www/html/rhel7.1

6. Testing
Enter in the browser:http://本机ip/rhel7.1
You can see what's in the image

7. Modify the native Yum source to point to

[server]name=rhel7.1baseurl=file:///var/www/html/rhel7.1gpgcheck=0

8. Boot automatically hangs in ISO

vim /etc/rc.d/rc.localmount rhel-server-7.1-x86_64-dvd.iso /var/www/html/rhel7.1
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=softwarebaseurl=file:///rpm存放目录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.1baseurl=ftp://172.25.254.40/pub/rhel7.1gpgcheck=0

yum clean all# #清空yum缓存识别新配置

# # # #yum命令 # #

yum     install     softwarename    ##安装        repolist            ##列出设定yum源信息        remove      softwarename    ##卸载        list        softwarename    ##查看软件源中是否有次软件        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   ##卸载组件

Llinux Software Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.