Software Installation for Linux

Source: Internet
Author: User

Software name recognition
[abrt-addon-ccpp]-[2.1.11-19]. [El7]. [x86_64].rpm
||             ||              || ||
Software name software version applicable version software applicable system 64-bit


2. How to install the software
1.rpm
RPM-IVH name.rpm Installation,-V display procedure,-h specifies the encryption method is hash
-E name Uninstall
-QL name query software generation file
-QLP name.rpm What files will be generated after the installation of the query software
-QA all software names installed in the query system
-QA |grep name query software is installed
-Q Name
-QP name.rpm Query Software installation package name after installation
-QF filename View filename belongs to the installation package
-IVH name.rpm--force Mandatory installation, but cannot ignore dependencies
-IVH name.rpm--nodeps--force ignoring dependencies and forcing installation
-qi name View software information

-KV NAME.RPM detects if the package is tampered with, tampering with keyID shows bad

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/1B/wKioL1l53wHi--S2AAGPiRDGZJI427.png "title=" Screenshot from 2017-07-27 13-14-52.png "alt=" Wkiol1l53whi--s2aagpirdgzji427.png "/>


-QP name.rpm--scripts detects actions performed by the software during installation or uninstallation to view the actions taken by the file execution

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/1B/wKiom1l53xWB9nS4AAEC_ZfSiUU289.png "title=" Screenshot from 2017-07-27 13-19-11.png "alt=" Wkiom1l53xwb9ns4aaec_zfsiuu289.png "/>


RPM Installation Package Disassembly
Rpm2cpio xxxxxxxx.rpm | Cpio-id files can be disassembled to restore individual files without reinstalling the software

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9D/1B/wKiom1l53j3wb2U3AAAymVIVtw4963.png "title=" Screenshot from 2017-07-27 17-29-34.png "alt=" Wkiom1l53j3wb2u3aaaymvivtw4963.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9D/1B/wKioL1l53onwnI_bAABqycHCSYc286.png "title=" Screenshot from 2017-07-27 17-30-50.png "alt=" Wkiol1l53onwni_baabqychcsyc286.png "/>


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 Source Side


Local Yum Source

1. iso image file matching from the network up-down native system version
Rhel-server-7.2-x86_64-dvd.iso

2. Hang the/iso/rhel-server-7.2-x86_64-dvd.iso to/rhel7.2 to access the files in the image
mount/iso/rhel-server-7.2-x86_64-dvd.iso/rhel7.2

