Remove a package without affecting other packages

6 réponses [Dernière contribution]
alguien
Hors ligne
A rejoint: 03/27/2014

Trying to get the hang of customizing my system. I managed to do this in Debian with the help of this thread http://forums.debian.net/viewtopic.php?f=10&t=39045 , but am having trouble in Trisquel.

Let's say I want to remove evolution-data-server-common. Aptitude tells me that I also have to remove:

1) gnome-applets
2) gnome-panel
3) gnome-session-fallback
4) indicator-datetime
5) libedataserverui-3.0-1
6) libevolution
7) trisquel

So of course this would be undesirable. How do I keep these packages and remove just the one I want?

I particularly like the solution described in this post http://forums.debian.net/viewtopic.php?f=10&t=39045#p229212 :

"I like the auto-remove features and hate running keep-all, since I think it turns of the auto-installed status on all those packages. What I rather do is find a key package, or 2, or 3, that all those other packages rdepend on and then turn of the auto-install just for those packages. You can do that from within aptitude when it asks if you want to continue (y,n,?). If you enter ? you'll see your options, but basically entering &m at that prompt will mark the package as manually installed, preventing the removal of that package and anything in it's dependency list. aptitude will then give you the same prompt, after changing it's list, giving you another opportunity to mark another package as manually installed, proceed, or stop etc."

But I have been unable to act on it. I tried sudo aptitude unmarkauto gnome-applets, but I seem to be getting it wrong. This is my output:

[4] 14936
bash: m: command not found

Any ideas/advice would be appreciated. :)

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

You know that, by definition, dependencies are required for a given package to work, don't you? So, unless you know something specific about "evolution-data-server-common", its removal will mean no more gnome-panel for you (and no more gnome-session-fallback altogether). In those conditions, why not removing those components as well?

alguien
Hors ligne
A rejoint: 03/27/2014

Because you CAN surgically remove some packages, rather than having to remove and then install from scratch. It would save me time and improve my aptitude in aptitude. :P

I know what it does. Besides, this does apply to other such packages. I remember on Debian, I was able to remove Empathy with the keep-all command (because I preferred pidgin), but I'd rather do something cleaner as I described above.

alguien@computadora:~$ sudo aptitude show evolution-data-server-common
[sudo] password for alguien:
Package: evolution-data-server-common
State: installed
Automatically installed: yes
Version: 3.2.3-0ubuntu7.1
Priority: optional
Section: gnome
Maintainer: Ubuntu Developers <name at domain>
Architecture: all
Uncompressed Size: 516 k
Description: architecture independent files for Evolution Data Server
The data server, called "Evolution Data Server" is responsible for managing
calendar and addressbook information.

This package contains the architecture independent files needed by the
evolution-data-server package.
Homepage: http://www.gnome.org/projects/evolution/

I don't use Evolution, and I don't use their calendar and addressbook (I don't even use calendars and addressbooks, period).

alguien@computadora:~$ sudo aptitude why evolution-data-server-common
i libedataserverui-3.0-1 Depends evolution-data-server-common (>= 3.2)

alguien@computadora:~$ sudo aptitude show libedataserverui-3.0-1
Package: libedataserverui-3.0-1
State: installed
Automatically installed: no
Version: 3.2.3-0ubuntu7.1
Priority: optional
Section: libs
Maintainer: Ubuntu Developers <name at domain>
Architecture: amd64
Uncompressed Size: 642 k
Depends: gconf-service, libatk1.0-0 (>= 1.12.4), libc6 (>= 2.4), libcairo2 (>=
1.10.0), libcamel-1.2-29 (>= 3.2), libcamel-1.2-29 (< 3.3),
libebook-1.2-12 (>= 3.2.3), libecal-1.2-10 (>= 3.2.3),
libedataserver-1.2-15 (>= 3.2.3), libgconf-2-4 (>= 2.31.1),
libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.31.8),
libgnome-keyring0 (>= 3.2.2-2~), libgtk-3-0 (>= 3.0.0), libpango1.0-0
(>= 1.14.0), libsoup2.4-1 (>= 2.31.2), evolution-data-server-common (>=
3.2)
Conflicts: libedataserverui1.2-dev, libedataserverui1.2-dev,
libedataserverui-3.0-1
Description: GUI utility library for evolution data servers
The data server, called "Evolution Data Server" is responsible for managing
calendar and addressbook information.

This package is a GUI utility library for evolution-data-server.
Homepage: http://www.gnome.org/projects/evolution/

As you can see, these packages are useless to me. But I can always reinstall things if something goes wrong. :P I've already removed all the other Evolution packages by first removing the Trisquel-recommended metapackage.

Gnome is great, but it likes to give you a whole bundle of packages you may or may not want. I prefer to pick and choose my packages.

lembas
Hors ligne
A rejoint: 05/13/2010

>sudo aptitude show

You don't need sudo there.

>sudo aptitude why

Probably not here either.

alguien
Hors ligne
A rejoint: 03/27/2014

Why does that matter and how is that relevant; what are you implying by ignoring everything else? Is this a friendly correction?

lembas
Hors ligne
A rejoint: 05/13/2010

It's best to use super user powers only when required. It's not super relevant, just a tip. I don't know answers to your questions. Very friendly.

alguien
Hors ligne
A rejoint: 03/27/2014

Okie dokie. ^.^ Thanks!