Даунгрейд пакета в CentOS

Posted in Новости on сентября 7, 2011 by admin

При установке более старого пакета , когда стоит более новый возникает конфликт :

[root@server ~]# rpm -i nginx-0.8.53-1.i386.rpm
package nginx-0.8.54-1.el5.i386 (which is newer than nginx-0.8.53-1.i386) is already installed
file /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/nginx/nginx.so from install of nginx-0.8.53-1.i386 conflicts with file from package nginx-0.8.54-1.el5.i386
file /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/nginx.pm from install of nginx-0.8.53-1.i386 conflicts with file from package nginx-0.8.54-1.el5.i386
file /usr/sbin/nginx from install of nginx-0.8.53-1.i386 conflicts with file from package nginx-0.8.54-1.el5.i386
file /usr/share/man/man3/nginx.3pm.gz from install of nginx-0.8.53-1.i386 conflicts with file from package nginx-0.8.54-1.el5.i386

[root@server nginx]# nginx -v
nginx version: nginx/0.8.54

Дополняем команду флагами с указанием, что пакет старый

rpm -Uvh —oldpackage nginx-0.8.53-1.i386.rpm

[root@server ~]# rpm -Uvh —oldpackage nginx-0.8.53-1.i386.rpm
Preparing… ########################################### [100%]
1:nginx ########################################### [100%]
[root@server ~]# nginx -v
nginx version: nginx/0.8.53

Tags: , ,