Sometimes when you are trying to uninstall or upgrade some software on a Linux machine you run into dependency related issues. Niekedy, keď sa snažíte odinštalovať alebo upgradovať nejaký softvér na počítači Linux sa dostanete do závislosti súvisiace otázky. Just about everyone I know who works with RPM based distributions has experienced what is known as “rpm hell” at one time or another. Len asi každý Viem, kto pracuje s distribúciami RPM na zažila, čo je známe ako "rpm hell" v tej či onej dobe. Here's something to help you a bit if you are stuck in one of those situations. Tu je niečo, čo vám pomôže, ak ste trochu zasekol v jednej z týchto situácií.
Let's look at how to check what files an installed RPM depends on. Poďme sa pozrieť, ako skontrolovať, aké súbory nainštalované RPM závisí.
Say you are trying to upgrade or uninstall the RPM of sendmail from your Linux computer. Povedzme, že sa snaží aktualizovať alebo odinštalovať RPM sendmail z vášho počítača Linux. You might run into dependency issues when you run the uninstall command: Na ktoré môžete naraziť v závislosti problémy pri spustení odinštalovať príkazom:
# rpm -e sendmail-8.13.1-3.2 # Rpm-e sendmail-8.13.1-3.2
In such a case it might be useful to take a look at what files this package depends on. V takom prípade by mohlo byť užitočné pozrieť sa na to, čo súborov závisí na tomto balíku. Use the following command: Zadajte nasledujúci príkaz:
# rpm -qR sendmail-8.13.1-3.2 # Rpm-qR sendmail-8.13.1-3.2
/bin/bash / Bin / bash
/bin/mktemp / Bin / mktemp
/bin/sh / Bin / sh
/bin/sh / Bin / sh
/bin/sh / Bin / sh
/bin/sh / Bin / sh
/bin/sh / Bin / sh
/usr/sbin/alternatives / Usr / sbin / alternatives
/usr/sbin/useradd / Usr / sbin / useradd
bash >= 2.0 bash> = 2.0
chkconfig >= 1.3 chkconfig> = 1.3
config(sendmail) = 8.13.1-3.2.el4 config (sendmail) = 8.13.1-3.2.el4
cyrus-sasl cyrus-sasl
fileutils fileutils
gawk gawk
libc.so.6 libc.so.6
libc.so.6(GLIBC_2.0) libc.so.6 (GLIBC_2.0)
libc.so.6(GLIBC_2.1) libc.so.6 (GLIBC_2.1)
… ...
Now you can see a list of files that the sendmail package depends on and you'll be better equipped to debug the failed uninstallation process. Teraz môžete vidieť zoznam súborov, ktoré balík závisí na sendmail a budete lepšie vybavená pre ladenie neúspešné odinštalovanie.























One Response Jedna odpoveď
Stay in touch with the conversation, subscribe to the Zostať v kontakte s konverzácia, prihláste sa RSS feed for comments on this post RSS kanál pre komentáre k tomuto príspevku . .
Continuing the Discussion Pokračovanie Diskusia