当前位置:网站首页>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
边栏推荐
猜你喜欢
dedecms后台生成提示读取频道信息失败的解决方法
[BSidesCF 2019] Kookie
Develop your own node package
特征预处理
What is ASEMI photovoltaic diode, the role of photovoltaic diode
UE4 opens doors with overlapping events
【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】
开发属于自己的node包
动力小帆船制作方法简单,电动小帆船制作方法
UE4 通过互动(键盘按键)开门
随机推荐
国学*周易*梅花易数 代码实现效果展示 - 梅花心易
DEJA_VU3D - Cesium功能集 之 059-腾讯地图纠偏
数字孪生技术在电力系统中的应用现状
4T硬盘剩余很多提示“No space left on device“磁盘空间不足
[Surveying] Quick Summary - Excerpt from Gaoshu Gang
Machine Learning Overview
BI业务分析思维:现金流量风控分析(二)信用、流动和投资风险
数组常用方法总结
The most effective seven performance testing techniques of software testing techniques
Why did you start preparing for the soft exam just after the PMP exam?
What is the function of industrial-grade remote wireless transmission device?
Four-digit display header design
从企业的视角来看,数据中台到底意味着什么?
Android interview question - how to write with his hands a non-blocking thread safe queue ConcurrentLinkedQueue?
【背包九讲——01背包问题】
多御安全浏览器 V10.8.3.1 版正式发布,优化多项内容
[MRCTF2020]PYWebsite
使用IDEA连接TDengine服务器
Redis key basic commands
[极客大挑战 2019]FinalSQL