当前位置:网站首页>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 .
边栏推荐
- Briefly talk about the difference between pendingintent and intent
- ssm整合
- xtrabackup 的使用
- 【go】defer的使用
- Spring, summer, autumn and winter with Miss Zhang (1)
- Use of xtrabackup
- SQL repair duplicate data
- Ribbon学习笔记二
- 【语义分割】SETR_Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformer
- Lock lock of concurrent programming learning notes and its implementation basic usage of reentrantlock, reentrantreadwritelock and stampedlock
猜你喜欢

datax安装

Flink connector Oracle CDC synchronizes data to MySQL in real time (oracle19c)

C# 连接 SharepointOnline WebService
![[clustmaps] visitor statistics](/img/1a/173664a633fd14ea56696dd824acb6.png)
[clustmaps] visitor statistics

Is flutter being quietly abandoned? On the future of flutter

Process management of day02 operation

mysql插入百万数据(使用函数和存储过程)
![[overview] image classification network](/img/2b/7e3ba36a4d7e95cb262eebaadee2f3.png)
[overview] image classification network

Markdown语法

Interesting talk about performance optimization thread pool: is the more threads open, the better?
随机推荐
【目标检测】KL-Loss:Bounding Box Regression with Uncertainty for Accurate Object Detection
Reporting Services- Web Service
Anr Optimization: cause oom crash and corresponding solutions
[database] database course design - vaccination database
[DL] build convolutional neural network for regression prediction (detailed tutorial of data + code)
ASM插桩:学完ASM Tree api,再也不用怕hook了
【目标检测】6、SSD
rsync+inotyfy实现数据单项监控实时同步
Semaphore (semaphore) for learning notes of concurrent programming
Most PHP programmers don't understand how to deploy safe code
Lock lock of concurrent programming learning notes and its implementation basic usage of reentrantlock, reentrantreadwritelock and stampedlock
D3.JS 纵向关系图(加箭头,连接线文字描述)
Training log III of "Shandong University mobile Internet development technology teaching website construction" project
【综述】图像分类网络
ANR优化:导致 OOM 崩溃及相对应的解决方案
How to PR an open source composer project
Breaking through the hardware bottleneck (I): the development of Intel Architecture and bottleneck mining
并发编程学习笔记 之 工具类CountDownLatch、CyclicBarrier详解
Detailed explanation of atomic operation classes atomicreference and atomicstampedreference in learning notes of concurrent programming
Activity交互问题,你确定都知道?