Just tested on bullseye and both commands below works as expected|indented, packages marked as automatically installed (and no longer needed) and packages with configuration files left are removed, as per apt subcommand.
$ sudo apt purge '~g|~c' $ sudo apt remove '~g|~c'
Just tested on bullseye and both commands below works as expected|indented, packages marked as automatically installed (and no longer needed) and packages with configuration files left are removed, as per apt subcommand.
$ sudo apt purge '~g|~c'
$ sudo apt remove '~g|~c'