Peter Hardy wrote:
Hey hey.

On Wed, Michael Lake wrote:
"apt-get remove $PACKAGENAME" doesn't work for you?
The above won't remove a package if there are dependencies.

It should. What version of debian / apt do you have?
To pick an example at random:
[EMAIL PROTECTED]:~% sudo apt-get remove compiz-core

Ah, maybe the difference is that in my case its an upsteam dependency (something depends on what I want to remove) whereas in the example above its a downsteam dependency (what I want to remove depends on something).

This is what I get:

# cat installed.packages | grep evol | cut -f1
evolution-common
evolution-data-server
evolution-data-server-common
evolution-webcal
#

# cat installed.packages | grep evol | cut -f1 | xargs dpkg -P
(Reading database ... 79929 files and directories currently installed.)
Would remove or purge evolution-common ...
dpkg: dependency problems prevent removal of evolution-data-server: ekiga depends on evolution-data-server.
dpkg: error processing evolution-data-server (--purge):
 dependency problems - not removing
dpkg: dependency problems prevent removal of evolution-data-server-common:
 evolution-data-server depends on evolution-data-server-common (= 1.6.3-5etch1).
dpkg: error processing evolution-data-server-common (--purge):
 dependency problems - not removing
Would remove or purge evolution-webcal ...
Errors were encountered while processing:
 evolution-data-server
 evolution-data-server-common
#

I'm using Debian version 4.0

'apt-get autoremove test'
Invalid operation autoremove

Sounding more and more like you've got a fairly old debian. You can try
using the apt-rdepends tool to list dependencies. If it's not available,
I'd probably just use dpkg to get a list of dependencies and then do
exactly what you're doing now.

Ugh. :-)

Maybe I'll just use the Ugh method.
I am making up a virtual Debian system using Xen.
I tarballed up my Debian etch and copied it to a new xen instance with a blank filesystem and booted into it and I'm removing all packages that I don't need. I'm starting therefore with a desktop distro and cutting it down. I couldn't start with a minimal Debian install via netboot or dbootstrap as this instance is under Centos and I couldn't get dbootstrap to compile under Centos.

Mike
--
Michael Lake
Computational Research Centre of Expertise
Science Faculty, UTS
Ph: 9514 2238




--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views of the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.

Think. Green. Do.

Please consider the environment before printing this email.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to