当前位置:网站首页>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
边栏推荐
- National Security Agency (NSA) "sour Fox" vulnerability attack weapon platform technical analysis report
- In depth evaluation and development trend prediction report of China's ice cream market (2022 Edition)
- 美国国家安全局(NSA)“酸狐狸”漏洞攻击武器平台技术分析报告
- 为什么你要考虑使用Prisma
- 中国PBAT树脂市场预测及战略研究报告(2022版)
- Internet News: "20220222" get together to get licenses; Many products of Jimi have been affirmed by consumers; Starbucks was fined for using expired ingredients in two stores
- 阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
- 荣威 RX5 的「多一点」产品策略
- Sword finger offer II 015 All modifiers in the string
- Roewe rx5's "a little more" product strategy
猜你喜欢

【splishsplash】关于如何在GUI和json上接收/显示用户参数、MVC模式和GenParam

vulnhub靶场-Hacker_Kid-v1.0.1

【C补充】【字符串】按日期排序显示一个月的日程

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

ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享

String class

Internet News: "20220222" get together to get licenses; Many products of Jimi have been affirmed by consumers; Starbucks was fined for using expired ingredients in two stores

Iommu/smmuv3 code analysis (10) page table operation

英特尔开源深度学习工具库 OpenVINO,将加大与本土软硬件方合作,持续开放
![[C language foundation] 12 strings](/img/42/9c024eb08eb935fe66c3aaac7589d8.jpg)
[C language foundation] 12 strings
随机推荐
如何写出好代码 — 防御式编程指南
China carbon disulfide industry research and investment strategy report (2022 Edition)
Soft test software designer full truth simulation question (including answer analysis)
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
(12) About time-consuming printing
Judge whether a binary tree is a balanced binary tree
Report on research and investment prospects of China's silicon nitride ceramic substrate industry (2022 Edition)
SQL question brushing 584 Looking for user references
[C language foundation] 12 strings
China sorbitol Market Forecast and investment strategy report (2022 Edition)
C語言輸入/輸出流和文件操作
剑指 Offer 20. 表示数值的字符串
China acetonitrile market forecast and strategic consulting research report (2022 Edition)
Yyds dry inventory MySQL RC transaction isolation level implementation
为什么你要考虑使用Prisma
多线程使用不当导致的 OOM
Iommu/smmuv3 code analysis (10) page table operation
多线程并发之CountDownLatch阻塞等待
String class
[C language supplement] judge which day tomorrow is (tomorrow's date)