当前位置:网站首页>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
边栏推荐
猜你喜欢

CentOS7部署MySQL数据库服务器

Esxi community network card driver

Method of designing test cases

Clock tree analysis example

Build php7 private warehouse

Which is the best one to make air conduction headphones? Inventory of the best air conduction headphones

Wechat applet custom compilation mode

Applet custom components - data, methods, and properties

Esxi community nvme driver update v1.1

一、PXE概述和安装
随机推荐
Test interview questions collection (I) | common required questions and procedures of software testing (with answers)
Results fill in the blanks for beer and drinks
Applets: lifecycle
Installation and configuration of unit test framework jest with typescript
Shell script - "three swordsmen" awk command
SSH服务配置
Life cycle (process) of software testing
MySQL master-slave
MOOC翁恺 C语言 第三周:判断与循环:1.判断
Insertion and deletion of nodes in linked list
DNS域名解析
Network - transport layer (detailed version)
Results fill in the blank. How many days of national day are Sundays (solved by pure Excel)
Custom components -- styles
Method of designing test cases
一、PXE概述和安装
iptables防火墙
Which is the best air conduction Bluetooth headset? Air conduction Bluetooth headset ranking
DHCP原理与配置
Applet navigator cannot jump (debug)