In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1.yum [option] [query work items] [related parameters]
Options and parameters:
[option]: the main options include:
-y: when yum waits for user input, this option automatically provides a response from yes
-- installroot=/some/path: install the software on / some/path instead of using the default path
[query work items] [related parameters]: the parameters in this area are:
Search: search for important keywords for a software name or description (description)
List: lists all the software names and versions currently managed by yum, somewhat similar to rpm-qa
Info: same as above, but somewhat similar to the execution result of rpm-qai
Provides: search for software from files! Similar to rpm-qf function!
Yum [option] [work items for installation, upgrade and uninstallation] [related parameters]
Options and parameters:
Install: followed by the software to be installed!
Update: this is followed by the software to be upgraded. If you want to upgrade the whole system, you can simply update it.
Remove: followed by the software to be uninstalled
Yum [group function] [software group]
Options and parameters:
Grouplist: lists all available "software groups", such as Development Tools
Groupinfo: followed by group_name, you can learn all the software names contained in the group
Groupinstall: this works! Can install a whole group of software groups, quite good to use!
Groupremove: remove a software group
4. Change the yum source:
1. Open the yum folder of centos
Cd / etc/yum.repos.d/
Download repo file with wget
Wget http://mirrors.aliyun.com/repo/Centos-7.repo
two。 If the wget command does not take effect, the wget tool has not been installed. Enter yum-y install wget to install it.
The current directory is / etc/yum.repos.d/,. The Centos-7.repo you just downloaded is also on this directory.
3. Back up the original repo file of the system
Mv CentOs-Base.repo CentOs-Base.repo.bak (that is, rename CentOs-Base.repo-> CentOs-Base.repo.bak)
4. Replace the repo file of the system principle
Mv Centos-7.repo CentOs-Base.repo (that is, rename Centos-7.repo-> CentOs-Base.repo)
5. Execute the yum source update command
Yum clean all
Yum makecache
Yum update
Execute the above three commands in turn to complete the configuration.
5. Modify the software library:
[base]: represents the name of the software library! Square brackets must exist, and the name inside can be taken at will. But you cannot have two identical software library names.
Otherwise, yum will not know where to find the software list files related to the software library.
Name: just to explain the significance of this software library, the importance is not high!
Mirrorlist=: lists the mapping sites that can be used by this software library. If you don't want to use them, you can annotate this line.
Baseurl=: is the most important, because what follows is the actual URL of the software library! Mirrorlist is captured by the yum program on its own.
Baseurl is to specify a fixed software library URL!
Enable=1: just let the software library be started. If you don't want to start, you can use enable=0!
Gpgcheck=1: do you remember RPM's digital signature? This is to specify whether you need to consult the digital signature in the RPM file!
Gpgkey=: is the location of the digitally signed public key file! Just use the default value.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.