I've got an embedded device running without monitor, running Debian Jessie. Since I don't need a UI, I considered cleaning up the X11 packages. This gave a somewhat unexpected result:
sudo -u nobody apt-get remove '^x11' -s
This produces the following result:
The following packages will be REMOVED: ffmpeg libavdevice57 libavfilter6 ... libx11-dev libxau-dev ...
The ffmpeg that would be removed is this version from jessie-backports. That was not intended. The
libx11-dev strictly speaking doesn't match
'^x11' but I can explain that as an automatically installed package being auto-removed. But
ffmpeg is manually installed (as confirmed by
What is the link between packages named
^x11 and ffmpeg that causes this?
I've also tried
sudo -u nobody apt-get remove '^vnc' -s and
sudo -u nobody apt-get autoremove Neither affects ffmpeg; it's not some orphan package that gets auto-removed regardless. It is specifically tied to X11.