3. Configure the native Yum source to point to
rm-fr/etc/yum.repos.d/*
Vim/etc/yum.repos.d/yum.repo
[rhel7.2]
name=rhel7.2
baseurl=file:///rhel7.2
Gpgcheck=0


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9D/1C/wKiom1l56krxO6DsAACigkOjn1A980.png "title=" Screenshot from 2017-07-27 21-26-28.png "alt=" Wkiom1l56krxo6dsaacigkojn1a980.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9D/1C/wKioL1l56n2g95v4AAAo3YH0tMQ497.png "style=" float : none; "title=" screenshot from 2017-07-27 14-02-42.png "alt=" Wkiol1l56n2g95v4aaao3yh0tmq497.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/1C/wKioL1l56oCgSHqsAABxzWWafe0874.png "style=" float : none; "title=" screenshot from 2017-07-27 14-02-58.png "alt=" Wkiol1l56ocgshqsaabxzwwafe0874.png "/>


HTTP Service Yum Source

1. Installing Resource sharing services
Yum Install Httpd-y
Systemctl Stop Firewalld
Systemctl Disable FIREWALLD
Systemctl Start httpd
Systemctl Enable httpd

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/1C/wKioL1l57FyCp18_AAB37wVvkO0597.png "title=" Screenshot from 2017-07-27 14-56-32.png "alt=" Wkiol1l57fycp18_aab37wvvko0597.png "/>
2. Create a shared directory and hang it on the image file to a shared directory
mkdir/var/www/html/rhel7.2
Mount rhel-server-7.2-x86_64-dvd.iso/var/www/html/rhel7.1
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9D/1C/wKioL1l57Luxxxk9AABZzEorkrQ945.png "title=" Screenshot from 2017-07-27 14-58-32.png "alt=" Wkiol1l57luxxxk9aabzzeorkrq945.png "/>

3. Testing
In the browser, type: http://172.25.254.28/rhel7.2
You can see what's in the image

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9D/1C/wKioL1l57PTi0zfqAACB-wy9pCk671.png "title=" Screenshot from 2017-07-27 14-59-10.png "alt=" Wkiol1l57pti0zfqaacb-wy9pck671.png "/>
4. Modify the native Yum source to point to

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9D/1C/wKioL1l57Ryjg470AAAuPMNdxxE314.png "style=" float : none; "title=" screenshot from 2017-07-27 15-10-39.png "alt=" Wkiol1l57ryjg470aaaupmndxxe314.png "/>

[Server]
name=rhel7.2
baseurl=http://172.25.254.28/rhel7.2
Gpgcheck=0

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9D/1C/wKiom1l57SHCbvY9AAA4oUqWTeQ953.png "style=" float : none; "title=" screenshot from 2017-07-27 15-11-02.png "alt=" Wkiom1l57shcbvy9aaa4ouqwteq953.png "/>


Building a third-party software warehouse
1. Place all RPM packages in a directory where only rpm files exist (this is an example of installing WPS)
Createrepo-v/rpm Store directory, generate Repodata directory in rpm/, including all software information


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9D/1C/wKiom1l57jTBaCmVAAF-UqiUoiA463.png "title=" Screenshot from 2017-07-27 16-01-44.png "alt=" Wkiom1l57jtbacmvaaf-uqiuoia463.png "/>


2.vim/etc/yum.repos.d/rhel7.2.repo

[rhel7.2]
name=rhel7.2
baseurl=file:///rhel7.2
Gpgcheck=0

[RPM]
name=rpm
baseurl=file:///rpm
Gpgcheck=0

Yum Clean All


650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9D/1C/wKioL1l57vrjEp5qAAF5a4jCOVY365.png "title=" Screenshot from 2017-07-27 16-24-08.png "alt=" Wkiol1l57vrjep5qaaf5a4jcovy365.png "/>


Yum Search WPS searches for WPS installation files

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9D/1C/wKiom1l570Ciacy-AAAYsBEUdio516.png "style=" float : none; "title=" screenshot from 2017-07-27 16-24-24.png "alt=" Wkiom1l570ciacy-aaaysbeudio516.png "/>


Vim/etc/yum.conf can configure masking source file information

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9D/1C/wKiom1l58OLyxCVQAAc4RRfqSjI808.png "title=" Screenshot from 2017-07-27 16-42-17.png "alt=" Wkiom1l58olyxcvqaac4rrfqsji808.png "/>



How to install using third-party software

1. Put the RPM package into the/rpm directory, re-use Createrepo more Repodata file

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9D/1C/wKioL1l58nfBNV7dAAFmNpKxzBw821.png "style=" float : none; "title=" screenshot from 2017-07-27 16-54-36.png "alt=" Wkiol1l58nfbnv7daafmnpkxzbw821.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/1C/wKiom1l58nij4sPhAAAXhqBU8NI883.png "style=" float : none; "title=" screenshot from 2017-07-27 17-02-50.png "alt=" Wkiom1l58nij4sphaaaxhqbu8ni883.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9D/1C/wKioL1l58nvxRtuqAAAU-x6Pw2g564.png "style=" float : none; "title=" screenshot from 2017-07-27 17-02-58.png "alt=" Wkiol1l58nvxrtuqaaau-x6pw2g564.png "/>

2. Search for installation player software MPlayer

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9D/1C/wKioL1l58nvx9yzcAAAXTu8M9kc571.png "style=" float : none; "title=" screenshot from 2017-07-27 17-03-09.png "alt=" Wkiol1l58nvx9yzcaaaxtu8m9kc571.png "/>

2. Review the installation MPlayer build file to determine the software use command

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/1C/wKiom1l58n3TbQp-AAA3yjbcf_c101.png "style=" float : none; "title=" screenshot from 2017-07-27 17-06-19.png "alt=" Wkiom1l58n3tbqp-aaa3yjbcf_c101.png "/>

3. Determined by/usr/bin/mplayer Use command for MPlayer, execute command mplayer name to play video

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9D/1C/wKiom1l58oOBQyCXAAKjfGHCW7Y401.png "style=" float : none; "title=" screenshot from 2017-07-27 17-14-29.png "alt=" Wkiom1l58oobqycxaakjfghcw7y401.png "/>



Boot auto mount ISO settings
Vim/etc/rc.d/rc.local
Mount rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.2
chmod +x/etc/rc.d/rc.local


Yum Command
Yum Install Softwarename Installation
Repolist List settings Yum source information
Remove Softwarename Uninstall
List Softwarename See if there is a second software in the software source
List all lists all software names
List installed lists the software names that have been installed
List available lists the software names that can be installed with Yum
Clean all empties the Yum cache
Search Softwareinfo software names based on software information
Whatprovides filename finds the package containing the filename file in the Yum source
Update Updates Software
History View System software changes
Reinstall Softwarename Reinstall
Info Softwarename viewing software information
Groups List View software group information
Groups Info Softwaregroup View software included in the software group
Groups Install Softwaregroup Installation Kit
Groups remove Softwaregroup unload assembly



Software Installation for Linux

Related Article

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.