In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to create a yum software warehouse in Linux. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.
First, the program management of Linux system. Second, the strict authority management of linux; today we will focus on the program management of Linux system. Because people for the use of the system, always have to install the program, or called build services, such as: FTP services, SMB services, Apache services and so on. The program management of Linux system and Linux installer basically use program management software, such as centos,fedora and Redhat's yum. Linux system installers are basically downloaded and installed directly from the official website of the program developer or the corresponding distribution community. So there will be no malicious tampering and installation to the use of the computer, it is more convenient and safe to say that yum should simply mention RPM, what is RPM, RPM is the Red Hat package (Redhat Package Manager), RPM is through the establishment of a unified database file, detailed recording of software information and automatic analysis of dependencies to solve the difficulty of software package installation and management. The yum warehouse further analyzes the interdependence of the software package according to the user's needs, and automatically downloads the software package from the server and installs it to the system. In a word, the yum repository is to solve the interdependence of RPM software packages.
So how do we configure our YumSource software repository? In the whole process, we introduce the configuration method of the YumSource software repository with the Centos 7.0 software 64 system. Here we want to use the vim text compiler to create the configuration file of the yum repository. The command is as follows: [root@ecloud~] # vim / etc/yum.repos.d/centos7.repo of course, after hitting enter, there will be a blank. What should we do? press the keyboard "I" key to start typing (it is recommended to use English input mode all the time). The input format is: [] name= baseurl= enabled= gpgcheck= as shown in figure: press "esc" key. Press the ":" key and enter "wq" to save exit. In this way, our yum software repository is built, so what does it all mean? The first behavior yum warehouse unique identifier, avoid conflicts with other warehouses, self-filling (so you can write as long as it is different from other sources can be distinguished, hey). The name description of the second line of yum warehouse is equivalent to the description (required for operation and maintenance personnel) in the switch router. The third line is the download address provided for us to install the software. There are three ways, local CD CD, HTTP mode and FTP mode. The fourth line sets whether this source is available, 1 is available, 0 is not available, and when there are multiple yum sources, you need to set it differently. The fifth line sets whether to verify the file, 1 check, 0 does not check. Of course, there are unfilled "gpgkey=" and so on. If gpgkey is verified, the address of the verified public key file. [root@ecloud ~] # yum install httpd-y can check if the yum warehouse is available. At this point, our yum warehouse has been built, and you can choose the CD you purchased or the official software download website as the download address, and then you can install the service you want. It is mentioned here that this experiment uses Rui Jiangyun, who is billed on a daily basis. if you have problems with your own experiment or if you fail to build a service, you can immediately destroy and refund the corresponding funds. Of course, five yum repository configuration files are configured by default on the CVM for everyone to use. For example, screenshot:
Of course, the first file is my own new configuration. If you are not satisfied with the default configuration on the CVM, you can also configure the yum configuration file yourself, as I did, and put your own server address or trusted official download address to use. All right, that's all for introductions. Please go and build your own service happily.
The above is how to create a yum software repository in Linux. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.