当前位置:网站首页>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
边栏推荐
- UE4 更改组件变量 (以修改第一人称角色模板的最大行走速度和跳跃高度为例)
- 2022软件测试工程师最全面试题
- Redis1: Introduction to Redis, basic features of Redis, relational database, non-relational database, database development stage
- bytebuffer 使用demo
- dedecms织梦tag标签不支持大写字母修复
- SkiaSharp 之 WPF 自绘 粒子花园(案例版)
- 35岁的软件测试工程师,月薪不足2W,辞职又怕找不到工作,该何去何从?
- bytebuffer 内部结构
- Feature preprocessing
- [Surveying] Quick Summary - Excerpt from Gaoshu Gang
猜你喜欢
![[MRCTF2020] PYWebsite](/img/d4/57e8e5ee45b742894679f3f5671516.png)
[MRCTF2020] PYWebsite

Mini Program_Dynamic setting of tabBar theme skin

什么是ASEMI光伏二极管,光伏二极管的作用

商业智能BI业务分析思维:现金流量风控分析(一)营运资金风险

Mysql's redo log detailed explanation

Analyses the mainstream across technology solutions

What is the function of industrial-grade remote wireless transmission device?

UE4 opens doors with overlapping events

UE4 通过与其它Actor互动开门

UE4 在游戏运行时更改变量 (通过鼠标滑轮来更改第一人称角色的最大行走速度)
随机推荐
Index Mysql in order to optimize paper 02 】 【 10 kinds of circumstances and the principle of failure
[8.1] Code Source - [The Second Largest Number Sum] [Stone Game III] [Balanced Binary Tree]
Event parse tree Drain3 usage and explanation
商业智能BI业务分析思维:现金流量风控分析(一)营运资金风险
4T硬盘剩余很多提示“No space left on device“磁盘空间不足
动力小帆船制作方法简单,电动小帆船制作方法
Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
Cron(Crontab)--使用/教程/实例
【Mysql进阶优化篇02】索引失效的10种情况及原理
Redis key basic commands
Mysql's redo log detailed explanation
四位数显表头设计
2022软件测试工程师最全面试题
小程序_动态设置tabBar主题皮肤
第一次性能测试实践,有“亿”点点紧张
UE4 通过与其它Actor互动开门
浅析主流跨端技术方案
C++ core programming
[极客大挑战 2019]FinalSQL
About the installation of sklearn library