решено: RPM - откат на старые версии пакетов. как? (yum & rpm бессильны ()

Cent OS, Scientific Linux

Модератор: Модераторы разделов

Ответить
Аватара пользователя
Doka
Сообщения: 715
Статус: ASIC Design Engineer
ОС: RHEL4

решено: RPM - откат на старые версии пакетов. как?

Сообщение Doka »

давно как-то обновлял subversion и была необходимость обновить пакеты apr и apr-util (точно не помню - но как-то удалось-таки нештатным методом эти версии заинсталлить в систему)
теперь стоит задача - обновить php (до 5.2.3)
для того чтобы собрать его - нужна apxs, которая в httpd-devel - с этого момента и началось приключение:
не получается ни "обновить" с версии 0.9.12 на 0.9.4, ни просто удалить из системы эти пакеты((((
[[ сам httpd (& httpd-devel) - штатный, с диска.. ]]


Код:

[root@dokasrv httpd-2.2.4]# yum install httpd-devel Repository update is listed more than once in the configuration Repository base is listed more than once in the configuration Repository contrib is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository addons is listed more than once in the configuration Repository extras is listed more than once in the configuration Setting up Install Process Setting up repositories git 100% |=========================| 951 B 00:00 cogito 100% |=========================| 951 B 00:00 update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for httpd-devel to pack into transaction set. httpd-devel-2.0.52-32.3.e 100% |=========================| 29 kB 00:00 ---> Package httpd-devel.i386 0:2.0.52-32.3.ent.centos4 set to be updated --> Running transaction check --> Processing Dependency: apr-util-devel for package: httpd-devel --> Processing Dependency: apr-devel for package: httpd-devel --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for apr-devel to pack into transaction set. apr-devel-0.9.4-24.5.c4.2 100% |=========================| 32 kB 00:00 ---> Package apr-devel.i386 0:0.9.4-24.5.c4.2 set to be updated ---> Downloading header for apr-util-devel to pack into transaction set. apr-util-devel-0.9.4-21.i 100% |=========================| 25 kB 00:00 ---> Package apr-util-devel.i386 0:0.9.4-21 set to be updated --> Running transaction check --> Processing Dependency: apr = 0.9.4-24.5.c4.2 for package: apr-devel --> Processing Dependency: apr-util = 0.9.4-21 for package: apr-util-devel --> Finished Dependency Resolution Error: Missing Dependency: apr = 0.9.4-24.5.c4.2 is needed by package apr-devel Error: Missing Dependency: apr-util = 0.9.4-21 is needed by package apr-util-devel [root@dokasrv httpd-2.2.4]# yum update apr Repository update is listed more than once in the configuration Repository base is listed more than once in the configuration Repository contrib is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository addons is listed more than once in the configuration Repository extras is listed more than once in the configuration Setting up Update Process Setting up repositories Reading repository metadata in from local files Could not find update match for apr No Packages marked for Update/Obsoletion [root@dokasrv httpd-2.2.4]# yum update apr-devel Repository update is listed more than once in the configuration Repository base is listed more than once in the configuration Repository contrib is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository addons is listed more than once in the configuration Repository extras is listed more than once in the configuration Setting up Update Process Setting up repositories Reading repository metadata in from local files Could not find update match for apr-devel No Packages marked for Update/Obsoletion






Код:

[root@dokasrv httpd-2.2.4]# rpm -i httpd-devel* error: Failed dependencies: apr-devel is needed by httpd-devel-2.0.52-9.ent.i386 apr-util-devel is needed by httpd-devel-2.0.52-9.ent.i386 Suggested resolutions: apr-devel-0.9.4-24.1.i386.rpm apr-util-devel-0.9.4-17.i386.rpm [root@dokasrv httpd-2.2.4]# rpm -i apr-devel* error: Failed dependencies: apr = 0.9.4-24.1 is needed by apr-devel-0.9.4-24.1.i386 Suggested resolutions: apr-0.9.4-24.1.i386.rpm [root@dokasrv httpd-2.2.4]# rpm -i apr-* package apr-0.9.12-2 (which is newer than apr-0.9.4-24.1) is already installed package apr-util-0.9.12-1 (which is newer than apr-util-0.9.4-17) is already installed file /usr/lib/libapr-0.so.0 from install of apr-0.9.4-24.1 conflicts with file from package apr-0.9.12-2 file /usr/lib/libaprutil-0.so.0 from install of apr-util-0.9.4-17 conflicts with file from package apr-util-0.9.12-1 [root@dokasrv httpd-2.2.4]# rpm -i apr-devel* error: Failed dependencies: apr = 0.9.4-24.1 is needed by apr-devel-0.9.4-24.1.i386 Suggested resolutions: apr-0.9.4-24.1.i386.rpm [root@dokasrv httpd-2.2.4]# rpm -i apr-0.9.4-24.1.i386.rpm package apr-0.9.12-2 (which is newer than apr-0.9.4-24.1) is already installed file /usr/lib/libapr-0.so.0 from install of apr-0.9.4-24.1 conflicts with file from package apr-0.9.12-2 [root@dokasrv httpd-2.2.4]# rpm -e apr-0.9.12* error: Failed dependencies: libapr-0.so.0 is needed by (installed) httpd-2.0.52-9.ent.i386 libapr-0.so.0 is needed by (installed) mod_perl-1.99_16-4.i386 libapr-0.so.0 is needed by (installed) subversion-1.4.3-0.1.el4.rf.i386 libapr-0.so.0 is needed by (installed) apr-util-0.9.12-1.i386 [root@dokasrv httpd-2.2.4]# rpm -e apr-util-0.9.12* error: Failed dependencies: libaprutil-0.so.0 is needed by (installed) httpd-2.0.52-9.ent.i386 libaprutil-0.so.0 is needed by (installed) mod_perl-1.99_16-4.i386 libaprutil-0.so.0 is needed by (installed) subversion-1.4.3-0.1.el4.rf.i386



что делать?
Never stop thinking..................................................................
Спасибо сказали:
Vas
Сообщения: 540
Статус: Proamd-шник
ОС: OpenSuSE 11.0 и OS X 10.5.4
Контактная информация:

Re: решено: RPM - откат на старые версии пакетов. как?

Сообщение Vas »

что делать?

Вот прямо сейчас сидеть и читать man rpm :dry: Благо все по-русски.
По памяти скажу...
Опция --force устанавливает пакет пакет, даже если такой уже есть в системе.
Опция --nodeps устанавливает пакет, игнорируя все зависимости. Так же работатет при удалении пакета, если надо удалить пакет, а он требуется другими установленными пакетами.
Еще есть куча полезных опций, даже специально для установки более старой версии, вроде --oldpackage, но с этим не уверен.
Читать ман в любом случае. полезно.
Находя богатство - теряете совесть
Находя женщину - теряете рассудок
Находя истину - теряете веру
и только потеряв всё - находите свободу.
Спасибо сказали:
kirkir
Сообщения: 472
ОС: Fedora

Re: решено: RPM - откат на старые версии пакетов. как?

Сообщение kirkir »

DokaВобщето в репозитории atrpms лежит не мало плагинов под yum в том числе и позволяющий делать Downgrade.
Спасибо сказали:
Аватара пользователя
Doka
Сообщения: 715
Статус: ASIC Design Engineer
ОС: RHEL4

Re: решено: RPM - откат на старые версии пакетов. как?

Сообщение Doka »

Vas писал(а):
29.07.2007 16:26
Опция --force устанавливает пакет пакет, даже если такой уже есть в системе.
Опция --nodeps устанавливает пакет, игнорируя все зависимости. Так же работатет при удалении пакета, если надо удалить пакет, а он требуется другими установленными пакетами.


да спасибо! то что доктор прописал!!

Код: Выделить всё

[root@dokasrv httpd-2.2.4]# rpm -i --force apr-0.9.4-24.1.i386.rpm
[root@dokasrv httpd-2.2.4]# rpm -i --force apr-util-0.9.4-17.i386.rpm
[root@dokasrv httpd-2.2.4]# rpm -i apr-devel-0.9.4-24.1.i386.rpm
[root@dokasrv httpd-2.2.4]# rpm -i apr-util-devel-0.9.4-17.i386.rpm
[root@dokasrv httpd-2.2.4]# rpm -i httpd-devel-2.0.52-9.ent.i386.rpm


kirkir писал(а):
29.07.2007 16:26
Doka Вобщето в репозитории atrpms лежит не мало плагинов под yum в том числе и позволяющий делать Downgrade.


ну хотя бы для того чтобы узнать что существуют плагины для этого - надо было задать вопрос =)
Never stop thinking..................................................................
Спасибо сказали:
Ответить