当前位置:网站首页>软件管理rpm
软件管理rpm
2022-08-05 04:17:00 【anqiujiaduizhang】
一、rpm 介绍
rpm 软件包名称:
软件名称 版本号 (主版本、次版本、修订号)操作系统
#不能自动解决依赖关系
举例:openssh-6.6.1p1-31.el7.x86_64.rpm
数字前面的是名称 数字是版本号 :第一位主版本号,第二位次版本号,带横杠的是修订号, el 几-------操作版本的系统
用rpm 安装需要考虑如下信息:
1. 需要考虑系统的版本需要与rpm 对应
2. 系统的架构:如32位还是64位
3. 需要考虑依赖关系
rpm 安装
#ypm -ivh 软件包名称
-i install
-vh verbose human
-u upgrade
查找rpm 包的网站 :Rpmfind mirrorhttp://pkgs.org
1.通过rpm 安装
可以先下载下来
[[email protected] ~]# wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-2017.3.23-11.el7.x86_64.rpm
#wget 下载命令
#wget -o 指定存放路径
#crul 下载地址 -o 另存为的地址
[[email protected] ~]# rpm -ivh ntfs-3g-2017.3.23-11.el7.x86_64.rpm #本地安装rpm包
2.直接通过连接安装rpm 包
[[email protected] ~]# rpm -ivh http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-2017.3.23-11.el7.x86_64.rpm
各种查询
rpm -qa 展示出来下载的全部安装包
-q query
-l list
-f file
-a all
rpm -qa |grep 软件名 查找软件是否安装
rpm -ql httpd 查询http 安装的文件
rpm -qf /usr/share/httpd/noindex 查询该文件属于哪个包zhi
rpm -qf /etc/passwd 查询某一个文件是那个软件产生的 ;只能查询已经安装好的软件
卸载
rpm -e 软件名称
-e erase
rpm 工具管理软件包总结
很难解决包依赖关系
如果某个文件没有,很难知道它由哪个rpm 包提供
二、yum 方式管理文件
#可以自动解决rpm软件依赖关系,虽然是通过yum安装的但是最后执行的还是rpm,也就是说没有rpm命令yum也就不能用了。http 超文本传输协议 分类:本地yum和远程yum 本地yum: file:// 远程yum: http:// 超文本传输协议 ftp://
yum 操作
安装好环境之后我们有centos自带的官方yum源,我们也可以自行更换或者制作自己的yum源
yum clean all 清理yum 缓存
yum makecache 缓存软件包信息 提高搜索/安装软件的速度
yum repolist 软件包地址列出 缓存后显示
yum provides rz
yum list
yum install 软件名称 -y
yum -y reinstall 软件名
yum erase 软件名
yum remove 软件名 -y
yum -y remove``rpm -qa | grep httpd`` (反单引号)
yum 卸载rpm 查找出来的所有与 httpd 相关的软件包全部卸载掉
更换网络yum源 --aliyun
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#cd /etc/yum.repos.d (切换至yum.repos.d目录)
#mkdir back (做个备份)
#mv *.repo back
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo (下载到CentOS-Base.repo *必须是.repo 否则无效)
#curl -o 指定存放路径
安装扩展源 --epel.repo
#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
#cd /etc/yum.repos.d
边栏推荐
- 七夕节赚徽章拉
- Hard power or soft power, which is more important to testers?
- 事件解析树Drain3使用方法和解释
- Summary of common methods of arrays
- Paparazzi: Surface Editing by way of Multi-View Image Processing
- 【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】
- NPDP证书含金量高吗?跟PMP相比?
- [BSidesCF 2019] Kookie
- 商业智能BI业务分析思维:现金流量风控分析(一)营运资金风险
- A 35-year-old software testing engineer with a monthly salary of less than 2W, resigns and is afraid of not finding a job, what should he do?
猜你喜欢

特征预处理

Learning and finishing of probability theory 8: Geometric and hypergeometric distributions

Machine Learning Overview

The log causes these pits in the thread block, you have to guard against

关于sklearn库的安装

使用IDEA连接TDengine服务器
![[Geek Challenge 2019]FinalSQL](/img/e4/0c8225ef7c5e7e5bdbaac2ef6fc867.png)
[Geek Challenge 2019]FinalSQL

dedecms后台生成提示读取频道信息失败的解决方法

Ali's local life's single-quarter revenue is 10.6 billion, Da Wenyu's revenue is 7.2 billion, and Cainiao's revenue is 12.1 billion
![[BSidesCF 2019] Kookie](/img/29/19e7c244feb86b37ab32a53aa11f25.png)
[BSidesCF 2019] Kookie
随机推荐
36-Jenkins-Job Migration
The first performance test practice, there are "100 million" a little nervous
阿里本地生活单季营收106亿,大文娱营收72亿,菜鸟营收121亿
多御安全浏览器新版下载 | 功能优秀性能出众
Event parse tree Drain3 usage and explanation
Index Mysql in order to optimize paper 02 】 【 10 kinds of circumstances and the principle of failure
[BSidesCF 2019] Kookie
token, jwt, oauth2, session parsing
Hard power or soft power, which is more important to testers?
第一次性能测试实践,有“亿”点点紧张
[极客大挑战 2019]FinalSQL
机器学习概述
The most comprehensive exam questions for software testing engineers in 2022
Develop your own node package
【树莓派】树莓派调光
Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
为什么刚考完PMP,就开始准备软考了?
[CISCN2019 South China Division]Web11
Detailed explanation of Mysql's undo log
Redis key基本命令