LINUX.ORG.RU
решено ФорумAdmin

Удаление не нужных пакетов


0

1

Всем привет!

Подскажите как удалить пакеты с зависимостями?

Т.е при удалении например ldap вот, что:

# rpm -e openldap-2.4.23-32.el6_4.x86_64 openldap-servers-2.4.23-32.el6_4.x86_64 openldap-clients-2.4.23-32.el6_4.x86_64 apr-util-ldap-1.3.9-3.el6_0.1.x86_64 php-ldap-5.3.3-22.el6.x86_64
error: Failed dependencies:
        libldap-2.4.so.2()(64bit) is needed by (installed) libcurl-7.19.7-35.el6.x86_64
        libldap-2.4.so.2()(64bit) is needed by (installed) curl-7.19.7-35.el6.x86_64
        libldap-2.4.so.2()(64bit) is needed by (installed) gnupg2-2.0.14-4.el6.x86_64

Ответ на: комментарий от registrant

Не даает:

Error: Trying to remove "yum", which is protected
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Mister87
() автор топика
Ответ на: комментарий от registrant

Сейчас уже другая проблема! В общем удалось удалить OpenLDAP:

rpm -e -nodeps ...
и сейчас при yum update вот что:
# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   libldap-2.4.so.2: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Feb 22 2013, 00:00:18)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

Подскажите как ее побороть теперь?

Mister87
() автор топика
Ответ на: комментарий от Mister87

Может попробовать воткнуть пакет libldap? Но откуда его скачать? Подскажите, пожалуйста!

Mister87
() автор топика
Ответ на: комментарий от Mister87

ты же сам поломал зависимости (-nodeps), вот юм тебе об этом и говорит. видимо, зависимости изначально кривые были, пинай мантейнеров, ссылка на баг выше

registrant ★★★★★
()

Пользоваться разными менеджерами пакетов это плохо.

ЗЫ: yum же чётко написал, что ты его сломал.

ziemin ★★
()
Ответ на: комментарий от registrant

сейчас та ссылка недоступна, предполагаю, что требуется переустановка yum!

Прошу помочь с решением проблемы? Как и что сделать?

Mister87
() автор топика
Ответ на: комментарий от Mister87

И как переустановка юма пофиксит зависимости?

Поломать можно любой инсталлер, и не факт что потом можно пофиксить. Просто нужно думать перед тем как удаляешь с ключами типа --force.

ipeacocks ★★★★★
()
Ответ на: комментарий от ipeacocks

Так сказать на ошибках учатся!

И что не каких вариантов нет? Кто-то ведь неверное с подобным встречался?

Mister87
() автор топика
Ответ на: комментарий от Mister87

почитайте ман к юму, как он может подтянуть остальные пакеты. В Debian есть типа aptitude install -f. Постарайтесь искать подобное етому.

ipeacocks ★★★★★
()
Ответ на: комментарий от Mister87
 -f
           Try hard to fix the dependencies of broken packages, even if it means ignoring the actions requested on the command line.

           This corresponds to the configuration item Aptitude::CmdLine::Fix-Broken.

       --full-resolver
           When package dependency problems are encountered, use the default “full” resolver to solve them. Unlike the “safe” resolver activated by --safe-resolver, the full resolver
           will happily remove packages to fulfill dependencies. It can resolve more situations than the safe algorithm, but its solutions are more likely to be undesirable.

           This option can be used to force the use of the full resolver even when Aptitude::Always-Use-Safe-Resolver is true. The safe-upgrade command never uses the full resolver and
           does not accept the --full-resolver option.
ipeacocks ★★★★★
()
Ответ на: комментарий от Mister87

он же тебе пишет - верни openldap. собственно корень проблемы в том, что openldap сидит в зависимостях yum, поэтому он и не давал тебе его удалить иначе чем перректально. пинай мантейнера yum, как багзилка заработает

registrant ★★★★★
()
Ответ на: комментарий от registrant

Всем спасибо! Работоспособность yum восстановил!

Mister87
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.