Pozostawione pliki po usunięciu pakietu.

Miś Uszatek <[email protected]> Sat, 13 Oct 2012 20:26:40 +0200
Newsgroups gmane.linux.debian.user.polish
Message-ID <op.wl4quqevr6s4gk@debian>
Dobry wieczór


Czy po usunięciu pakietu nie powinny zostać również usunięte dowiązania
symboliczne które pakiet utworzył podczas instalacji?

W poniższym przykładzie po usunięciu pakietu unison-gtk
pozostają dowiązania w  /usr/bin/ i /etc/alternatives/.



#vdir /usr/bin |grep unison

#vdir /etc/alternatives/ |grep unison

#aptitude install unison-gtk
Następujące NOWE pakiety zostaną zainstalowane:
   unison-gtk
[..]

Konfigurowanie unison-gtk (2.32.52-1) ...
update-alternatives: użycie /usr/bin/unison-latest-stable-gtk jako  
dostarczającego /usr/bin/unison-gtk (unison-gtk) w tryb auto.
update-alternatives: użycie /usr/bin/unison-latest-stable-gtk jako  
dostarczającego /usr/bin/unison (unison) w tryb auto.
Przetwarzanie wyzwalaczy dla menu...

#vdir /usr/bin |grep unison
lrwxrwxrwx 1 root   root         24 10-13 19:49 unison ->  
/etc/alternatives/unison
-rwxr-xr-x 1 root   root    2295760 2010-02-27  unison-2.32.52-gtk
lrwxrwxrwx 1 root   root         18 10-13 19:48 unison-2.32-gtk ->  
unison-2.32.52-gtk
lrwxrwxrwx 1 root   root         28 10-13 19:49 unison-gtk ->  
/etc/alternatives/unison-gtk
lrwxrwxrwx 1 root   root         18 10-13 19:48 unison-latest-stable-gtk  
-> unison-2.32.52-gtk

#vdir /etc/alternatives/ |grep unison
lrwxrwxrwx 1 root root  33 10-13 19:49 unison ->  
/usr/bin/unison-latest-stable-gtk
lrwxrwxrwx 1 root root  49 10-13 19:49 unison.1.gz ->  
/usr/share/man/man1/unison-latest-stable-gtk.1.gz
lrwxrwxrwx 1 root root  33 10-13 19:49 unison-gtk ->  
/usr/bin/unison-latest-stable-gtk
lrwxrwxrwx 1 root root  49 10-13 19:49 unison-gtk.1.gz ->  
/usr/share/man/man1/unison-latest-stable-gtk.1.gz

#aptitude purge unison-gtk
[...]

Usuwanie unison-gtk ...
Czyszczenie z plików konfiguracyjnych dla unison-gtk ...
Przetwarzanie wyzwalaczy dla desktop-file-utils...
Przetwarzanie wyzwalaczy dla menu...
Przetwarzanie wyzwalaczy dla man-db...

#vdir /usr/bin |grep unison
lrwxrwxrwx 1 root   root         28 10-13 19:49 unison-gtk ->  
/etc/alternatives/unison-gtk

#vdir /etc/alternatives/ |grep unison
lrwxrwxrwx 1 root root  33 10-13 19:49 unison-gtk ->  
/usr/bin/unison-latest-stable-gtk
lrwxrwxrwx 1 root root  49 10-13 19:49 unison-gtk.1.gz ->  
/usr/share/man/man1/unison-latest-stable-gtk.1.gz