当前位置:网站首页>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
边栏推荐
猜你喜欢
使用IDEA连接TDengine服务器
Paparazzi: Surface Editing by way of Multi-View Image Processing
Mysql的undo log详解
不看后悔,appium自动化环境完美搭建
Mini Program_Dynamic setting of tabBar theme skin
JeeSite New Report
how to measure distance from point to face in creo
[8.1] Code Source - [The Second Largest Number Sum] [Stone Game III] [Balanced Binary Tree]
36-Jenkins-Job迁移
What is the function of industrial-grade remote wireless transmission device?
随机推荐
how to measure distance from point to face in creo
开发属于自己的node包
为什么刚考完PMP,就开始准备软考了?
[BSidesCF 2019] Kookie
There are several common event handling methods in Swing?How to listen for events?
机器学习概述
重载运算符
iMedicalLIS listener (2)
markdown如何换行——md文件
Day14 jenkins部署
In the WebView page of the UI automation test App, the processing method when the search bar has no search button
bytebuffer internal structure
多御安全浏览器 V10.8.3.1 版正式发布,优化多项内容
关于sklearn库的安装
[极客大挑战 2019]FinalSQL
dedecms报错The each() function is deprecated
【8.1】代码源 - 【第二大数字和】【石子游戏 III】【平衡二叉树】
[CISCN2019 华东南赛区]Web11
The production method of the powered small sailboat is simple, the production method of the electric small sailboat
【informix】解决启动报错大全,以及解决办法