Re: apt-get --purge



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/16/08 10:34, Adam Hardy wrote:
Raj Kiran Grandhi on 16/03/08 03:33, wrote:
Adam Hardy wrote:
I want to understand what apt-get does with the files of a package
I'm having problems with, but there seems to be stuff going on that
the man page isn't telling me about.

I installed tomcat5.5 and then tomcat5.5-admin.

There seemed to be some serious problem with the tomcat manager
installed by tomcat5.5-admin, which stopped tomcat starting, so I
tried to de-install it.

I ran apt-get remove tomcat5.5-admin

The problem though remained - the tomcat manager settings were
preventing a clean start-up.

So I ran apt-get --purge remove tomcat5.5-admin

This made no difference. So I ran

apt-get --purge remove tomcat5.5

to clear the whole lot. However it let various tomcat files in
/usr/share/tomcat5.5/ which I manually deleted.

Those files that you deleted probably belong to some other package
that tomcat5.5 depends on. So, apt has no way of knowing that the
files are deleted.


I re-installed tomcat, but the bootstrap.jar - one of the main
start-up binaries - was not reinstalled.


You can try 'dpkg-query -L tomcat5.5' to see a list of files that come
with the package. Also 'dpkg-query -S bootstrap.jar' should tell you
which package provided the bootstrap.jar file.

You can also try apt-cache depends tomcat5.5 to get a list of all the
dependencies and reinstall them with 'apt-get --reinstall install'

You are totally correct. I had not expected tomcat to be disassembled
into different packages in that way - the missing files were part of
libtomcat5.5-java.

It was a useful lesson in package management, I'll not those commands.

This should also help:

dpkg -l | grep tomcat

- --
Ron Johnson, Jr.
Jefferson LA USA

"Working with women is a pain in the a**."
My wife
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH3UoFS9HxQb37XmcRAlPLAKC/ZAEwCtDVcBhSSraPmpXBtRLhMQCggJ57
sUu119cI+nWZ8Azd+3jippM=
=AuUy
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Debian-based distros ??
    ... > install, and need guideance in how to convert to unstable. ... I'm by no means an expert an package management yet. ... Next I did an apt-get update followed by an apt-get dist-upgrade. ...
    (Debian-User)
  • Re: handling dependencies
    ... 'apt-get remove gpsim', then try the 'apt-get -f install' to fix up ... Reading package lists... ...
    (Ubuntu)
  • Re: Need (apt and synaptic)
    ... the GUI that works with apt, for updating the system, and have done so since ... Which should install it. ... apt-get dist-upgrade ... which will update synaptic's package list. ...
    (Fedora)
  • Re: managing source packages
    ... I have to install dependencies ... It would be nice if "apt-get" would ... create a package list of your interests ... build it in a pure Stable-pbuilder ...
    (Debian-User)
  • apt-get broken after KDE dev download
    ... I'm no longer able to use apt-get. ... When executing apt-get -f install: ... Reading Package Lists... ... W: Couldn't stat source package list http://people.debian.org ...
    (Debian-User)