当前位置:网站首页>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
边栏推荐
- 《中国智慧环保产业发展监测与投资前景研究报告(2022版)》
- Integer array merge [JS]
- unity3d扩展工具栏
- [wrung Ba wrung Ba is 20] [essay] why should I learn this in college?
- [Supplément linguistique c] déterminer quel jour est demain (date de demain)
- (27) Open operation, close operation, morphological gradient, top hat, black hat
- Free lottery | explore the future series of blind box digital copyright works of "abadou" will be launched on the whole network!
- 求求你们,别再刷 Star 了!这跟“爱国”没关系!
- MySQL learning summary
- ACL 2022 | 分解的元学习小样本命名实体识别
猜你喜欢
DNS
Official announcement! Hong Kong University of science and Technology (Guangzhou) approved!
Introduction to software engineering - Chapter 6 - detailed design
Mysql database - Advanced SQL statement (2)
SystemVerilog structure (II)
National Security Agency (NSA) "sour Fox" vulnerability attack weapon platform technical analysis report
Flux d'entrées / sorties et opérations de fichiers en langage C
Redis 分布式鎖
Transition technology from IPv4 to IPv6
PETRv2:一个多摄像头图像3D感知的统一框架
随机推荐
走进微信小程序
China benzene hydrogenation Market Research and investment forecast report (2022 Edition)
剑指 Offer II 105. 岛屿的最大面积
Jojogan practice
AI college entrance examination volunteer filling: the gods of Dachang fight, and candidates pay to watch
The difference between the lazy mode of singleton mode and the evil mode
[live broadcast appointment] database obcp certification comprehensive upgrade open class
Judge whether a binary tree is a balanced binary tree
ShenYu 网关开发:在本地启用运行
单例模式的懒汉模式跟恶汉模式的区别
英特尔开源深度学习工具库 OpenVINO,将加大与本土软硬件方合作,持续开放
阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
Redis distributed lock
6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
Redis 分布式锁
Report on research and investment prospects of UHMWPE industry in China (2022 Edition)
[wrung Ba wrung Ba is 20] [essay] why should I learn this in college?
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
SQL注入漏洞(Mysql与MSSQL特性)
C language input / output stream and file operation