Re: Abhängigkeiten mit-purgen
* Frank Lassowski <flassowski@gmx.de> wrote:
> Hallo!
>
> In letzter Zeit probier ich immer mal wieder neue Programme aus, die auch
> häufiger einen Rattenschwanz an Abhängikeiten nach sich ziehen. Beim
> Entfernen der Geschichten fällt mir auf, dass
>
> $ aptitude purge Paketname
>
> zwar das Paket komplett purged, aber die Abhängikeiten nur removed.
>
>
> $ aptitute --purge-unused purge Paketname
>
> purged dagegen auch Pakete, die in keinerlei Abhängigkeit zu etwas anderem
> stehen, meint zumindest http://tinyurl.com/2ebd4m
Für so etwas lieber in die mitgelieferte Doku schauen, als in
irgendwelche Wikis mit verkürzter Darstellung.
Installiertes apt-doc vorausgesetzt.
/usr/share/doc/aptitude/html/en/ch02s04s05.html#configPurge-Unused
,----
| Option: Aptitude::Purge-Unused
| Default: false
| Description: If this option is true and Aptitude::Delete-Unused is also
| true, then packages which are unused will be purged from the system,
| removing their configuration files and perhaps other important data. For
| more information about which packages are considered to be ?unused?, see
| the section called ?Managing automatically installed packages?. THIS
| OPTION CAN CAUSE DATA LOSS! DO NOT ENABLE IT UNLESS YOU KNOW WHAT YOU
| ARE DOING!
`----
/usr/share/doc/aptitude/html/en/ch02s02s07.html
,----
| Managing automatically installed packages
|
| To install one package, it is often necessary to install several others
| (to fulfill its dependencies). For instance, if you wish to install the
| clanbomber package, you must also install the package libclanlib2. If
| you remove clanbomber again, you probably no longer need the libclanlib2
| package; aptitude will attempt to detect this and automatically remove
| the libclanlib2 package.
|
| It works like this: when you install a package, aptitude will
| automatically install any other packages on which it depends. These
| packages are marked as having been ?automatically installed?; aptitude
| will monitor them and remove them when they are no longer depended upon
| by any manually installed package [10] . They will appear in the preview
| as ?packages being removed because they are no longer used.?
|
| As with any automatic process, there is a potential for things to go
| haywire. For instance, even if a package was automatically installed to
| start with, it might turn out to be useful in its own right. You can
| cancel the ?automatic? flag at any time by pressing m; if the package is
| already being removed, you can use Package ? Install (+) to cancel the
| removal and clear the ?automatic? flag.
`----
>
> Da frage ich mich, ob es Pakete gibt, die *keine* Abhängigkeiten haben und
> evtl. mit diesem Schalter mit "verschwinden"?
> Oder bezieht sich dieser Schalter nur auf die Abhängigkeiten des
> gepurgeden Paketes?
Ja, das bezieht sich nur auf die automatisch installierten
Abhängigkeiten des Paketes, s.o..
Zum Testen kann man an den Aufruf auch vorher mal
ein -s anhängen, dann sieht man was passieren würde. Sobald ein Paket
auf m, wie "manually installed" gesetzt wird fliegt es auch bei so einer
Aktion nicht raus.
HTH
Jens
Reply to: