比如,在用rpm命令安装gitlab 9.2之后想安装低版本的gitlab 9.1.4
rpm -Uvh gitlab-ce-9.1.4-ce.0.el6.x86_64.rpm Preparing... ########################################### [100%] package gitlab-ce-9.2.0-ce.0.el6.x86_64 (which is newer than gitlab-ce-9.1.4-ce.0.el6.x86_64) is already installed
rpm -Uvh --oldpackage [filename]
原来只需要加一个 --oldpackage 参数
rpm -Uvh --oldpackage gitlab-ce-9.1.4-ce.0.el6.x86_64.rpm
赞