当前位置:网站首页>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
边栏推荐
- AI高考志愿填报:大厂神仙打架,考生付费围观
- Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
- 《中国智慧环保产业发展监测与投资前景研究报告(2022版)》
- Redis 分布式鎖
- SQL注入漏洞(Mysql与MSSQL特性)
- 判断二叉树是否为二叉搜索树
- FRP intranet penetration, reverse proxy
- 6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
- Report on research and investment prospects of China's silicon nitride ceramic substrate industry (2022 Edition)
- Exclusive news: Alibaba cloud quietly launched RPA cloud computer and has opened cooperation with many RPA manufacturers
猜你喜欢

Exclusive news: Alibaba cloud quietly launched RPA cloud computer and has opened cooperation with many RPA manufacturers

vulnhub靶场-Hacker_Kid-v1.0.1

Machine learning 11 clustering, outlier discrimination

SQL注入漏洞(Mysql与MSSQL特性)

Iommu/smmuv3 code analysis (10) page table operation

Redis6.0 新功能

Redis 分布式锁

C语言输入/输出流和文件操作
荣威 RX5 的「多一点」产品策略

SQL question brushing 1050 Actors and directors who have worked together at least three times
随机推荐
机器学习11-聚类,孤立点判别
在MeterSphere接口测试中如何使用JMeter函数和MockJS函数
[C language foundation] 12 strings
China nylon 11 industry research and future forecast report (2022 Edition)
单例模式的懒汉模式跟恶汉模式的区别
Shenyu gateway development: enable and run locally
Basic usage of Frida
JDBC:深入理解PreparedStatement和Statement[通俗易懂]
China carbon disulfide industry research and investment strategy report (2022 Edition)
Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
Research and investment strategy report of China's sodium sulfate industry (2022 Edition)
Chinese diosgenin market forecast and investment strategy report (2022 Edition)
Sword finger offer II 015 All modifiers in the string
RadHat搭建内网YUM源服务器
Redis distributed lock
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
In depth evaluation and development trend prediction report of China's ice cream market (2022 Edition)
【Try to Hack】vulnhub DC4
智能运维实战:银行业务流程及单笔交易追踪