当前位置:网站首页>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
边栏推荐
- China nylon 11 industry research and future forecast report (2022 Edition)
- Object. fromEntries()
- [live broadcast appointment] database obcp certification comprehensive upgrade open class
- China PBAT resin Market Forecast and Strategic Research Report (2022 Edition)
- SQL question brushing 586 Customers with the most orders
- 《中国智慧环保产业发展监测与投资前景研究报告(2022版)》
- China benzene hydrogenation Market Research and investment forecast report (2022 Edition)
- In depth Research Report on China's disposable sanitary products production equipment industry (2022 Edition)
- Integer array merge [JS]
- Iommu/smmuv3 code analysis (10) page table operation
猜你喜欢

GameFramework食用指南

为什么你要考虑使用Prisma

Detailed explanation of string's trim() and substring()

Cookies and session keeping technology

Redis distributed lock

Oom caused by improper use of multithreading

Encryption and decryption of tinyurl in leetcode

(十六)ADC转换实验

Yyds dry inventory MySQL RC transaction isolation level implementation

There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
随机推荐
中国生物降解塑料市场预测与投资战略报告(2022版)
拼接字符串,得到字典序最小的结果
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
Pytest learning notes (13) -allure of allure Description () and @allure title()
Why should you consider using prism
6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
unity3d扩展工具栏
pyqt5中,在控件上画柱状图
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
redis -- 数据类型及操作
SQL question brushing 584 Looking for user references
SystemVerilog-结构体(二)
如何写出好代码 — 防御式编程指南
AI college entrance examination volunteer filling: the gods of Dachang fight, and candidates pay to watch
[Supplément linguistique c] déterminer quel jour est demain (date de demain)
SQL question brushing 1050 Actors and directors who have worked together at least three times
为什么你要考虑使用Prisma
Report on Market Research and investment prospects of ammonium dihydrogen phosphate industry in China (2022 Edition)
Babbitt | yuan universe daily must read: Naixue coin, Yuan universe paradise, virtual stock game Do you understand Naixue's tea's marketing campaign of "operation pull full"
National Security Agency (NSA) "sour Fox" vulnerability attack weapon platform technical analysis report