当前位置:网站首页>Radhat builds intranet Yum source server
Radhat builds intranet Yum source server
2022-07-01 17:12:00 【Brother Xing plays with the clouds】
Preface : With intranet Linux The server More and more , In each station The server Install software on , You have to upload the installation disk first , Configure the local yum service , It's troublesome and time-consuming . One that can be on the Intranet Linux The server Installation on yum service , Then the other The server Directly modifying repo Files use yum Just the service .
The installation steps are as follows :
Linux System environment
1.RHEL edition
[[email protected] pub]# cat /etc/issue Red Hat Enterprise Linux Server release 6.5 (Santiago)
2. Kernel version
[[email protected] pub]# uname -a
Linux localhost40.localdomain 2.6.32-431.el6.x86_64
build The server Local YUM
1. Upload RHEL Install the CD file to Home Catalog , Name it RHEL.ISO
2. Create directory /home/RHEL/
#mkdir /home/RHEL/
3. Hang on the installation CD ISO file
#mount -o loop /home/RHEL.ISO /home/RHEL/
4. Get into /etc/yum.repos.d/ Catalog , Back up the original repo file , Create a new repo file ,RHEL.repo
#cd /etc/yum.repos.d/ #mkdir bak/ #cp * bak/ #vi RHEL.repo ############################# [rhel6] name=rhel6 baseurl=file:///home/RHEL enabled=1 gpgcheck=0 #############################
5. preservation RHEL.repo After execution
# yum clean all # yum update
# yum makecache
Install and configure vsftpd service
1. install vsftpd service
yum install vsftpd*
2. After installation , Copy /home/RHEL/ All files in the directory to /var/ftp/pub Directory
#cd /home/RHEL #cp -rv * /var/ftp/pub
3、 Switch to /var/ftp/pub Catalog
Delete *.html Delete CentOS/repodata/TRANS.TBL #cd /var/ftp/pub #rm -rf *.html
#rm -rf repodata/TRANS.TBL
install createrepo Tools , Generate YUM General database
1. install createrepo
#yum -y install createrepo #createrepo -g /var/ftp/pub/repodata/6221039e7e3dabf7d538c76571d82aaf42b6292b8f6fe6cf56b8fcf1cff3d3ab-comps-rhel6-Server.xml /var/ftp/pub/
notes : here 6221039e7e3dabf7d538c76571d82aaf42b6292b8f6fe6cf56b8fcf1cff3d3ab-comps The name may be different for each system , Find out what's behind comps-rhel6-Server.xml That's it .
restart vsftp, Configuration complete .
#/etc/init.d/vsftpd restart perhaps
#service vsftpd restart
client yum To configure
1. Get into /etc/yum.repos.d/ Catalog , Back up the original repo file , Create a new repo file ,RHEL.repo
#cd /etc/yum.repos.d/ #mkdir bak/ #cp * bak/ #vi RHEL.repo ############################# [rhel6] name=rhel6 baseurl=ftp://192.9.169.99/pub/ enabled=1 gpgcheck=0 #############################
2. Notice the top baseurl It was just installed yum The server Of ftp Address , After installation
# yum clean all # yum update
# yum makecache
frequently-used yum command
1. install
yum install package Install the specified installation package package1 yum localinstall package Install the package locally
2. Updates and upgrades
yum update All updates yum update package Update the specified package package yum check-update Check for updatable programs
3. Search and display
yum info <package> Show installation package information yum list Show all installed and installable packages yum list <package> Shows the installation of the specified package yum search <keyword> Find package
4. Delete program
yum remove | erase package1 Delete package yum Will download the package and header Stored in cache in , It doesn't automatically delete . If we think they take up disk space , have access to yum clean Command to clear . yum clean headers eliminate header yum clean packages Clear downloaded rpm package yum clean all eliminate header And rpm package
边栏推荐
- Transition technology from IPv4 to IPv6
- (27) Open operation, close operation, morphological gradient, top hat, black hat
- There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
- 判断二叉树是否为二叉搜索树
- JDBC:深入理解PreparedStatement和Statement[通俗易懂]
- Official announcement! Hong Kong University of science and Technology (Guangzhou) approved!
- Research Report on China's enzyme Market Forecast and investment strategy (2022 Edition)
- Soft test software designer full truth simulation question (including answer analysis)
- 多线程使用不当导致的 OOM
- LeetCode中等题之TinyURL 的加密与解密
猜你喜欢

如何使用 etcd 实现分布式 /etc 目录

Transition technology from IPv4 to IPv6

There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds

Gold, silver and four want to change jobs, so we should seize the time to make up

String class
![[C language foundation] 12 strings](/img/42/9c024eb08eb935fe66c3aaac7589d8.jpg)
[C language foundation] 12 strings

How wild are hackers' ways of making money? CTF reverse entry Guide

(27) Open operation, close operation, morphological gradient, top hat, black hat

剑指 Offer 20. 表示数值的字符串

vulnhub靶场-hacksudo - Thor
随机推荐
深度优先遍历和广度优先遍历[通俗易懂]
Why should you consider using prism
Is the securities account given by the head teacher of goucai school safe? Can I open an account?
【C语言补充】判断明天是哪一天(明天的日期)
多线程使用不当导致的 OOM
Sword finger offer 20 String representing numeric value
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
pyqt5中,在控件上画柱状图
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
走进微信小程序
判断链表是否是回文链表
Soft test network engineer full truth simulation question (including answer and analysis)
[Verilog quick start of Niuke network question brushing series] ~ priority encoder circuit ①
[pyg] document summary and project experience (continuously updated
荣威 RX5 的「多一点」产品策略
Redis 分布式鎖
两数之和c语言实现[通俗易懂]
AI高考志愿填报:大厂神仙打架,考生付费围观
Introduction to software engineering - Chapter 6 - detailed design
【splishsplash】关于如何在GUI和json上接收/显示用户参数、MVC模式和GenParam