![]() So, if you want to scorch everything that depends upon X11, you will need to target the base set of libx11 libraries that all x11 apps must ultimately depend upon: sudo apt-get remove -dry-run -auto-remove -purge 'libx11-.*' PIXEL DESKTOP RASPBERRY PI TEAMVIEWER HEADLESS INSTALLMeta-packages primarily provide a convenient way to install a sensible set of packages at once, but they aren't uninstall tools. Meta-packages are generally at the top of the dependency tree, not at the bottom, and few things tend to depend directly on meta-packages. For example, there may be two meta-packages that depend on xterm (lxsession and xfsession perhaps), but uninstalling one or both won't uninstall xterm because xterm isn't broken without lxsession or xfsession. Meta packages depend on a set of other packages in much the same way that foo depended on libfoo, so when you remove a meta-package, little else is typically removed. Another package xfoo may also depend upon libfoo, so apt won't just remove it (although apt will track if it was installed only as a side-effect of installing foo and offer to auto-remove it if you ask it to, so long as no others still depend on it) The reverse is not true: removing foo does not delete libfoo automatically. Because Foo has a depends line specifying libfoo, it would be broken to leave foo if libfoo were removed. If a package foo depends on another package libfoo and you remove the libfoo package, the dependent ( foo) is also removed. (Repeat apt-get autoremove -purge until no orphans remain) Further explanation TL DR or "Just scorch my pi" sudo apt-get remove -auto-remove -purge 'libx11-.*' ![]() Is there an easier way? Is there a "super" package which owns all of this graphical stuff and can be removed, taking all it's dependencies with it? From my understanding, it doesn't look like this is possible, because these things have not been automatically installed, meaning I need to track them all down and remove them all explicitly. ![]() ![]() Which seems a little odd for a remove operation. I made the above list by looking in aptitude for all packages in the Installed Packages -> x11 -> main section that were not "automatic installs".įor some reason when I run this, apt-get tells me that: The following extra packages will be installed: Sudo apt-get remove desktop-base lightdm lxappearance lxde-common lxde-icon-theme lxinput lxpanel lxpolkit lxrandr lxsession-edit lxshortcut lxtask lxterminal obconf openbox raspberrypi-artwork xarchiver xinit xserver-xorg xserver-xorg-video-fbdev But I keep getting lots of package updates for all the desktop stuff that I don't use (I run apticron to notify me of pending updates via email), so I'd like to completely apt-get remove all the unnecessary packages to avoid these unnecessary updates. I've already disabled "Start desktop on boot" using raspi-config as described here. I'm using my Raspberry Pi as a headless server which I can ssh into. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |