当前位置:网站首页>YUM仓库的搭建
YUM仓库的搭建
2022-07-28 05:29:00 【花生味花生米】
目录
前言
Yum(Yellowdog Updater,Modified的简称),起初由yellow dog发行版的开发者Terra Soft研发,用Python编写,后经杜克大学开发团队进行改进,遂有此名。Yum是一个shell前端软件包管理器,基于RPM包管理,能够从指定的服务器自动下载RPM包并安装,可以自动处理依赖关系,并且一次安装所有依赖的软件包。
一.应用程序及目录
文件类型 保存目录
普通执行程序文件 /usr/bin
服务器执行程序文件和管理程序文件 /usr/sbin
应用程序配置文件 /etc
日志文件 /var/log
应用程序参考文档文件 /usr/share/doc
应用程序手册页文件 /usr/local/share/m
二.yum本地源的安装
1.首先需要加载镜像
永久挂载: vi /etc/fstab
/dev/sr0 /mnt iso9660 defaults 0 0
mount -a 启用
2.mount /dev/cdrom /mnt/ 把光盘挂载到/mnt目录下
![]()
3.cd /etc/yum.repos.d/ 进入yum源

4.mkdir * repos.bak 创建本地源
![]()
5.mv * .repos repos.bak 不读网络源
![]()
6.vim local.repo 编写本地yum源
[a] 仓库类别
name=a 仓库名称
baseurl=file:///mnt 指定URL 访问路径为光盘挂载目录
enabled=1 开启此yum源,此为默认项,可省略
gpgcheck=0 不验证软件包的签名

yum clean all && yum makecache 删除yum缓存并更新

三.安装包安装方式
rpm安装
cd /mnt/Packages 查看所有rpm安装包
rpm -ivh xxx 安装服务
rpm -q xxx 查看某个安装包
rpm -qc xxx 查看以安装软件的配置文件
rpm -qd xxx 列出已安装的软件包文档位置
rpm -qa xxx 查看所有以rpm方式安装的软件
yum安装
yum -y install xxx 安装服务
yum -y install xxx --nogpgcheck 安装时不检测秘钥值
yum update xxx -y 升级软件
yum list 查看已安装和可安装的列表
yum remove -y xxx 卸载软件
yum clean all 清除yum缓存
yum makecache 建立yum新缓存
yum info xxx 查看软件信息
四.rpm管理工具
Red-Hat Package Manager
由Red Hat公司提出,被众多Linux发行版所采用建立统一的数据库文件
RPM包管理工具
Red-Hat Package Manager
由Red Hat公司提出,被众多Linux发行版所采用建立统一的数据库文件
详细记录软件包安装、卸载等变化信息自动分析软件包依赖关系
RPM软件包
软件素材参考: https://rpm.org/
五.手工编译安装
yum -y install gcc gcc-c++ make pcre-devel expat-devel perl pcre-devel.x86_64 apr-util-devel.x86_64
边栏推荐
- My deployment notes
- Blue bridge code error ticket
- Method of designing test cases
- Create, traverse and search nodes as required for single linked list
- Technology sharing | sending requests using curl
- JS string method Encyclopedia
- Custom component -- pure data field & component life cycle
- Tcp/ip five layer model
- Hdu-1097-a hard puzzle (fast power)
- Insertion and deletion of nodes in linked list
猜你喜欢

Archery database audit platform deployment

Repair the faulty sector

Custom component -- data listener

Vmware workstation configuration net mode

Which brand of air conduction earphones is good and highly praised

DNS domain name resolution service

About gcc:multiple definition of

Technology sharing | detailed explanation of actual combat interface test request methods get, post

DHCP服务

Shell script - "three swordsmen" awk command
随机推荐
FTP service
MOOC翁恺C语言第八周:指针与字符串:1.指针2.字符类型3.字符串4.字符串计算
Which is the best one to make air conduction headphones? Inventory of the best air conduction headphones
Applet creation component
Repair the faulty sector
Shell script - "three swordsmen" awk command
shell脚本——编程条件语句(条件测试、if语句、case分支语句、echo用法、for循环、while循环)
Pku-2524-ubiquitous relations (parallel search template)
MySQL master master
shell脚本——正则表达式
My deployment notes
Which is the best air conduction Bluetooth headset? Air conduction Bluetooth headset ranking
MOOC翁恺C语言第七周:数组运算:1.数组运算2.搜索3.排序初步
MOOC翁恺 C语言 第三周:判断与循环:2.循环
DNS forward resolution experiment
RAID磁盘阵列
DHCP原理与配置
[learning notes] VIM editor
Technology sharing | interface testing value and system
Technology sharing | do you know the functions of the server interface automated testing and requests library?