当前位置:网站首页>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
边栏推荐
猜你喜欢

C++ core programming

In the WebView page of the UI automation test App, the processing method when the search bar has no search button

UE4 通过与其它Actor互动开门

从企业的视角来看,数据中台到底意味着什么?
![【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】](/img/b5/716627b370e489ccf320a86540f7ba.png)
【 8.4 】 source code - [math] [calendar] [delete library 】 【 is not a simple sequence (Bonus) 】

不看后悔,appium自动化环境完美搭建

bytebuffer use demo

浅析主流跨端技术方案

Feature preprocessing
![[SWPU2019]Web1](/img/06/36e69a2d7d5475a6749a7d81edf50f.png)
[SWPU2019]Web1
随机推荐
iMedicalLIS监听程序(2)
Redis1: Introduction to Redis, basic features of Redis, relational database, non-relational database, database development stage
The production method of the powered small sailboat is simple, the production method of the electric small sailboat
Mysql的redo log详解
How do newcomers get started and learn software testing?
Qixi Festival earn badges
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?
关于#SQL#的迭代、父子结构查询问题,如何解决?
Four-digit display header design
UE4 第一人称角色模板 添加蹲伏功能
Machine Learning Overview
C++ core programming
多御安全浏览器新版下载 | 功能优秀性能出众
[8.1] Code Source - [The Second Largest Number Sum] [Stone Game III] [Balanced Binary Tree]
UE4 opens doors with overlapping events
Bosses, I noticed that a mysql CDC connector parameters scan. The incremental. Sna
mutillidae下载及安装
事件解析树Drain3使用方法和解释
overloaded operator
Day019 方法重写与相关类的介绍