Re: [opensuse] Zypper doesn't remove



On 05/08/2010 06:43 PM, Anton Aylward wrote:
When I run
zypper -v up
it tells me, among other things


The following packages are going to be REMOVED:
ec-fonts-mftraced 1.0.12-244.104
ec-fonts-mftraced 1.0.12-244.105
ec-fonts-mftraced 1.0.12-244.106
konqueror-plugins-lang 4.3.1-7.24
konqueror-plugins-lang 4.3.1-7.25
konqueror-plugins-lang 4.3.1-7.27
konqueror-plugins-lang 4.3.1-7.29
konqueror-plugins-lang 4.3.1-7.30
konqueror-plugins-lang 4.3.1-7.35
konqueror-plugins-lang 4.3.1-7.36
konqueror-plugins-lang 4.3.1-7.38
konsole 4.4.2-155.21
konsole 4.4.2-155.23
konsole 4.4.3-157.1
konsole 4.4.3-157.2
konsole 4.4.3-157.4


However it doesn't remove them.

What's up?




Anton,

What that means is that pre-install or post-install scripts for one of the
packages is screwed up and it is leaving the old package on the system which
eventually leads to this issue right here. It's no big deal, it happens to me
all the time with gcc packages, older firefox xulrunner packaged did it, etc..
What you have to do is simply 'specifically' remove each of the older packages.
(i.e.:

First do a 'rpm -qa | grep packagename' to get a concise list of the packages
in the rpm database. Like:

18:30 alchemy:~/suse/pkg/kernel> rpm -qa | grep konqueror-plugins
konqueror-plugins-lang-4.3.1-16.46 (not real package just for example)
konqueror-plugins-lang-4.3.1-17.46
konqueror-plugins-4.3.1-17.46

Then 'specifically' remove each package by copying and pasting the version to
remove into rpm -e:

rpm -e konqueror-plugins-lang-4.3.1-16.46

(if you get a dependency complaint, just add '--nodeps' and if you get script
errors that prevent removing the package, just add '--noscripts', and if all
else fails, then just F'ing force it with '--force', ex:

rpm -e --noscripts konqueror-plugins-lang-4.3.1-16.46

If you have a lot and want to do it in one command you can do the old:

rpm -e --nodeps --noscript $(rpm -qa | grep konqueror-plugins-lang | \
grep -v konqueror-plugins-lang-4.3.1-17.46)

Note: what follows the '-v' is the version you want to keep, Also Note: your
first grep expression must limit the list to one package name only. You couldn't
just say '| grep konqueror' because that would return konqueror,
konqueror-plugins-lang, etc...

Have fun :p

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Zypper doesnt remove
    ... The following packages are going to be REMOVED: ... konqueror-plugins-lang 4.3.1-7.24 ... Have you tried zypper rm? ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: How to install Java/Frefox in FC6 -
    ... as the Fedora Extras guidelines suggest. ... There are numerous guides to rpm on the net. ... There are far too many broken tarballs out there for that. ... able to see from rpms downloaded and installed as binary packages. ...
    (Fedora)
  • SUSE Security Announcement: Linux Kernel (SuSE-SA:2004:001)
    ... installable through rpm, because of a bug in RPM (update of ... the kernel source is not ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Bugtraq)
  • [Full-Disclosure] SUSE Security Announcement: Linux Kernel (SuSE-SA:2004:001)
    ... installable through rpm, because of a bug in RPM (update of ... the kernel source is not ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Full-Disclosure)
  • Re: [SLE] libphp4.so?
    ... > base on which all other packages build: ... rpm -qa | grep cpp ... yast the NVIDIA drivers won't install via the installer, ...
    (SuSE)