From 8c2e9dec01b4e05b70e98d910aaf6c489a2e13a2 Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 7 Aug 2024 17:24:31 +0800 Subject: [PATCH] =?UTF-8?q?rpm=E5=AE=89=E8=A3=85=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/redhat.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 linux/redhat.txt diff --git a/linux/redhat.txt b/linux/redhat.txt new file mode 100644 index 0000000..a612dea --- /dev/null +++ b/linux/redhat.txt @@ -0,0 +1,8 @@ +1.如果是安装本地的rpm包 +(1)dnf install 会自动处理依赖 +(2)rpm -ivh xx.rpm直接安装。 +2.如果想强制安装旧版本的rpm +rpm -Uvh --oldpackage [filename] +--oldpackage allows you to install older package +-U means upgrade, but in this case it will just replace the other version. +if you use -i instead of -U you will end up with both versions installed.