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.