当前位置:网站首页>Yum local source production
Yum local source production
2022-07-29 06:02:00 【Spicy next door 4】
Local YUM Source production
- YUM Relevant concepts
- What is? YUM
YUM( Its full name is Yellow dog Updater, Modified) It's a Fedora and RedHat as well as CentOS Medium Shell Front end package manager . be based on RPM Package management , Can be automatically downloaded from the specified server RPM Package and install , Dependency relationships can be handled automatically , And install all the dependent packages at once , No need to download it over and over again 、 install .
- YUM The role of
stay Linux Using the source code to install the software is very full marks , Use yum It can simplify the installation process
- YUM Common commands
install httpd And confirm the installation
yum instll -y httpd
List all available package and package Group
yum list
Clear all buffered data
yum clean all
List all the packages that a package depends on
yum deplist httpd
Delete httpd
yum remove httpd
- Make local YUM Source
- Why make local YUM Source
YUM Although the source can simplify us in Linux The process of installing software on , But the build environment is usually not online , Can't connect to the Internet YUM Source , You can't use it when you say it yum Command to install the software . In order to be used in the Intranet yum Install relevant software , We need to configure yum Source .
- YUM Principle of source
YUM A source is actually one that holds multiple RPM The server of the package , Can pass http The way to retrieve 、 Download and install the relevant RPM package
- Make local YUM Source
- Prepare one Linux The server , Use the simplest version CentOS-6.7-x86_64-minimal.iso
- Configure the server IP Address
- Upload CentOS-6.7-x86_64-bin-DVD1.iso To the server
- take CentOS-6.7-x86_64-bin-DVD1.iso Mount the image to a directory
mkdir /var/iso
mount -o loop CentOS-6.7-x86_64-bin-DVD1.iso /var/iso
- Modify... On this machine YUM Source configuration file , Point the source to yourself
Back up the original YUM Configuration file for source
cd /etc/yum.repos.d/
rename .repo .repo.bak *
vi CentOS-Local.repo
[base] name=CentOS-Local baseurl=file:///var/iso gpgcheck=1 enabled=1 # Very important ,1 To enable gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 |
Add the above content, save and exit
- eliminate YUM buffer
yum clean all
- List the available YUM Source
yum repolist
- Install the appropriate software
yum install -y httpd
9. Turn on httpd Use browser access http://192.168.0.100:80( If there's no access , Check whether the firewall is turned on 80 Port or turn off the firewall )
service httpd start
10. take YUM Source configuration to httpd(Apache Server) in , Other servers can access the... In the intranet through the network YUM Source
cp -r /var/iso/ /var/www/html/CentOS-6.7
11. Cancel the previously mounted image
umount /var/iso
12. Access in a browser http://192.168.0.100/CentOS-6.7/

- Let others need to install RPM The server of the package points to this YUM Source , Prepare a new server , Back up or delete the original YUM Source configuration file
cd /etc/yum.repos.d/
rename .repo .repo.bak *
vi CentOS-Local.repo
[base] name=CentOS-Local baseurl=http://192.168.0.100/CentOS-6.7 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 |
Add the above content, save and exit
- Execute... On this new server YUM The order of
yum clean all
yum repolist
- Install the appropriate software
yum install -y gcc
- Add dependent packages to private yum Of repository
Enter into repo Catalog
Carry out orders : createrepo .
边栏推荐
- Windos下安装pyspider报错:Please specify --curl-dir=/path/to/built/libcurl解决办法
- Reporting service 2016 custom authentication
- Show profiles of MySQL is used.
- Centos7 silently installs Oracle
- [pycharm] pycharm remote connection server
- 关于Flow的原理解析
- DCAT batch operation popup and parameter transfer
- SQL repair duplicate data
- FFmpeg创作GIF表情包教程来了!赶紧说声多谢乌蝇哥?
- Activity交互问题,你确定都知道?
猜你喜欢

How to obtain openid of wechat applet in uni app project

Research and implementation of flash loan DAPP

Ribbon学习笔记二

C# 判断用户是手机访问还是电脑访问

Huawei 2020 school recruitment written test programming questions read this article is enough (Part 1)

Operation commands in anaconda, such as removing old environment, adding new environment, viewing environment, installing library, cleaning cache, etc

MySql统计函数COUNT详解

【网络设计】ConvNeXt:A ConvNet for the 2020s

Process management of day02 operation

【go】defer的使用
随机推荐
How to obtain openid of wechat applet in uni app project
Operation commands in anaconda, such as removing old environment, adding new environment, viewing environment, installing library, cleaning cache, etc
Gluster cluster management analysis
Centos7 silently installs Oracle
[overview] image classification network
Spring, summer, autumn and winter with Miss Zhang (4)
与张小姐的春夏秋冬(5)
Activity交互问题,你确定都知道?
Bare metal cloud FASS high performance elastic block storage solution
[competition website] collect machine learning / deep learning competition website (continuously updated)
并发编程学习笔记 之 ReentrantLock实现原理的探究
Spring, summer, autumn and winter with Miss Zhang (2)
day02 作业之文件权限
Flink connector Oracle CDC synchronizes data to MySQL in real time (oracle19c)
[database] database course design - vaccination database
File文件上传的使用(2)--上传到阿里云Oss文件服务器
Reporting Service 2016 自定义身份验证
ANR优化:导致 OOM 崩溃及相对应的解决方案
Reporting service 2016 custom authentication
FFmpeg创作GIF表情包教程来了!赶紧说声多谢乌蝇哥?