first, the Linux software name version identification 650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9D/40/wKiom1l8cIyQ-jj3AABy0kEIMlY663.png "title=" N ' Df1[bo~uf (0 (acimpmse8.png "alt=" Wkiom1l8ciyq-jj3aaby0keimly663.png "/>
Second, Linux rpm installation software
Rpm-q Name |
Query whether the software is installed |
RPM-IVH name.rpm |
Installing the Software |
RPM-E Name |
Uninstalling software |
RPM-QL Name |
Querying software generation files |
RPM-QLP name.rpm |
What files are generated when you query the system for installation |
Rpm-qa |gerp name.rpm |
Query whether the software is installed |
Rpm-qa |
Querying the name of all software in the system |
RPM-QC Name |
View the configuration files for installed software |
RPM-QP name.rpm |
Query the software installed name |
RPM-IVH name.rpm--force |
Force installation but cannot ignore file dependencies |
RPM-IVH name.rpm--nodeps--force |
Ignore dependencies and force installation |
Rpm-qi Name |
View software Information |
RPM-KV name.rpm |
Detects if the software has been changed |
RPM-QP name.rpm--scripts |
View the actions of the software during the installation or uninstallation process |
Note: RPM installation software is not a good solution for dependencies between different RPMs, and the following Yum can be a good solution for installing dependencies between different installation packages.
Second, Linux yum installation software
Although Yum can be a good solution to the dependency between RPMs, there must be a Yum source before using Yum.
Yum Install Softwarename |
Installing the Software |
Yum Repolist |
List Yum Source information |
Yum Remove Softwarename |
Uninstalling software |
Yum List Softwarename |
See if the software source has software |
Yum List |
List all software names |
Yum List installed |
List the names of installed software |
Yum available |
List software names that can be installed with Yum |
Yum Clean All |
Emptying the Yum cache |
Yum Search Softwareinfo (features of the software) |
Search software name based on software information |
Yum whatprovides filename |
Find the package containing the filename in the Yum source |
Yum Update |
Update Software |
Yum history |
View System software changes history |
Yum Reinstall Softwarename
|
Re-install |
Yum Info softwarename |
View software Information |
Yum Groups list |
View Software group information |
Yum Groups Info Softwaregroup |
View Software group information |
Yum Groups install Softwaregroup |
Installing components |
Yum groups Remove Softwaregroup |
Uninstalling components |
1, download the local ISO image file on the network, and make it into a yam source.
1. Delete all files under the/etc/yum.repos.d/directory in this machine, and it is best to back it up.
Vim/etc/yum.repos.d/rhel.repo[server] #自定义软件仓库名称name =rhel7.0 #自定义软件仓库描述 baseurl=file:///var/www/html/rhel7.0 #将本地的 Image as Yum source gpgcheck=0 #不检测gpgkey
2. Mount the downloaded ISO file to the/var/www/html/rhel7.1 directory
Mount rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.1
This is for the sake of convenience to make the host known as the network Yum source, so he mounted to the HTTP service's default Site Directory
Then execute yum clean all to empty the Yum cache to identify the new configuration
Note: If you have a local Yum source, you can continue to add a mirrored address to the Rhel.repo file in the/ETC/YUM.REPOS.D directory, for example, my/tools contains a large number of third-party software RPM packages:
[Server2]name=rhel7.0baseurl=file:///toolsgpgcheck=0
After you add the save, empty the Yum cache to identify the new configuration, and if you perform Yum to install the third-party software, the following error will appear at the bottom:
Failure:repodata/repomd.xml from soft: [Errno) No more mirrors to Try.file:///tools/repodata/repomd.xml: [Errno] C Url#37-"couldn ' t open file/tools/repodata/repomd.xml"
He suggested that the/tools/repodata/directory was not repomd.xml file, you need to execute createrepo-v this command, add RPM to the DB database, this will appear repodata this directory, so you
Createrepo-v/tools[[email protected] yum.repos.d]# ll/tools |grep repodatadrwxr-xr-x 2 root root 4096 Jul 28 2 2:23 Repodata
2. Use the host as a Yum source for other machines: for example, virtual machines
Depending on the Yum source with the host on top, do the following
On the host:
Download install httpd service: Yum install httpd-y
You can see the input 172.25.254.31/rhel7.0 in the browser
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9D/3F/wKioL1l8bFvQJlZUAABcQ2FSlwQ014.png "title=" Screenshot from 2017-07-29 10-26-30.png "alt=" Wkiol1l8bfvqjlzuaabcq2fslwq014.png "/>
on other machines, delete all files under the/etc/yum.repos.d/directory, preferably back up .
vim/etc/yum.repos.d/rhel.repo[client]name=rhel7.0baseurl=172.25.254.31/rhel7.0 gpgcheck=0# Execute yum Clean all # after exiting save Emptying the Yum cache
3, the Yum source on the network as the host's Yum source
Root above the client machine above the configuration is basically the same, but its Yum source repository of different URLs, but also in addition to the/etc/yum.repos.d/directory files.
Vim/etc/yum.repos.d/rhel.repo[rhel7.0]name=rhel7.0baseurl= here fill out your Yum source URL gpgcheck=0# exit Save and execute yum clean all #清空yum缓存
4. Shielding certain installation packages
Add the following line in the/etc/yum.conf
Exclude *.x86_64 #屏蔽所有64位安装包, don't forget yum clean all clears yum cache
This article is from the "13122323" blog, please be sure to keep this source http://13132323.blog.51cto.com/13122323/1951991
Linux Software Installation