当前位置:网站首页>software management rpm
software management rpm
2022-08-05 04:20:00 【anqiujiaduizhang】
I. Introduction to rpm
rpm package name:
Software name Version number (major version, minor version, revision number) operating system
#Cannot resolve dependencies automatically
Example: openssh-6.6.1p1-31.el7.x86_64.rpm
The number in front of the number is the name and the number is the version number: the first major version number, the second minor version number, the one with the horizontal bar is the revision number, el a few ------- operating version system
p>Installation with rpm needs to consider the following information:
1. Need to consider the version of the system needs to correspond to rpm
2. System architecture: such as 32-bit or 64-bit
3. Need to consider dependencies
rpm install
#ypm -ivh package name
-i install
-vh verbose human
-u upgrade
The website to find rpm packages: Rpmfind mirrorhttp://pkgs.org
1. Install via rpm
You can download it first
[[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 download command
#wget -o specify the storage path
#crul download address -o save as address
[[email protected] ~]# rpm -ivh ntfs-3g-2017.3.23-11.el7.x86_64.rpm #Install rpm package locally
2. Install the rpm package directly through the connection
[[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
Various queries
rpm -qa displays all downloaded installation packages
-q query
-l list
-f file
-a all
rpm -qa |grep software name to find out whether the software is installed
rpm -ql httpd query http installed files
rpm -qf /usr/share/httpd/noindex to query which package the file belongs to
rpm -qf /etc/passwd Query a certain file is generated by which software; only the installed software can be queried
Uninstall
rpm -e software name
-e erase
rpm tool management package summary
Hard to resolve package dependencies
If a file is not available, it is difficult to know which rpm package provides it
Second, yum way to manage files
#It can automatically resolve the rpm software dependencies. Although it is installed through yum, the final execution is rpm, that is to say, yum cannot be used without the rpm command.http hypertext transfer protocol Category: local yum and remote yum local yum: file:// remote yum: http:// hypertext transfer protocol ftp://
yum operations
After installing the environment, we have the official yum source that comes with centos, and we can also replace or make our own yum source
yum clean all clean yum cache
yum makecache caches package information to improve the speed of searching/installing software
yum repolist package address is listed and displayed after caching
yum provides rz
yum list
yum install software name -y
yum -y reinstall software name
yum erase software name
yum remove software name -y
yum -y remove``rpm -qa | grep httpd`` (back-ticks)
yum uninstalls all httpd-related packages found by rpm and uninstalls them
Replace network yum source --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 (switch to yum.repos.d directory)
#mkdir back (make a backup)
#mv *.repo back
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo (download to CentOS-Base.repo *must be .repo otherwise invalid)
#curl -o specify the storage path
Install extension source --epel.repo
#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
#cd /etc/yum.repos.d
边栏推荐
- Android interview question - how to write with his hands a non-blocking thread safe queue ConcurrentLinkedQueue?
- Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
- 【8.1】代码源 - 【第二大数字和】【石子游戏 III】【平衡二叉树】
- Talk about 20 common problems in data governance
- 不看后悔,appium自动化环境完美搭建
- The most effective seven performance testing techniques of software testing techniques
- pyqt5 + socket 实现客户端A经socket服务器中转后主动向客户端B发送文件
- What is the function of industrial-grade remote wireless transmission device?
- C+ +核心编程
- 商业智能BI业务分析思维:现金流量风控分析(一)营运资金风险
猜你喜欢

Android interview question - how to write with his hands a non-blocking thread safe queue ConcurrentLinkedQueue?

多列属性column元素的可见性:display、visibility、opacity、垂直对齐方式:vertical-align、z-index 越大越显示在上层

UE4 更改组件变量 (以修改第一人称角色模板的最大行走速度和跳跃高度为例)
![[CISCN2019 South China Division]Web11](/img/15/843334fec0a5cc8cfaba92aab938db.png)
[CISCN2019 South China Division]Web11

Acid (ACID) Base (BASE) Principles for Database Design

bytebuffer 内部结构

Mysql的undo log详解

小程序_动态设置tabBar主题皮肤

炎炎夏日教你利用小米智能家居配件+树莓派4接入Apple HomeKit

关于sklearn库的安装
随机推荐
多御安全浏览器新版下载 | 功能优秀性能出众
NPDP证书含金量高吗?跟PMP相比?
Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
浅析主流跨端技术方案
flink读取mongodb数据源
DEJA_VU3D - Cesium功能集 之 057-百度地图纠偏
About the installation of sklearn library
Paparazzi: Surface Editing by way of Multi-View Image Processing
Use IDEA to connect to TDengine server
36-Jenkins-Job Migration
Learning and finishing of probability theory 8: Geometric and hypergeometric distributions
Detailed explanation of Mysql's undo log
dedecms后台生成提示读取频道信息失败的解决方法
重载运算符
[Surveying] Quick Summary - Excerpt from Gaoshu Gang
关于#SQL#的迭代、父子结构查询问题,如何解决?
机器学习概述
[BSidesCF 2019]Kookie
Qixi Festival earn badges
[Geek Challenge 2019]FinalSQL