On Sb, 26 oct 19, 17:01:19, Joe wrote:
>
> Removing things, as others have said, is a bit risky. You need to spend
> some time with the apt tools, finding what depends on the item you wish
> to remove, so you know what will break when you remove it. It's a very
> slow process, when there are hundreds or even thousands of packages you
> don't (currently) need.
# mark gnome-core as manually installed to prevent it and all it's
# dependencies to be considered for autoremoval
apt-mark manual gnome-core
# remove the gnome metapackage
# this will result in many packages being suggested for autoremoval
# do NOT use aptitude for this step as it will attempt to immediately
# remove packages depended on by gnome, but not by gnome-core
apt remove gnome
# examine the list of packages suggested for autoremoval
apt --simulate autoremove
# or with aptitude
aptitude search '?garbage'
# remove those you are sure you don't need
# do NOT use aptitude for this as it will attempt to remove all other
# packages depended on by gnome, but not by gnome-core
apt remove cheese
apt remove some-other-package
...
# mark all other packages as manually installed
apt-mark manual package1 package2 etc.
# or in one command with aptitude (untested)
aptitude unmarkauto '?installed?garbage'
Hope this helps,
Andrei
--
http://wiki.debian.org/FAQsFromDebianUser
Attachment:
signature.asc
Description: PGP signature